DataGuard角色切換 |
發(fā)布時(shí)間: 2012/9/3 17:24:13 |
Step 1 Verify that the primary database can be switched to the standby role. SWITCHOVER_STATUS TO STANDBY Step 2 Initiate the switchover on the primary database. Step 3 Shut down and then mount the former primary database. shutdown abort; Step 4 Verify that the switchover target is ready to be switched to the primary role. 這里查詢出來的值不為TO_PRIMARY即有點(diǎn)問題。 Step 5 Switch the target physical standby database role to the primary role. sys@DEX> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN; 這里提示需要介質(zhì)恢復(fù)。 sys@DEX> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; Database altered. sys@DEX> SELECT SWITCHOVER_STATUS FROM V$DATABASE; SWITCHOVER_STATUS sys@DEX> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSION SHUTDOWN; Database altered. Step 6 Open the new primary database. Database altered. Step 7 Verify the switch role . 主庫執(zhí)行 System altered.
standby庫執(zhí)行 sys@DEX> select sequence# from v$log ; SEQUENCE#
本文出自:億恩科技【mszdt.com】 服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |