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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- 透過RMAN備份standby database成功恢復還原Database
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- Setup Standby Database on One PC(轉)Database
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- 4 Creating a Logical Standby Database 建立邏輯備庫Database
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- [20230110]sql profile run standby database.txtSQLDatabase
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- 主庫到standby報錯解決:Error 12154 received logging on to the standby ORA-12154Error
- [20230425]注意snapshot standby與activate standby的區別.txt
- oracle12.2 adg ORA-46952: standby database format mismatch for password fileOracleDatabaseORM
- Oracle的快照standbyOracle
- 2 新增standby masterAST
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- 邏輯STANDBY建立中碰到ORA-16146: standby destination control file enqueue unavailableENQAI
- 10GR2下建立物理standby STEP BY STEP
- 達夢資料庫手工恢復相關命令資料庫
- 利用Omni Recover恢復IOS資料iOS
- 【DG】Data Guard搭建(physical standby)
- 【等待事件】standby query scn advance事件
- 在Linux中,如何進行資料恢復?Linux資料恢復
- [20181113]Logical Standby建立2.txt
- 在Linux中,如何進行系統故障恢復?Linux
- 雙master hdfs namenode 全部進入standby 狀態的解救方法AST
- recover database using backup controlfile理解Database
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- iPhone資料恢復軟體:Omni Recover for MaciPhone資料恢復Mac
- Omni Recover for Mac(iPhone資料恢復軟體)MaciPhone資料恢復
- 帝國cms如何進行恢復資料庫教程資料庫
- 判斷standby日誌是否同步primary
- DATAGUARD手記(PRIMARY+2STANDBY)(一)
- DG -- READ ONLY模式開啟物理Standby模式
- DATAGUARD手記(PRIMARY+2STANDBY)(二)
- 邏輯STANDBY負載高,應用緩慢的解決負載