DataGuard SwitchOver
http://blog.itpub.net/29254281/viewspace-1315088/
在物理StandBy的基礎上進行SwitchOver
主庫:192.168.1.1
備庫:192.168.1.2
SwitchOver之後
主庫:192.168.1.2
備庫:192.168.1.1
首先,
修改主庫的引數
alter system set log_archive_dest_2='service=standby valid_for=(all_logfiles,all_roles) db_unique_name=orcl' scope=both;
修改備庫的引數
alter system set log_archive_dest_2='service=primary valid_for=(all_logfiles,all_roles) db_unique_name=orcl' scope=both;
查詢主庫SwitchOver狀態
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO STANDBY
將192.168.1.1轉換為StandBy,然後重啟
alter database commit to switchover to physical standby with session shutdown;
shutdown immediate;
startup nomount;
ALTER DATABASE MOUNT STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
將192.168.1.2備庫提升為主庫
alter database commit to switchover to primary with session shutdown;
先啟動備庫,再啟動主庫,否則主庫識別不了備庫。
參考:
http://blog.csdn.net/tianlesoftware/article/details/5514082
http://blog.csdn.net/tianlesoftware/article/details/5768602
在物理StandBy的基礎上進行SwitchOver
主庫:192.168.1.1
備庫:192.168.1.2
SwitchOver之後
主庫:192.168.1.2
備庫:192.168.1.1
首先,
修改主庫的引數
alter system set log_archive_dest_2='service=standby valid_for=(all_logfiles,all_roles) db_unique_name=orcl' scope=both;
修改備庫的引數
alter system set log_archive_dest_2='service=primary valid_for=(all_logfiles,all_roles) db_unique_name=orcl' scope=both;
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO STANDBY
將192.168.1.1轉換為StandBy,然後重啟
alter database commit to switchover to physical standby with session shutdown;
shutdown immediate;
startup nomount;
ALTER DATABASE MOUNT STANDBY DATABASE;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
將192.168.1.2備庫提升為主庫
alter database commit to switchover to primary with session shutdown;
shutdown immediate;
startup open;
startup open;
先啟動備庫,再啟動主庫,否則主庫識別不了備庫。
參考:
http://blog.csdn.net/tianlesoftware/article/details/5514082
http://blog.csdn.net/tianlesoftware/article/details/5768602
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29254281/viewspace-1324213/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DataGuard---->物理StandBy的角色切換之switchover
- Oracle DataGuard 主備切換 (switchover) oracle11gOracle
- Oracle:DG 的 switchoverOracle
- 【DATAGUARD】Oracle Dataguard nologging 塊修復Oracle
- 【Dataguard】DataGuard運維注意事項運維
- Oracle 11.2.0.4 physical dataguard和snapshot dataguard切換Oracle
- 【DATAGUARD】Oracle Dataguard體系架構詳解Oracle架構
- 【DATAGUARD】Dataguard遠端同步配置最佳實踐
- 【DATAGUARD】Oracle19c dataguard新特性及部署Oracle
- openGauss主備切換之switchover與failoverAI
- 【DG】Data Guard主備庫Switchover切換
- 【DATAGUARD】Oracle Dataguard物理備庫切換最佳實踐(sqlplus)OracleSQL
- 【Dataguard】Oracle多租戶環境對Dataguard的影響Oracle
- RAC+ASM+DATAGUARDASM
- oracle dataguard broker 配置Oracle
- Oracle 11g dg switchover切換操作流程Oracle
- DATAGUARD失敗切換
- DATAGUARD強行切換
- DATAGUARD手記(DUPLICATE)(四)
- Oracle dataguard failover 實戰OracleAI
- Oracle 單機配置DataGuardOracle
- MySQL高可用之MHA切換測試(switchover & failover)MySqlAI
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- 【DATAGUARD】Oracle21c Dataguard建立注意事項及主要引數介紹Oracle
- oracle 19c dataguard silent install (oracle 19c dataguard 靜默安裝)Oracle
- [20180521]dataguard 與 spm.txt
- dataguard ORA-17628 處理
- Oracle之11g DataGuardOracle
- 檢視V$DATAGUARD_STATS
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- 【DATAGUARD】Oracle 通過Dataguard指定恢復時間用於找回丟失資料Oracle
- 跨平臺級聯dataguard配置
- oracle11g dataguard切換Oracle
- Oracle Dataguard故障轉移(failover)操作OracleAI
- 7 Oracle DataGuard 命令列參考Oracle命令列
- oracle 19c使用dgmgrl來執行switchover和failover切換OracleAI
- DATAGUARD中手工處理日誌GAP
- DATAGUARD手記(PRIMARY+2STANDBY)(一)
- 【DG】DataGuard健康檢查 for 11g