standby庫,在sqlplus下用recover standby database進行手工恢復
一個standby庫出問題,丟了1個歸檔
檢查主庫的日誌,發現丟失的歸檔的SEQ的redo還未被覆蓋,馬上將其拷貝出來傳遞到備庫上
嘗試catalog,雖然沒有報錯,但是實際沒有註冊成功
RMAN> catalog archivelog '/u01/app/oracle/oradata/ORCL/redo03_281.arc';
cataloged archived log
archived log file name=/u01/app/oracle/oradata/ORCL/redo03_281.arc RECID=297 STAMP=840464160
嘗試使用sqlplus的recover命令來恢復,提示是standby controlfile,無法進行
SQL> recover database ;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SQL> recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-01666: control file is for a standby database
沒找到sqlplus下recover命令的reference,最後瞎嘗試,總算試了出來
SQL> recover standby database; <==
ORA-00279: change 1728518 generated at 06/08/2013 20:13:37 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/fast_recovery_area/DGORCL/archivelog/2014_02_25/o1_mf_1_281_%u_.
arc
ORA-00280: change 1728518 for thread 1 is in sequence #281
Specify log: {=suggested | filename | AUTO | CANCEL}
/u01/app/oracle/oradata/ORCL/redo03_281.arc
ORA-00279: change 1729863 generated at 06/08/2013 20:14:03 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/fast_recovery_area/DGORCL/archivelog/2014_02_25/o1_mf_1_282_9jrd
kdb4_.arc
ORA-00280: change 1729863 for thread 1 is in sequence #282
ORA-00278: log file '/u01/app/oracle/oradata/ORCL/redo03_281.arc' no longer
needed for this recovery
Specify log: {=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
恢復該歸檔後,DG恢復正常。
其實,還有個解決辦法,從主庫生成一個控制檔案備份過來,用該控制檔案mount庫,就可以用recover database using backup controlfile進行恢復
這個案例中可以看到,redo log拷貝出來後,是無法作為archivelog給catalog進控制檔案的
檢查主庫的日誌,發現丟失的歸檔的SEQ的redo還未被覆蓋,馬上將其拷貝出來傳遞到備庫上
嘗試catalog,雖然沒有報錯,但是實際沒有註冊成功
RMAN> catalog archivelog '/u01/app/oracle/oradata/ORCL/redo03_281.arc';
cataloged archived log
archived log file name=/u01/app/oracle/oradata/ORCL/redo03_281.arc RECID=297 STAMP=840464160
嘗試使用sqlplus的recover命令來恢復,提示是standby controlfile,無法進行
SQL> recover database ;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
SQL> recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-01666: control file is for a standby database
沒找到sqlplus下recover命令的reference,最後瞎嘗試,總算試了出來
SQL> recover standby database; <==
ORA-00279: change 1728518 generated at 06/08/2013 20:13:37 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/fast_recovery_area/DGORCL/archivelog/2014_02_25/o1_mf_1_281_%u_.
arc
ORA-00280: change 1728518 for thread 1 is in sequence #281
Specify log: {
/u01/app/oracle/oradata/ORCL/redo03_281.arc
ORA-00279: change 1729863 generated at 06/08/2013 20:14:03 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/fast_recovery_area/DGORCL/archivelog/2014_02_25/o1_mf_1_282_9jrd
kdb4_.arc
ORA-00280: change 1729863 for thread 1 is in sequence #282
ORA-00278: log file '/u01/app/oracle/oradata/ORCL/redo03_281.arc' no longer
needed for this recovery
Specify log: {
cancel
Media recovery cancelled.
恢復該歸檔後,DG恢復正常。
其實,還有個解決辦法,從主庫生成一個控制檔案備份過來,用該控制檔案mount庫,就可以用recover database using backup controlfile進行恢復
這個案例中可以看到,redo log拷貝出來後,是無法作為archivelog給catalog進控制檔案的
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8242091/viewspace-1088825/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 冷備手工完全恢復(recover database,recover tablespace,recover datafile)Database
- standby缺失primary歸檔,手工同步恢復
- 恢復備庫 activate standby database 報錯找不到standby redo - ORA-00313Database
- Recover physical standby database after loss of archive log(2)DatabaseHive
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- standby databaseDatabase
- 透過RMAN備份standby database成功恢復還原Database
- Recover physical standby database after loss of archive log – roll forward(轉)DatabaseHiveForward
- ORACLE利用STANDBY端RMAN備份進行資料恢復Oracle資料恢復
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Standby Database ---09Database
- 手工ftp拷貝歸檔及指令碼自動恢復Standby方式FTP指令碼
- standby database to primary database.Database
- standby database No RFS 程式Database
- Rman backup standby databaseDatabase
- Standby Database for reportDatabase
- standby全庫rman備份檔案恢復到異機
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- Standby Database的工作原理Database
- 建立 Logical Standby DatabaseDatabase
- manage logical standby databaseDatabase
- How a Standby Database Is Mounted (295)Database
- Oracle 9i Logical Standby與Physical standby歸檔恢復區別Oracle
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- alter database recover to logical standby xxx 很長時間,為什麼Database
- Setup Standby Database on One PC(轉)Database
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Creating a Physical Standby DatabaseDatabase
- rman 建 Standby Database 筆記Database筆記
- (轉)Standby Database的工作原理Database
- 監控Logical standby databaseDatabase
- 同事總結的 : 用RMAN建立Physical Standby DatabaseDatabase
- 恢復之RAC資料庫RECOVER資料庫
- 聊聊Oracle 11g的Snapshot Standby Database(下)OracleDatabase
- Oracle RAC Standby 恢復歸檔numuber錯亂Oracle