oracle10g R2 logical standby switchover to primary
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning and Data Mining options
Step 1 :Verify it is possible to perform. a switchover on the primary database.
--------------------
TO STANDBY
--------------------
PREPARING SWITCHOVER
--------------------
TO LOGICAL STANDBY
Primary> ALTER DATABASE COMMIT TO SWITCHOVER TO LOGICAL STANDBY;
--old logical standby database , new primary
Step 3 :Prepare the target logical standby database for the switchover.
Logical> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
--------------------
PREPARING SWITCHOVER
database that is about to become the new primary database.
--------------------
TO PRIMARY
LOG_ARCHIVE_CONFIG='DG_CONFIG=(mydg,stdby)'
LOG_ARCHIVE_DEST_1='location=/oracle/arch VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stdby'
LOG_ARCHIVE_DEST_2='SERVICE=mydg LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=mydg'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
DB_FILE_NAME_CONVERT='mydg','stdby'
LOG_FILE_NAME_CONVERT='mydg','stdby'
FAL_SERVER=mydg
FAL_CLIENT=stdby
standby_file_management=auto
*.log_archive_dest_3='location=/oracle/arch2 VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=stdby'
standby_archive_dest=/oracle/arch2
initmydg.ora --old primary standby database , new logical parameter file
LOG_ARCHIVE_CONFIG='DG_CONFIG=(mydg,stdby)'
LOG_ARCHIVE_DEST_1='location=/oracle/arch VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=mydg'
LOG_ARCHIVE_DEST_2='SERVICE=stdby LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stdby'
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_STATE_2=ENABLE
LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
#LOG_ARCHIVE_MAX_PROCESSES=10
#add for primary database standby role
DB_FILE_NAME_CONVERT='stdby','mydg'
LOG_FILE_NAME_CONVERT='stdby','mydg'
FAL_SERVER=stdby
FAL_CLIENT=mydg
standby_file_management=auto
#Primary Database:Logical standby Role initialization Parameters
LOG_ARCHIVE_DEST_3='LOCATION=/oracle/arch2 VALID_FOR=(standby_logfiles,standby_role)
LOG_ARCHIVE_DEST_STATE_3=ENABLE
STANDBY_ARCHIVE_DEST=/oracle/arch2
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-580183/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DataGuard:Logical Standby Switchover
- Oracle10g R2 Logical Standby 的一些概念[摘錄]Oracle
- RAC環境LOGICAL STANDBY的SWITCHOVER切換
- Oracle10g logical standby 建立Oracle
- 配置 Oracle 10g RAC primary + RAC logical standbyOracle 10g
- Oracle 9i R2 配置 Logical StandbyOracle
- oracle10g data guard role transition_physical_logical_switchover_failoverOracleAI
- Oracle10g Logical Standby的開啟與關閉Oracle
- DataGuard:Physical Standby Switchover
- oracle9204(9i)_linux_logical standby_switchover操作指南OracleLinux
- standby database to primary database.Database
- 建立 Logical Standby DatabaseDatabase
- manage logical standby databaseDatabase
- DG物理standby,switchover步驟
- DataGuard:Logical Standby FailoverAI
- 監控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
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- Dataguard物理Standby Switchover 角色轉換
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- logical standby 在非歸檔模式下,無法實時應用 for ORACLE10G模式Oracle
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- 判斷standby日誌是否同步primary
- GoldenGate的Primary-Standby切換Go
- Creating a physical standby from ASM primaryASM
- Physical Standby Switchover_status Showing Not Allowed
- 【DataGuard】Oracle 11g physical standby switchoverOracle
- Performing a Switchover to a Physical Standby Database and failoverORMDatabaseAI
- DATA GUARD物理STANDBY的 SWITCHOVER切換
- RAC環境STANDBY的SWITCHOVER切換
- 建立Oracle 11g logical standbyOracle
- Logical Standby Database的配置步驟.Database
- Create Logical Standby For Oracle 10GOracle 10g
- Logical Standby的維護操作_SKIP