Oracle 11.2.0.3.0 Active Data Guard 遇 ORA-10458、ORA-01152、ORA-01110 错误

今天第一次配 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



  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值