Oracle 12c DG備庫啟動報錯standby database requires recovery
Oracle 12c DG備庫啟動報錯:
SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/data/oracle/oradata/WMSPROD/system01.dbf'
原因:備庫丟失歸檔日誌。
ORA-16016: archived log for thread 1 sequence# 4673 unavailable
Recovery interrupted!
Some recovered datafiles maybe left media fuzzy
解決辦法:從主庫複製過來相應的歸檔日誌進行恢復。
1)備庫查詢:SQL>select process,client_process,sequence#,status from v$managed_standby;//定位正在應用的日誌檔案
select max(sequence#) from v$archived_log;
2)主庫查詢:SQL> select process,client_process,sequence#,status from v$managed_standby;//查詢主庫當前寫到的日誌檔案
select max(sequence#) from v$archived_log;
3)對比備庫與主庫之間的待傳輸應用日誌檔案,從主庫複製到備庫歸檔路徑
4)備庫註冊,註冊備庫缺失的最近的歸檔日誌即可
ALTER DATABASE REGISTER PHYSICAL LOGFILE '/u01/app/oracle/archivelog/xxx.dbf' ;
5)備庫應用redo
alter database recover managed standby database disconnect from session;
問題解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22996654/viewspace-2856234/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- oracle dg報錯Oracle
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- 4 Creating a Logical Standby Database 建立邏輯備庫Database
- ORACLE DG之備庫角色Oracle
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- oracle rac dg庫報錯ORA-01031: insufficient privilegesOracle
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Oracle DG備庫手動管理新增資料檔案Oracle
- DG -- READ ONLY模式開啟物理Standby模式
- ORACLE-1Z0-060題庫(Upgrade to Oracle Database 12c)OracleDatabase
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- ORACLE DG從庫 Rman備份恢復Oracle
- Oracle RAC+DG 調整redo/standby log fileOracle
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- ORACLE OCM備考OEM搭建DG報錯:NMO not setuid-root(Unix-only)OracleUI
- DG備庫未啟動SCN 新特性引起ORA-600 2252
- Oracle DataBase Recovery資料庫dbf中了勒索病毒[Ransomwaree2020@cock.li].ekingOracleDatabase資料庫
- ORACLE 18C啟動資料庫報錯ORA-04031Oracle資料庫
- Oracle備庫當機啟動解決方案Oracle
- 透過RMAN備份standby database成功恢復還原Database
- 主庫到standby報錯解決:Error 12154 received logging on to the standby ORA-12154Error
- [20181018]Oracle Database 12c: Data Redaction.txtOracleDatabase
- Oracle 12c叢集啟動故障Oracle
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- 【DG】Data Guard搭建(physical standby)
- Oracle DG異構主備支援Oracle
- 在DG備庫備份資料庫並恢復到一個主機上,報錯RMAN-06820資料庫
- Oracle 12c ORA-29548 報錯處理Oracle
- oracle12.2 adg ORA-46952: standby database format mismatch for password fileOracleDatabaseORM
- oracle 19c dg搭建duplicate過程中報錯Oracle
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- Setup Standby Database on One PC(轉)Database
- 【DG】Oracle之級聯DG--(cascade dg) --(一主一備一級聯)Oracle