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
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- Oracle 19C Data Guard基礎運維-07 failover後閃回恢復dg架構Oracle運維AI架構
- Oracle 19C OGG基礎運維-02資料初始化Oracle運維
- oracle 11g data guard維護Oracle
- G008-ORACLE-DG ORACLE 19C Active Data Guard DML RedirectionOracle
- Oracle 19C OGG基礎運維-03DML操作同步Oracle運維3D
- Oracle 19C OGG基礎運維-05DDL操作同步Oracle運維
- Oracle 19C OGG基礎運維-01環境準備Oracle運維
- Oracle 19C OGG基礎運維-06增加複製表Oracle運維
- Oracle 19C OGG基礎運維-08Error code [942]Oracle運維Error
- Oracle分割槽表基礎運維-02範圍分割槽Oracle運維
- 【ASK_ORACLE】Oracle Data Guard(二)物理備庫的概念和優勢Oracle
- Oracle 19C OGG基礎運維-07減少複製表Oracle運維
- Oracle 19C OGG基礎運維-09OGG-15121錯誤Oracle運維
- Oracle Data Guard Broker元件Oracle元件
- Oracle Data Guard簡介Oracle
- Oracle 19C OGG基礎運維-04DML同步常見問題Oracle運維
- 01-linu核心基礎-02運維基礎重要概念運維
- 1 關於 Oracle Data GuardOracle
- 2 Oracle Data Guard 安裝Oracle
- 1 Oracle Data Guard Broker 概念Oracle
- Oracle Data Guard和Broker概述Oracle
- Jumpserver基礎運維-02檔案傳輸Server運維
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- 8 Oracle Data Guard Broker 屬性Oracle
- 9 Oracle Data Guard 故障診斷Oracle
- [20221111]19c配置Data Guard Broker問題.txt
- 【ASK_ORACLE】Oracle Data Guard(一)DG架構Oracle架構
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- 2 開始實用 Oracle Data GuardOracle
- 19 Oracle Data Guard 相關檢視Oracle
- ORACLE基礎運維命令操作手冊Oracle運維