Oracle Data Guard Failover(activate)
物理備庫的強制啟用的步驟如下:
SQL> alter database activate standby database;
Database altered.
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
以下是failover的日誌:
Mon Jun 25 11:06:36 2012
alter database activate standby database
ALTER DATABASE ACTIVATE [PHYSICAL] STANDBY DATABASE (testdb)
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
RESETLOGS after incomplete recovery UNTIL CHANGE 42529492545
Archived Log entry 1764 added for thread 1 sequence 1780 ID 0x4176f7fd dest 1:
Waiting for all non-current ORLs to be archived...
All non-current ORLs have been archived.
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/data/oracle/oradata/testdb/redo1.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 1 /data/oracle/oradata/testdb/redo1.log
Clearing online log 1 of thread 1 sequence number 1779
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/data/oracle/oradata/testdb/redo1.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/data/oracle/oradata/testdb/redo1.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Mon Jun 25 11:06:51 2012
Clearing online redo logfile 1 complete
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/data/oracle/oradata/testdb/redo2.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 2 /data/oracle/oradata/testdb/redo2.log
Clearing online log 2 of thread 1 sequence number 1780
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/data/oracle/oradata/testdb/redo2.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '/data/oracle/oradata/testdb/redo2.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 2 complete
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/data/oracle/oradata/testdb/redo3.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 3 /data/oracle/oradata/testdb/redo3.log
Clearing online log 3 of thread 1 sequence number 1778
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/data/oracle/oradata/testdb/redo3.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/data/oracle/oradata/testdb/redo3.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Mon Jun 25 11:07:09 2012
Clearing online redo logfile 3 complete
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 4 of thread 1
ORA-00312: online log 4 thread 1: '/data/oracle/oradata/testdb/redo4.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 4 /data/oracle/oradata/testdb/redo4.log
Clearing online log 4 of thread 1 sequence number 20
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 4 of thread 1
ORA-00312: online log 4 thread 1: '/data/oracle/oradata/testdb/redo4.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Errors in file /data/oracle/diag/rdbms/std01/testdb/trace/testdb_ora_22538.trc:
ORA-00313: open failed for members of log group 4 of thread 1
ORA-00312: online log 4 thread 1: '/data/oracle/oradata/testdb/redo4.log'
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Clearing online redo logfile 4 complete
Resetting resetlogs activation ID 1098315773 (0x4176f7fd)
Online log /data/oracle/oradata/testdb/redo1.log: Thread 1 Group 1 was previously cleared
Online log /data/oracle/oradata/testdb/redo2.log: Thread 1 Group 2 was previously cleared
Online log /data/oracle/oradata/testdb/redo3.log: Thread 1 Group 3 was previously cleared
Online log /data/oracle/oradata/testdb/redo4.log: Thread 1 Group 4 was previously cleared
Standby became primary SCN: 42529492543
Mon Jun 25 11:07:16 2012
Setting recovery target incarnation to 2
ACTIVATE STANDBY: Complete - Database mounted as primary
Completed: alter database activate standby database
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/758322/viewspace-733929/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Data Guard Broker元件Oracle元件
- Oracle Data Guard簡介Oracle
- 1 關於 Oracle Data GuardOracle
- 2 Oracle Data Guard 安裝Oracle
- 1 Oracle Data Guard Broker 概念Oracle
- Oracle Data Guard和Broker概述Oracle
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- Oracle 19C Data Guard基礎運維-07 failover後閃回恢復dg架構Oracle運維AI架構
- 8 Oracle Data Guard Broker 屬性Oracle
- 9 Oracle Data Guard 故障診斷Oracle
- 【ASK_ORACLE】Oracle Data Guard(一)DG架構Oracle架構
- oracle 11g data guard維護Oracle
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- 2 開始實用 Oracle Data GuardOracle
- 19 Oracle Data Guard 相關檢視Oracle
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- 6 Oracle Data Guard Protection Modes 保護模式Oracle模式
- 15 Oracle Data Guard Scenarios 保護場景OracleiOS
- A Oracle Data Guard Broker 升級和降級Oracle
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- Oracle Data Guard Feature 12cR2系列(二)Oracle
- Oracle Data Guard Feature 12cR2系列(一)Oracle
- 18 與Oracle Data Guard 相關的SQL語句OracleSQL
- G008-ORACLE-DG ORACLE 19C Active Data Guard DML RedirectionOracle
- 【ASK_ORACLE】Oracle Data Guard(二)物理備庫的概念和優勢Oracle
- 【ASK_ORACLE】Oracle Data Guard(四)快照備庫的概念和優勢Oracle
- 【mos 1265700.1】Oracle Patch Assurance - Data Guard Standby-First Patch ApplyOracleAPP
- 【ASK_ORACLE】Oracle Data Guard(三)邏輯備庫的概念和優勢Oracle
- 單機搭建Data Guard
- Oracle 19C Data Guard基礎運維-02 Switchovers(物理)Oracle運維
- Oracle 19C Data Guard基礎運維-03 Failovers(物理)Oracle運維AI
- Oracle 19C Data Guard基礎運維-06 PROTECTION MODEOracle運維
- Oracle dataguard failover 實戰OracleAI
- Oracle 19C Data Guard基礎運維-08 DML重定向Oracle運維
- Oracle 19C Data Guard基礎運維-04 Failovers疑問?Oracle運維AI
- Oracle 19C Data Guard基礎運維-05Failovers (GAP)Oracle運維AI
- 【DG】Data Guard搭建(physical standby)
- bd_ticket_guard_client_dataclient
- Oracle 19C Data Guard基礎運維-01安裝物理standbyOracle運維