物理Standby角色切換作業failover
1,先關閉主的資料庫
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
以下都是在備援上面測試
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
Database altered.
SQL> alter database commit to switchover to primary;
Database altered.
SQL> create spfile from pfile;
File created.
SQL> ALTER DATABASE OPEN;
Database altered.
SQL> alter database stop logical standby apply;
Database altered.
SQL> shutdown immediate; ------------1
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 348127232 bytes
Fixed Size 1219328 bytes
Variable Size 113247488 bytes
Database Buffers 226492416 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> show parameter spfile
SQL> alter system set db_unique_name='zdtdbat1' scope=spfile;
System altered.
SQL> alter system set log_archive_dest_1='LOCATION=/u09/archivelog/zdtdbat1/ VALID_FOR=
(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=zdtdbat1' sco
pe=spfile;
System altered.
SQL> create pfile= '$ORACLE_HOME/dbs/initzdtdbat1.ora_2' from spfile;
File created.
SQL> shutdown immediate ----- 2
Database closed.
Database dismounted.
ORACLE instance shut down.
[oracle@zdttest dbs]$ export ORACLE_SID=zdtdbat1
[oracle@zdttest dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 21 16:41:51 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup pfile='$ORACLE_HOME/dbs/initzdtdbat1.ora_2';
ORACLE instance started.
Total System Global Area 348127232 bytes
Fixed Size 1219328 bytes
Variable Size 104858880 bytes
Database Buffers 234881024 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> create spfile from pfile='$ORACLE_HOME/dbs/initzdtdbat1.ora_2';
File created.
SQL> shutdown immediate; -------3
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.
Total System Global Area 348127232 bytes
Fixed Size 1219328 bytes
Variable Size 104858880 bytes
Database Buffers 234881024 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> create pfile='$ORACLE_HOME/dbs/initzdtdbat1.ora' from spfile;
File created.
[oracle@zdttest dbs]$ vi initzdtdbat1.ora
zdtdbat1sb.__db_cache_size=234881024
zdtdbat1.__db_cache_size=234881024
zdtdbat1.__java_pool_size=4194304
[oracle@zdttest dbs]$ sqlplus / as sysdba
SQL> startup pfile='$ORACLE_HOME/dbs/initzdtdbat1.ora';
ORACLE instance started.
Total System Global Area 348127232 bytes
Fixed Size 1219328 bytes
Variable Size 104858880 bytes
Database Buffers 234881024 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> create spfile from pfile='$ORACLE_HOME/dbs/initzdtdbat1.ora';
File created.
SQL> shutdown immediate ----4
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
SQL> select count(*) from aishu.OBJ_TS;
COUNT(*)
----------
50048
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15187685/viewspace-733588/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- dataguard之物理standby庫failover 切換AI
- DATA GUARD物理STANDBY的FAILOVER切換AI
- DataGuard---->物理StandBy的角色切換之switchover
- 物理DG角色轉換: failoverAI
- Dataguard物理Standby Switchover 角色轉換
- RAC環境STANDBY的FAILOVER切換AI
- 【DATAGUARD】物理dg的failover切換(六)AI
- dataguard之物理standby 日誌切換
- DATA GUARD物理STANDBY的 SWITCHOVER切換
- DATA GUARD物理STANDBY的 SWITCHOVER切換[zt]
- RAC環境LOGICAL STANDBY的FAILOVER切換AI
- 盛哥學習 Data Guard 第四篇《物理standby之failover 丟棄切換》AI
- DG物理standby,failover步驟AI
- RAC環境的物理STANDBY的 SWITCHOVER切換
- 邏輯 rac standby和物理 rac standby的switchover 和 failoverAI
- Oracle 10g DataGuard物理主備切換-switchover與failoverOracle 10gAI
- 物理dataguard 正常切換 角色轉換,switchover_status 狀態改變
- 主備切換(failover)AI
- DG物理standby,Failover之後原primary重回DGAI
- 物理DG角色轉換:switchover
- oracle 9iDATA GUARD物理STANDBY的 SWITCHOVER切換步驟Oracle
- 【DataGuard】10g物理standby主備switchover方式切換詳述
- Dataguard failover切換實驗AI
- 10g Data Guard physical standby的主備庫角色轉換測試(switchover & failover)AI
- 【DataGuard】物理Data Guard之Failover轉換AI
- GP standby切換成masterAST
- oracle 之dataguard standby 切換Oracle
- Physical Standby Database 切換到 Snapshot Standby DatabaseDatabase
- Oracle Failover - TAF 透明應用切換OracleAI
- 盛哥學習 Data Guard 第三篇《物理standby之switchover 無損切換》
- Oracle DataGuard環境failover後通過舊備份建立物理StandbyOracleAI
- 【DATAGUARD】物理dg配置客戶端無縫切換 (八.2)--Fast-Start Failover 的配置客戶端ASTAI
- GoldenGate的Primary-Standby切換Go
- RAC環境STANDBY的SWITCHOVER切換
- DataGuard:Physical Standby FailoverAI
- 【DATAGUARD】物理dg的switchover切換(五)
- 單節點DG的failover切換介紹AI
- openGauss主備切換之switchover與failoverAI