Oracle 11g rac 的 active dataguard的啟動步驟

甲骨文技術支援發表於2017-04-05
官方文件原文:
The COMPATIBLE database initialization parameter must be set to 11.0 or higher to use

the real-time query feature of the Active Data Guard option.
A physical standby database instance cannot be opened if Redo Apply is active on a
mounted instance of that database. Use the following SQL statements to stop Redo
Apply, open a standby instance read-only, and restart Redo Apply:
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE OPEN;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;

測試:(RAC的DG端每個節點都要執行)
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
MOUNTED
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
Database altered.
SQL> ALTER DATABASE OPEN;
Database altered.
SQL>  select open_mode from v$database;
OPEN_MODE
--------------------
READ ONLY
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
Database altered.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ ONLY WITH APPLY

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20893244/viewspace-2136667/,如需轉載,請註明出處,否則將追究法律責任。

相關文章