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:Physical Standby Switchover
- dataguard角色轉換—switchover
- Dataguard Physical Standy Switchover
- 10g_dataguard_switchover
- DataGuard:Logical Standby Switchover
- Dataguard物理Standby Switchover 角色轉換
- oracle dataguard 進行switchover測試Oracle
- Oracle DataGuard switchover切換一例Oracle
- 【DataGuard】Oracle 11g physical standby switchoverOracle
- 【DATAGUARD】物理dg的switchover切換(五)
- dataguard switchover & failover steps (rac)AI
- oracle11g dataguard完全手冊--switchoverOracle
- Oracle 11g Active Dataguard Switchover實驗Oracle
- 【DataGuard】Oracle 11g DataGuard 角色轉換(一)物理備庫SwitchoverOracle
- DataGuard---->物理StandBy的角色切換之switchover
- dataguard主備switchover互切實驗及理解
- dataguard switchover的自動化指令碼實現指令碼
- Oracle DataGuard 主備切換 (switchover) oracle11gOracle
- DATAGUARD在做SWITCHOVER切換時遇到問題總結
- DataGuard之switchover_status狀態not allowed解決過程
- Oracle 10g DataGuard物理主備切換-switchover與failoverOracle 10gAI
- dataguard手動switchover切換步驟及注意的問題 轉
- 一步一步學DataGuard(14)邏輯standby之switchover
- 【DataGuard】10g物理standby主備switchover方式切換詳述
- 物理dataguard 正常切換 角色轉換,switchover_status 狀態改變
- 物理dataguard 正常切換 腳色轉換,switchover_status 狀態改變
- 【DataGuard】使用Grid Control對Oracle物理Data Guard進行Switchover切換Oracle
- 備庫的切換狀態為SWITCHOVER PENDING時進行dataguard主備庫角色切換
- Oracle:DG 的 switchoverOracle
- 邏輯備庫Switchover
- data guard switchover on solaris 10
- 10gDG switchover 過程
- 物理DG角色轉換:switchover
- DG物理standby,switchover步驟
- In Data Guard,choose switchover or failover?AI
- 不停機 data guard 以及 switchover
- 【Dataguard】DataGuard運維注意事項運維
- DataGuard broker之一:DataGuard broker簡介