ORA-16139: media recovery required
如果SWITCHOVER_STATUS= TO PRIMARY
備庫可以順利切換到主庫
如果SWITCHOVER_STATUS=sessions active
表示當前仍然活動會話在進行,
這是你可以新增“WITH SESSION SHUTDOWN”關鍵字在ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY語句之後進行強制關閉會話,
如果不加alert_LEO.log裡有If media recovery active, switchover will wait 900 seconds你需要等待900秒的時間,
這只是一個估計值,實際上時間會更長
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
NOT ALLOWED
SQL> /
SWITCHOVER_STATUS
--------------------
NOT ALLOWED
SQL> alter database commit to switchover to primary;
alter database commit to switchover to primary
*
ERROR at line 1:
ORA-16139: media recovery required
SQL> alter database commit to switchover to primary with session shutdown;
…
出現長時間等待,不能執行完成。
檢查alert.log記錄If media recovery active, switchover will wait 900 seconds.
試著等待900 seconds後,情況依然。
SQL> alter database recover managed standby database finish force;
Database altered.
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO PRIMARY
SQL> alter database commit to switchover to primary;
Database altered.
大功告成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29119536/viewspace-1281894/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Crash recovery和Media recovery的區別
- oracle media recovery介質恢復實驗-Oracle
- oracle media recovery介質恢復小記Oracle
- recover and open db if archivelog required for recovery is either miss_465478.1HiveUI
- ORACLE 9i歸檔之ARCn: Media recovery disabledOracle
- ORA-00265: instance recovery required, cannot set ARCHIVELOGUIHive
- ORA-00265: instance recovery required, cannot set ARCHIVELOG modeUIHive
- MRP0- Background Media Recovery terminated with error 1111Error
- Oracle OCP 1Z0 053 Q399(block media recovery)OracleBloC
- Oracle OCP 1Z0 053 Q401(Block Media Recovery)OracleBloC
- Disk Drill Media Recovery for Mac(支援多種格式的資料恢復工具)Mac資料恢復
- MRP0: Background Media Recovery terminated with error 328,ORA-00328Error
- RMAN-06054: media recovery requesting unknown archived log for thread...Hivethread
- ASM管理環境----資料檔案丟失介質恢復(MEDIA RECOVERY)ASM
- 【問題處理】ORA-01113 file xxx need media recovery
- 多種格式的資料恢復軟體Disk Drill Media Recovery 4.5.972中文資料恢復
- ORA-16139 Oracle DG無法正常切換Oracle
- SCSS @mediaCSS
- Oracle 9i DataGuard Failover 發生ORA-16139OracleAI
- CSS media queriesCSS
- mac media serverMacServer
- Media Session APISessionAPI
- Oracle OCP 1Z0 053 Q517(Block Media Recovery&Archivelog Mode&Flashback Logging)OracleBloCHive
- CSS :required 選擇器CSSUI
- css - @media 查詢CSS
- Android Media playerAndroid
- Android Media(拍照)Android
- 表單required 必需驗證UI
- HTML5 required屬性HTMLUI
- [MONGODB]: WHEN ARBITER REQUIRED FOR REPLICA SETMongoDBUI
- It is indirectly referenced from required .class fileUI
- 【Oracle】-Difference between Instance recovery and Crash RecoveryOracle
- Create recovery catalog Configure Recovery Manager
- oracle RECOVERY_PARALLELISM與instance recovery和medium recovery的關係小記OracleParallel
- CSSStyleSheet.media 屬性CSS
- Django 設定media staticDjango
- css3 media queryCSSS3
- javax.media does not existJava