恢復備庫 activate standby database 報錯找不到standby redo - ORA-00313
從Dataguard做RMAN備份, restore後做恢復, 恢復OK後, alter database open resetlogs報錯,提示控制檔案是standby控制檔案,錯誤碼 ORA-01666 , 查詢解決方法,可以透過alter database activate standby database將資料庫角色(database_role)更改為primary , 同時也會更新控制檔案,但是執行發現報錯 :
SQL> alter database activate standby database;
alter database activate standby database
*
ERROR at line 1:
ORA-00313: open failed for members of log group 5 of thread 1
ORA-00312: online log 5 thread 1: '+DATA/tb/onlinelog/group_5.782.922899209'
ORA-17503: ksfdopn:2 Failed to open file
+DATA/tb/onlinelog/group_5.782.922899209
ORA-15012: ASM file '+DATA/tb/onlinelog/group_5.782.922899209' does not exist
ORA-00312: online log 5 thread 1: '+DATA/tb/onlinelog/group_5.784.922899209'
ORA-17503: ksfdopn:2 Failed to open file
+DATA/tb/onlinelog/group_5.784.922899209
ORA-15012: ASM file '+DATA/tb/onlinelog/group_5.784.922899209' does not exist
生成controlfile檔案,檢視到standby redo log檔案是註釋掉的,奇怪為什麼會activate standby 的時候提示找不到這些檔案呢 ?
透過
select 'alter database clear logfile group ' ||group# ||';'from v$standby_log;
select 'alter database drop standby logfile group ' ||group# ||';'from v$standby_log;
清理掉standby redo log 後,再次執行
SQL> alter database activate standby database;
成功。
SQL> alter database activate standby database;
alter database activate standby database
*
ERROR at line 1:
ORA-00313: open failed for members of log group 5 of thread 1
ORA-00312: online log 5 thread 1: '+DATA/tb/onlinelog/group_5.782.922899209'
ORA-17503: ksfdopn:2 Failed to open file
+DATA/tb/onlinelog/group_5.782.922899209
ORA-15012: ASM file '+DATA/tb/onlinelog/group_5.782.922899209' does not exist
ORA-00312: online log 5 thread 1: '+DATA/tb/onlinelog/group_5.784.922899209'
ORA-17503: ksfdopn:2 Failed to open file
+DATA/tb/onlinelog/group_5.784.922899209
ORA-15012: ASM file '+DATA/tb/onlinelog/group_5.784.922899209' does not exist
生成controlfile檔案,檢視到standby redo log檔案是註釋掉的,奇怪為什麼會activate standby 的時候提示找不到這些檔案呢 ?
透過
select 'alter database clear logfile group ' ||group# ||';'from v$standby_log;
select 'alter database drop standby logfile group ' ||group# ||';'from v$standby_log;
清理掉standby redo log 後,再次執行
SQL> alter database activate standby database;
成功。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-2125197/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- standby庫,在sqlplus下用recover standby database進行手工恢復SQLDatabase
- 透過RMAN備份standby database成功恢復還原Database
- 物理備庫open報錯ORA-10458: standby database requires recoveryDatabaseUI
- [20170302]關於activate standby databaseDatabase
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- 物理data guard備standby庫的時候報錯。
- standby全庫rman備份檔案恢復到異機
- RAC環境的STANDBY資料庫備份報錯資料庫
- standby databaseDatabase
- Dataguard環境修改主庫和standby庫online redo log&standby redo log大小
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Oracle RAC Standby 恢復歸檔numuber錯亂Oracle
- Standby Database ---09Database
- Controlfile備份恢復關於Standby的理解
- standby database to primary database.Database
- Oracle DataGuard Standby database ID mismatch錯誤OracleDatabase
- standby redo log的理解
- ASM上恢復STANDBY資料庫出現ORA-15173錯誤ASM資料庫
- 4 Creating a Logical Standby Database 建立邏輯備庫Database
- ORACLE利用STANDBY端RMAN備份進行資料恢復Oracle資料恢復
- standby database No RFS 程式Database
- Rman backup standby databaseDatabase
- Standby Database for reportDatabase
- duplicate standby database 報ORA-05507錯誤解決方法Database
- ORA-00313, ORA-00312, ORA-27037 in Standby DatabaseDatabase
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- [20230425]注意snapshot standby與activate standby的區別.txt
- snapshot standby快照備庫角色
- 【DataGuard】ORA-00313, ORA-00312, ORA-27037 in Standby DatabaseDatabase
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- standby缺失primary歸檔,手工同步恢復
- 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)資料庫