Oracle 11.2.0.3.0 Active Data Guard 遇 ORA-10458、ORA-01152、ORA-01110 錯誤

來源:互聯網
上載者:User

今天第一次配 Oracle 11g R2 Active Data Guard,在用 RMAN 建立好 physical standby database 後,
嘗試將 standby 以 read only 方式開啟時遇如下錯誤:

SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1:
'/u01/app/oracle/oradata/STANDBY/datafile/o1_mf_system_8v8y9m2x_.dbf'

metalink 文章[ID 1312376.1]上描述是 primary database 的 compatible 參數設定錯誤

Primary:
SQL> col host_name for a20
SQL> select instance_name,host_name,version,archiver,log_switch_wait from v$instance;

INSTANCE_NAME    HOST_NAME            VERSION           ARCHIVE LOG_SWITCH_WAIT
---------------- -------------------- ----------------- ------- ---------------
prod             prod.oracle.com      11.2.0.3.0        STARTED 

Standby:
SQL> select instance_name,host_name,version,archiver,log_switch_wait from v$instance;

INSTANCE_NAME    HOST_NAME            VERSION           ARCHIVE LOG_SWITCH_WAIT
---------------- -------------------- ----------------- ------- ---------------
standby          standby.oracle.com   11.2.0.3.0        STARTED

Primary:
SQL> show parameter compatible
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
compatible                           string      11.2.0.0.0

Standby:
SQL> show parameter compatible
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
compatible                           string      11.2.0.0.0

將 Primary 和 Standby 的 compatible 參數全部修改為 11.2.0.2.0 後重啟便可將 standby 以 read only 方式開啟
primary:
SQL> alter system set compatible='11.2.0.2.0' scope=spfile;
SQL> shutdown immediate;
SQL> startup;

standby:
SQL> startup open read only;
SQL> select OPEN_MODE from v$database;
OPEN_MODE
--------------------

READ ONLY


轉載請註明作者出處及原文連結,否則將追究法律責任:

作者:xiangsir

原文連結:http://blog.csdn.net/xiangsir/article/details/9077527

QQ:444367417

MSN:xiangsir@hotmail.com

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.