recover database until cancel和 recover database區別
簡單的說
recover database until cancel用於不完全恢復,可以一步一步的跳也就是一個一個歸檔的應用,也可以AUTO全部應用,當然也可以在恢復完某個archivelog後cancel退出,但是他不會恢復 current logfile如果需要恢復current logfile需要自己指定。如下,我的當前日誌sequence 是11
recover database 用於完全恢復,全部一起應用,包含current logfile,但是如果沒有current logfile當然也會報錯
SQL> recover database ;
Media recovery complete.
實際兩者沒有太多的區別,區別就在於是否手動和應用當前logfile。
recover database until cancel用於不完全恢復,可以一步一步的跳也就是一個一個歸檔的應用,也可以AUTO全部應用,當然也可以在恢復完某個archivelog後cancel退出,但是他不會恢復 current logfile如果需要恢復current logfile需要自己指定。如下,我的當前日誌sequence 是11
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00279: change 1253078 generated at 08/29/2016 14:52:55 needed for thread 1
ORA-00289: suggestion : /home/oracle/archivelog/DG/1_10_921163363.dbf
ORA-00280: change 1253078 for thread 1 is in sequence #10
ORA-00278: log file '/home/oracle/archivelog/DG/1_9_921163363.dbf' no longer
needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00279: change 1253084 generated at 08/29/2016 14:52:58 needed for thread 1
ORA-00289: suggestion : /home/oracle/archivelog/DG/1_11_921163363.dbf
ORA-00280: change 1253084 for thread 1 is in sequence #11
ORA-00278: log file '/home/oracle/archivelog/DG/1_10_921163363.dbf' no longer
needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log
'/home/oracle/archivelog/DG/1_11_921163363.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
這裡我們指定我們的current logfile的絕對路徑即可
ORA-00279: change 1253078 generated at 08/29/2016 14:52:55 needed for thread 1
ORA-00289: suggestion : /home/oracle/archivelog/DG/1_10_921163363.dbf
ORA-00280: change 1253078 for thread 1 is in sequence #10
ORA-00278: log file '/home/oracle/archivelog/DG/1_9_921163363.dbf' no longer
needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00279: change 1253084 generated at 08/29/2016 14:52:58 needed for thread 1
ORA-00289: suggestion : /home/oracle/archivelog/DG/1_11_921163363.dbf
ORA-00280: change 1253084 for thread 1 is in sequence #11
ORA-00278: log file '/home/oracle/archivelog/DG/1_10_921163363.dbf' no longer
needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
ORA-00308: cannot open archived log
'/home/oracle/archivelog/DG/1_11_921163363.dbf'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
這裡我們指定我們的current logfile的絕對路徑即可
recover database 用於完全恢復,全部一起應用,包含current logfile,但是如果沒有current logfile當然也會報錯
SQL> recover database ;
Media recovery complete.
實際兩者沒有太多的區別,區別就在於是否手動和應用當前logfile。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31397003/viewspace-2134074/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- recover database using backup controlfile理解Database
- ORA-279 signalled during: alter database recover logfileDatabase
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- cron with recover
- Will attempt to recover by breaking constraintAI
- Go基礎系列:defer、panic和recoverGo
- 【譯】defer-panic-and-recover
- Go 中的Defer,Panic 和 Recover 控制流Go
- 【Go進階—基礎特性】panic 和 recoverGo
- Kotlin中 until和..的區別(迴圈)Kotlin
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Error querying database. XXXXXXXXXXXXX, No database selected。ErrorDatabase
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Golang Recover的一個小坑Golang
- [譯] Part 32: 詳解Golang 中的Panic 和 RecoverGolang
- Database TimeoutDatabase
- Database OverallDatabase
- database no shardingDatabase
- 利用Omni Recover恢復IOS資料iOS
- go的 err!=nil 和 panic+recover 這兩種錯誤處理機制的關係和區別是什麼?Go
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- 12c RMAN新特性之Recover Table
- ORACLE database vaultOracleDatabase
- Relationship Database DesignDatabase
- 3.4 Quiescing a DatabaseUIDatabase
- idea--DatabaseIdeaDatabase
- Oracle clone databaseOracleDatabase
- database的connectDatabase
- Password is required when adding a database to AG group if the database has a master keyUIDatabaseAST
- ORA-16649: possible failover to another database prevents this database from beiAIDatabase
- Golang 高效實踐之defer、panic、recover實踐Golang
- iPhone資料恢復軟體:Omni Recover for MaciPhone資料恢復Mac
- Omni Recover for Mac(iPhone資料恢復軟體)MaciPhone資料恢復
- Guide to Database as a Service (DBaaS)GUIIDEDatabase
- Oracle Database Scheduler整理OracleDatabase
- 3.4.1 About Quiescing a DatabaseUIDatabase
- 3.3 Shutting Down a DatabaseDatabase