Oracle 19C Data Guard基礎運維-02 Switchovers(物理)
Oracle 19C Data Guard 基礎運維 -02 S witchover s( 物理 )
原主庫 |
原備庫 |
Switchovers |
新主庫 |
新備庫 |
192.168.31.90 |
192.168.31.100 |
192.168.31.100 |
192.168.31.90 | |
cjcdb |
chendb |
chendb |
cjcdb |
原理:
Figure 9-1 Oracle Data Guard Configuration Before Switchover
Figure 9-2 Standby Databases Before Switchover to the New Primary Database
Figure 9-3 Oracle Data Guard Environment After Switchover
Performing a Switchover to a Physical Standby Database
31.90 主庫
SQL> select database_role,protection_level,protection_mode from v$database;
DATABASE_ROLE PROTECTION_LEVEL PROTECTION_MODE
---------------- -------------------- --------------------
PRIMARY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
31.100 備庫
SQL> select database_role,protection_level,protection_mode from v$database;
DATABASE_ROLE PROTECTION_LEVEL PROTECTION_MODE
---------------- -------------------- --------------------
PHYSICAL STANDBY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
1. 驗證目標備用資料庫是否已準備好進行切換。
Verify that the target standby database is ready for switchover.
31.90 主庫
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO STANDBY
或
SQL> alter database switchover to chendb verify;
Database altered
2. 在主資料庫 CJCDB 上啟動切換,方法是發出以下命令
Initiate the switchover on the primary database, CJCDB , by issuing the following
31.90 主庫
SQL> alter database switchover to chendb;
Database altered.
3. 在新的主資料庫 chendb 上發出以下 SQL 語句以開啟它。
Issue the following SQL statement on the new primary database, CHICAGO , to open
it.
SQL> alter database open;
4. 發出以下 SQL 語句以裝載新的物理備用資料庫 CJCDB :
Issue the following SQL statement to mount the new physical standby database,
BOSTON :
SQL>startup mount;
或者,如果 CJCDB 是Oracle Active Data Guard物理備用資料庫,則發出以下SQL語句以只讀方式開啟它:
Or, if BOSTON is an Oracle Active Data Guard physical standby database, then
issue the following SQL statement to open it read only:
SQL> STARTUP;
5 . 在新的物理備用資料庫 CJCDB 上啟動Redo Apply 。例如:
Start Redo Apply on the new physical standby database. For example:
3.90 新備庫
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
SQL> select database_role,protection_level,protection_mode from v$database;
DATABASE_ROLE PROTECTION_LEVEL PROTECTION_MODE
---------------- -------------------- --------------------
PHYSICAL STANDBY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
3.100 新主庫
SQL> select database_role,protection_level,protection_mode from v$database;
DATABASE_ROLE PROTECTION_LEVEL PROTECTION_MODE
---------------- -------------------- --------------------
PRIMARY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE
同步測試:
新主庫chendb:
SQL> create table test2 as select level as id from dual connect by level <=3;
新備庫cjcpdb:
SQL> select * from test2;
ID
----------
1
2
3
歡迎關注我的微信公眾號"IT小Chen",共同學習,共同成長!!!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2686646/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 19C Data Guard基礎運維-03 Failovers(物理)Oracle運維AI
- Oracle 19C Data Guard基礎運維-01安裝物理standbyOracle運維
- Oracle 19C Data Guard基礎運維-06 PROTECTION MODEOracle運維
- Oracle 19C Data Guard基礎運維-08 DML重定向Oracle運維
- Oracle 19C Data Guard基礎運維-04 Failovers疑問?Oracle運維AI
- Oracle 19C Data Guard基礎運維-05Failovers (GAP)Oracle運維AI
- Oracle 19C Data Guard基礎運維-07 failover後閃回恢復dg架構Oracle運維AI架構
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- Oracle Data Guard主庫備庫角色切換(Switchovers)Oracle
- Oracle 19C OGG基礎運維-02資料初始化Oracle運維
- oracle 10g物理data guard 操作Oracle 10g
- 物理DG!Oracle 10G Data Guard DemoOracle 10g
- Oracle 19C OGG基礎運維-03DML操作同步Oracle運維3D
- Oracle 19C OGG基礎運維-05DDL操作同步Oracle運維
- Oracle 19C OGG基礎運維-06增加複製表Oracle運維
- Oracle 19C OGG基礎運維-08Error code [942]Oracle運維Error
- Oracle 19C OGG基礎運維-01環境準備Oracle運維
- Oracle 11g RAC Data Guard 物理standby 建立Oracle
- 搭建Oracle Data Guard 11g(物理備用)Oracle
- RedHat搭建物理Data GuardRedhat
- Oracle 19C OGG基礎運維-07減少複製表Oracle運維
- 轉載《Data Guard Broker基礎》
- oracle 11g data guard維護Oracle
- 物理data guard原理的理解(zt)
- [轉]物理data guard原理的理解
- Oracle data guard常用維護操作命令(轉)Oracle
- G008-ORACLE-DG ORACLE 19C Active Data Guard DML RedirectionOracle
- Oracle 19C OGG基礎運維-04DML同步常見問題Oracle運維
- oracle data guard!!Oracle
- 總結11g 物理data guard
- DATA GUARD物理STANDBY的 SWITCHOVER切換
- Oracle 19C OGG基礎運維-09OGG-15121錯誤Oracle運維
- 【DataGuard】使用Grid Control快速部署Oracle物理Data GuardOracle
- 【ASK_ORACLE】Oracle Data Guard(二)物理備庫的概念和優勢Oracle
- Oracle分割槽表基礎運維-02範圍分割槽Oracle運維
- 介紹ORACLE DATA GUARD——DATA GUARD概念和管理Oracle
- Oracle Data Guard配置Oracle
- Data guard 配置之搭建物理備庫