Oracle dataguard failover 實戰
Oracle dataguard failover 實戰
操作步驟
備庫:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
SQL> SHUTDOWN IMMEDIATE;
SQL> STARTUP;
新增臨時檔案,刪除老的臨時檔案
附表
具體操作和alert日誌如下:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
Database altered.
備庫alert
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE
Tue Apr 9 10:55:24 2013
Terminal Recovery: request posted (orcl) ---備庫例項
Tue Apr 9 10:55:27 2013
Terminal Recovery timestamp is '04/09/2013 10:55:27' ---恢復時間戳
Terminal Recovery: applying standby redo logs.
Terminal Recovery: thread 1 seq# 29879 redo required
Terminal Recovery: /opt/oracle/oradata/research/redo04.log ---standby redo log
Identified End-Of-Redo for thread 1 sequence 29879
Tue Apr 9 10:55:28 2013
Incomplete recovery applied all redo ever generated.
Recovery completed through change 1900634393
Tue Apr 9 10:55:28 2013
MRP0: Media Recovery Complete (orcl)
Terminal Recovery: successful completion
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
Resetting standby activation ID 2055592130 (0x7a85d8c2)
Tue Apr 9 10:55:32 2013
Waiting for MRP0 pid 1241 to terminate
Waiting for MRP0 pid 1241 to terminate
Waiting for MRP0 pid 1241 to terminate
Tue Apr 9 10:55:34 2013
MRP0: Background Media Recovery process shutdown (orcl)
Tue Apr 9 10:55:35 2013
Terminal Recovery: completion detected (orcl)
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE
主庫alert
ARC0: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3113)
ARC0: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
PING[ARC0]: Error 3113 when pinging standby orcl.
Tue Apr 9 10:36:23 2013
Errors in file /opt/oracle/admin/research/bdump/research_lns1_8489.trc:
ORA-03113: end-of-file on communication channel
Tue Apr 9 10:36:23 2013
LGWR: I/O error 3113 archiving log 1 to 'orcl'
主庫
SQL> alter system set log_archive_dest_state_2='defer';
System altered
備庫
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
Database altered.
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
Tue Apr 9 11:08:41 2013
ALTER DATABASE SWITCHOVER TO PRIMARY (orcl) ---orcl例項成為PRIMARY
Tue Apr 9 11:08:41 2013
If media recovery active, switchover will wait 900 seconds
Standby terminal recovery start SCN: 1900632860
SwitchOver after complete recovery through change 1900634393
Tue Apr 9 11:08:41 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/opt/oracle/oradata/research/redo01.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Tue Apr 9 11:08:42 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/opt/oracle/oradata/research/redo02.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Tue Apr 9 11:08:43 2013
Errors in file /opt/oracle/admin/research/udump/orcl_ora_4506.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/opt/oracle/oradata/research/redo03.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Standby became primary SCN: 1900632859
Tue Apr 9 11:08:44 2013
Switchover: Complete - Database shutdown required (orcl)
Completed: ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
Tue Apr 9 11:09:12 2013
ARC1: Archival disabled due to instance shutdown
Shutting down archive processes
Archiving is disabled
Tue Apr 9 11:09:22 2013
ARCH shutting down
ARC0: Archival stopped
Tue Apr 9 11:09:27 2013
ARCH shutting down
ARC1: Archival stopped
SQL> shutdown immediate;
ORA-01507: database not mounted
ORACLE instance shut down.
Tue Apr 9 11:10:33 2013
Shutting down instance: further logons disabled
Tue Apr 9 11:10:33 2013
Stopping background process MMNL
Tue Apr 9 11:10:33 2013
Stopping background process MMON
Tue Apr 9 11:10:34 2013
Shutting down instance (immediate)
License high water mark = 10
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Tue Apr 9 11:10:36 2013
ALTER DATABASE CLOSE NORMAL
ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archival disabled due to shutdown: 1089
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
SQL> startup
ORACLE instance started.
Total System Global Area 2147483648 bytes
Fixed Size 2022144 bytes
Variable Size 1526727936 bytes
Database Buffers 603979776 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.
備庫新增臨時檔案,刪除老的臨時檔案
alter tablespace temp add tempfile xxxxx size 1G autoextend on maxsize 10G;
alter tablespace doudou add tempfile xxxbb size 1G autoextend on maxsize 10G;
shutdown immediate;
startup;
alter database tempfile '/xxxx/temp01.dbf' drop including datafiles;
alter database tempfile '/xxxx/doudou01.dbf' drop including datafiles;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-2152563/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Dataguard故障轉移(failover)操作OracleAI
- 【ASK_ORACLE】手動配置DataGuard的自動化Client Failover(故障轉移)的serviceOracleclientAI
- 【DATAGUARD】Oracle Dataguard物理備庫切換最佳實踐(sqlplus)OracleSQL
- 【DATAGUARD】Oracle Dataguard nologging 塊修復Oracle
- ORA-19909(一次DataGuard Failover導致的故障AI
- oracle dataguard broker 配置Oracle
- Oracle:Failover 到物理備庫OracleAI
- Oracle 11.2.0.4 physical dataguard和snapshot dataguard切換Oracle
- 【DATAGUARD】Oracle Dataguard體系架構詳解Oracle架構
- 【DATAGUARD】Oracle19c dataguard新特性及部署Oracle
- Oracle 單機配置DataGuardOracle
- oracle 19c dataguard silent install (oracle 19c dataguard 靜默安裝)Oracle
- Oracle之11g DataGuardOracle
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- 【Dataguard】Oracle多租戶環境對Dataguard的影響Oracle
- Oracle 11g dg broker自動failoverOracleAI
- oracle11g dataguard切換Oracle
- 7 Oracle DataGuard 命令列參考Oracle命令列
- Oracle DataGuard 主備切換 (switchover) oracle11gOracle
- 【DATAGUARD】Dataguard遠端同步配置最佳實踐
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- Oracle 11.2.0.4 Dataguard兩則故障處理Oracle
- 【DATAGUARD】Oracle21c Dataguard建立注意事項及主要引數介紹Oracle
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- Oracle資料庫(DataGuard)遷移方案(上)Oracle資料庫
- Oracle資料庫(DataGuard)遷移方案(中)Oracle資料庫
- Oracle資料庫(DataGuard)遷移方案(下)Oracle資料庫
- 【DATAGUARD】Oracle 通過Dataguard指定恢復時間用於找回丟失資料Oracle
- Oracle 11g dataguard 配置簡約步驟Oracle
- Oracle RMAN備份實戰Oracle
- Oracle DataGuard歸檔日誌丟失處理方法Oracle
- oracle10g DataGuard的日誌傳輸方式Oracle
- oracle 19c使用dgmgrl來執行switchover和failover切換OracleAI
- dataguard 搭建 oracle_sid相同 2節點 primary+standbyOracle
- ORACLE 11G DATAGUARD 日誌中斷處理方案Oracle
- dataguard 搭建 oracle_sid不同 2節點 primary+standbyOracle
- 【Dataguard】DataGuard運維注意事項運維
- ASA failover配置(A/S)AI