oracle 10g physical standby 切換操作
primary庫操作:
SQL> select name,open_mode,protection_mode,database_role from v$database;
NAME OPEN_MODE PROTECTION_MODE DATABASE_ROLE
--------- ---------- -------------------- ----------------
YGH READ WRITE MAXIMUM PERFORMANCE PRIMARY
--------- ---------- -------------------- ----------------
YGH READ WRITE MAXIMUM PERFORMANCE PRIMARY
SQL> alter database commit to switchover to physical standby with session shutdown;
Database altered.
SQL> shutdown immediate
ORA-01507: database not mounted
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 264241152 bytes
Fixed Size 1218868 bytes
Variable Size 88082124 bytes
Database Buffers 171966464 bytes
Redo Buffers 2973696 bytes
SQL> alter database mount standby database;
Fixed Size 1218868 bytes
Variable Size 88082124 bytes
Database Buffers 171966464 bytes
Redo Buffers 2973696 bytes
SQL> alter database mount standby database;
Database altered.
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL> select name,open_mode,protection_mode,database_role from v$database;
NAME OPEN_MODE PROTECTION_MODE DATABASE_ROLE
--------- ---------- -------------------- ----------------
YGH MOUNTED MAXIMUM PERFORMANCE PHYSICAL STANDBY
--------- ---------- -------------------- ----------------
YGH MOUNTED MAXIMUM PERFORMANCE PHYSICAL STANDBY
standby庫操作:
SQL> select name,open_mode,protection_mode,database_role from v$database;
NAME OPEN_MODE PROTECTION_MODE DATABASE_ROLE
--------- ---------- -------------------- ----------------
YGH MOUNTED MAXIMUM PERFORMANCE PHYSICAL STANDBY
--------- ---------- -------------------- ----------------
YGH MOUNTED MAXIMUM PERFORMANCE PHYSICAL STANDBY
SQL> alter database commit to switchover to primary;
Database altered.
SQL> shutdown immediate
ORA-01109: database not open
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 264241152 bytes
Fixed Size 1218868 bytes
Variable Size 88082124 bytes
Database Buffers 171966464 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> select name,open_mode,protection_mode,database_role from v$database;
Fixed Size 1218868 bytes
Variable Size 88082124 bytes
Database Buffers 171966464 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> select name,open_mode,protection_mode,database_role from v$database;
NAME OPEN_MODE PROTECTION_MODE DATABASE_ROLE
--------- ---------- -------------------- ----------------
YGH READ WRITE MAXIMUM PERFORMANCE PRIMARY
--------- ---------- -------------------- ----------------
YGH READ WRITE MAXIMUM PERFORMANCE PRIMARY
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-2146564/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle 11.2.0.4 physical dataguard和snapshot dataguard切換Oracle
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- Oracle 12.2 physical standby備庫收集AWR報告Oracle
- Oracle 18c&19c physical dg切換總結Oracle
- oracle dg切換操作示例Oracle
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- 【DG】Data Guard搭建(physical standby)
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- Oracle 11g dg switchover切換操作流程Oracle
- Oracle切換undo表空間操作步驟Oracle
- DataGuard---->物理StandBy的角色切換之switchover
- 含有replication環境的sqlserver切換到standbySQLServer
- Oracle Physical Database LimitsOracleDatabaseMIT
- Physical Standby Switchover_status Showing Not Allowed. (Doc ID 1392763.1)
- DG的切換操作
- Oracle 10g RAC 資料儲存更換Oracle 10g
- dg切換操作文件
- Oracle的快照standbyOracle
- Oracle RAC DG手動切換Oracle
- Oracle Temp 表空間切換Oracle
- oracle11g dataguard切換Oracle
- Oracle 單機切換為主備Oracle
- Oracle DataGuard 主備切換 (switchover) oracle11gOracle
- 5 切換和故障轉移操作
- Oracle 10g/11g下如何將物理Standby庫臨時啟用用於災備測試Oracle 10g
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- ORACLE線上切換undo表空間Oracle
- Oracle ADG 自動切換指令碼分享Oracle指令碼
- oracle 11g datagurd主從切換Oracle
- oracle 10g flashback databaseOracle 10gDatabase
- 10g DG保護模式的切換:從最大效能到最大可用模式
- Oracle 19c Concepts(11):Physical Storage StructuresOracleStruct
- 5分鐘,徹底精通Oracle DG切換Oracle
- 14. ORACLE到MYSQL上線切換方式OracleMySql
- Oracle 10g 下載地址Oracle 10g
- oracle 10G特性之awrOracle 10g
- Scheduler in Oracle Database 10g(轉)OracleDatabase