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 until cancel using backup controlfileDatabase
- Recover database using backup controlfile until cancelDatabase
- recover database until timeDatabase
- recover database using backup controlfile與 recover database 的區別Database
- Recover_DatabaseDatabase
- rman recover databaseDatabase
- recover database的四條語句區別 .Database
- 冷備手工完全恢復(recover database,recover tablespace,recover datafile)Database
- restore和recover 區別REST
- 12c-RECOVER PLUGGABLE DATABASEDatabase
- recover database using backup controlfileDatabase
- 【轉】 oracle備份恢復之recover database的四條語句區別OracleDatabase
- recover database using backup controlfile理解Database
- recover database using backup control fileDatabase
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- Recover physical standby database after loss of archive log(2)DatabaseHive
- 在oracle10g 10.2.0.1上測試不完全恢復_recover database until scnOracleDatabase
- restore,recover的區別REST
- using backup controlfile 和 until cancel區別
- using backup controlfile和 until cancel 區別
- recover database delete archivelogs skip tablespace temp;報錯DatabasedeleteHive
- Oracle rman中recover和restore的區別:OracleREST
- Recover database after disk loss (Doc ID 230829.1)Database
- Recover physical standby database after loss of archive log – roll forward(轉)DatabaseHiveForward
- 水煮十四——《using backup controlfile 和 until cancel區別
- oracle restore與recover的區別OracleREST
- ORA-279 signalled during: alter database recover logfileDatabase
- Recover Database Fails with RMAN-06558 [ID 1185074.1]DatabaseAI
- recover database skip [forever] tablespace XXX 的用法介紹Database
- recover database using backup controlfile利用archivelog files.DatabaseHive
- Oracle Database 12C 新功能 rman RECOVER TABLE (文件 ID 2047644.1)OracleDatabase
- Recover a Database Having Added a Datafile Since Last Backup (Doc ID 29430.1)DatabaseAST
- database和instance的區別Database
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- standby庫,在sqlplus下用recover standby database進行手工恢復SQLDatabase
- alter database recover to logical standby xxx 很長時間,為什麼Database
- 體驗跨越incarnation進行flashback database相比傳統RMAN RECOVER的便捷性Database
- cron with recover