dg切換操作文件
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
Session altered.
SQL> select oldest_flashback_scn,oldest_flashback_time from v$flashback_database_log;
OLDEST_FLASHBACK_SCN OLDEST_FLASHBACK_TI
-------------------- -------------------
1202090 2019-05-05 04:01:45
SQL> recover managed standby database cancel;
Media recovery complete.
SQL>
SQL>
SQL> recover managed standby database finish force;
Media recovery complete.
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
READ ONLY PHYSICAL STANDBY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE TO PRIMARY
SQL> alter database commit to switchover to primary;
Database altered
SQL>
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
MOUNTED PRIMARY MAXIMUM PERFORMANCE UNPROTECTED NOT ALLOWED
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
1330559
SQL> alter database open;
Database altered.
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
READ WRITE PRIMARY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE NOT ALLOWED
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
1330559
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31549397/viewspace-2647771/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DG的切換操作
- oracle dg切換操作示例Oracle
- Oracle 11g dg switchover切換操作流程Oracle
- 【DG】三大模式切換模式
- 使用Broker實現DG切換
- Oracle RAC DG手動切換Oracle
- DG_三大模式切換模式
- 【DATAGUARD】物理dg的switchover切換(五)
- 【DG】Data Guard主備庫Switchover切換
- RAC+單例項DG的切換單例
- oracle DG VCS切換異常問題Oracle
- 【DATAGUARD】物理dg的failover切換(六)AI
- 【DG】Data Guard主備庫Failove切換AI
- 5分鐘,徹底精通Oracle DG切換Oracle
- Oracle物理DG自動切換——Dataguard Broker配置Oracle
- 單節點DG的switchover切換介紹
- oracle asm線上替換dg盤操作OracleASM
- 單例項DG切換中的虛擬IP單例
- oracle DG資料庫切換步驟筆記Oracle資料庫筆記
- ORA-16139 Oracle DG無法正常切換Oracle
- 單節點DG的failover切換介紹AI
- oracle 10g dg切換步驟記錄Oracle 10g
- DG中3種保護模式之間的切換模式
- Oracle DG管理模式和只讀模式相互切換Oracle模式
- 2013-3-19資料庫DG切換資料庫
- Oracle 18c&19c physical dg切換總結Oracle
- ROSE HA切換節點導致DG失敗、恢復ROS
- 5 切換和故障轉移操作
- ora11_node_dg(2)ADG做(switchover)切換測試
- oracle 10g physical standby 切換操作Oracle 10g
- oracle 跨小版本dg切換應用補丁報錯處理Oracle
- Oracle切換undo表空間操作步驟Oracle
- Git切換遠端伺服器操作指南Git伺服器
- 程式切換(上下文切換)
- 10g DG保護模式的切換:從最大效能到最大可用模式
- DG日誌不應用,GAP,主備切換解決思路與辦法
- DG同步異常恢復文件
- db_ha叢集安裝後的自動切換及切換後的判斷步驟說明文件