DataGuard:Logical Standby Switchover
DataGuard:Logical Standby Switchover
由於logical standby的結構要比physical的複雜,所以logical standby的switchover要比physical稍微複雜些,很多時候轉換不成功,都是dataguard的一些引數log_archive_dest_N,log_archive_dest_state_N,db_file_name_convert,log_file_name_convert ,log_archive_config等設定不符合要求引起的,所以在做Logical Standby Switchover的時候,一定要事先檢查相關的引數配置是否符合要求。
整個切換步驟大致如下:
首先要檢查standby,primary庫的引數設定,各引數的設定和physical的設定一樣,對於邏輯standby,需要確認是否有standby redo log。確認都ok後繼續
1.STANDBY 庫停止redo應用
alter database stop logical standby apply;
2.primary 庫prepare switchover logical standby ;
alter database prepare to switchover to logical standby ;
db1>select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
PREPARING SWITCHOVER
3.standby 庫prepare switchover
alter database prepare to switchover to primary;
db2>select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
PREPARING SWITCHOVER
4.確認primary 庫查詢結果是TO LOGICAL STANDBY
select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO LOGICAL STANDBY
如果為TO LOGICAL STANDBY 則表示可以switchover,如果為PREPARING SWITCHOVER ,則表示引數設定還有問題,無法去做switchover(standby 庫中的log_archive_dest_2 ,log_archive_dest_state_2引數沒有設定或者設定不正確,可能會導致PREPARING SWITCHOVER),如下
db2>alter database commit TO SWITCHOVER TO LOGICAL STANDBY;
alter database commit TO SWITCHOVER TO LOGICAL STANDBY
*
ERROR at line 1:
ORA-16217: prepare to switchover has not completed
ORA-06512: at line 1
本例中是因standby 庫中的log_archive_dest_state_2 錯誤設定為'DEFER'導致的
)
5.轉換primary為邏輯standby
alter database commit to switchover to logical standby;
6.檢查standby庫的狀態,正常為:TO PRIMARY
select switchover_status from v$database;
7.轉換邏輯standby為primary
alter database commit to switchover to primary;
8.啟動新邏輯standby的sql應用
alter database start logical standby apply immediate
9.檢查primary庫的操作是否可以在standby庫中應用
在primary上作一些dml操作,檢視standby是否有同步。
具體略……
Logical Standby Switchover切換結束
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10159839/viewspace-598221/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DataGuard:Physical Standby Switchover
- DataGuard:Logical Standby FailoverAI
- Dataguard物理Standby Switchover 角色轉換
- 【DataGuard】Oracle 11g physical standby switchoverOracle
- RAC環境LOGICAL STANDBY的SWITCHOVER切換
- oracle10g R2 logical standby switchover to primaryOracle
- DataGuard---->物理StandBy的角色切換之switchover
- DataGuard SwitchOver
- 一步一步學DataGuard(14)邏輯standby之switchover
- 【DataGuard】10g物理standby主備switchover方式切換詳述
- oracle9204(9i)_linux_logical standby_switchover操作指南OracleLinux
- oracle實驗記錄 (oracle 10G dataguard(11)建立logical standby)Oracle
- dataguard角色轉換—switchover
- Dataguard Physical Standy Switchover
- 10g_dataguard_switchover
- 建立 Logical Standby DatabaseDatabase
- manage logical standby databaseDatabase
- 單機Linux平臺Oracle 10g DataGuard Logical Standby 搭建例項LinuxOracle 10g
- DG物理standby,switchover步驟
- 監控Logical standby databaseDatabase
- 單機Linux平臺Oracle10g DataGuard Logical Standby搭建例項(6)LinuxOracle
- 單機Linux平臺Oracle10g DataGuard Logical Standby搭建例項(5)LinuxOracle
- 單機Linux平臺Oracle10g DataGuard Logical Standby搭建例項(4)LinuxOracle
- 單機Linux平臺Oracle10g DataGuard Logical Standby搭建例項(3)LinuxOracle
- 單機Linux平臺Oracle10g DataGuard Logical Standby搭建例項(2)LinuxOracle
- oracle dataguard 進行switchover測試Oracle
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- DataGuard搭建物理StandBy
- DataGuard搭建邏輯StandBy
- Dataguard(Standby) 後臺程式
- DataGuard:Physical Standby FailoverAI
- Physical Standby Switchover_status Showing Not Allowed
- Performing a Switchover to a Physical Standby Database and failoverORMDatabaseAI
- DATA GUARD物理STANDBY的 SWITCHOVER切換
- RAC環境STANDBY的SWITCHOVER切換
- Oracle DataGuard switchover切換一例Oracle
- 【DATAGUARD】物理dg的switchover切換(五)