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: "/Oracle/oradata/BSTYLE/system.309.766573511"alter.log有报错Error 12154 received logging on to the standby发生背景:
做dataguard,备库RMAN同步后alter database open read only发现起不来。rman过程并没有报错,启动备库的时候看alter.log有一堆Error 12154 received logging on to the standby,再看主库alter.log,也有一堆Error 12154 received logging on to the standby这说明什么呢,说明archivelog归档到备库的路径是失败的,归档不成功!但是主库sqlplus连备库,或备库连接主库都是正常的!为什么归档不行呢?SQL> select error from v$archive_dest;ERROR
-----------------------------------------------------------------ORA-12154: TNS:could not resolve the connect identifier specifiedI could tnsping the STANDBY from productionDataguard中archive_dest_2是用来指向备库的,负责将归档日志传到备库,检查配置参数注意dest_2中service=这里应该和tnsnames中定义备库的是一样的,如下图。我这里就是因为设置的不一样导致归档传出过去。改成一样的后一切OK!!!
相关参考:Oracle Data Guard 重要配置参数 http://www.linuxidc.com/Linux/2013-08/88784.htm基于同一主机配置 Oracle 11g Data Guard http://www.linuxidc.com/Linux/2013-08/88848.htm探索Oracle之11g DataGuard http://www.linuxidc.com/Linux/2013-08/88692.htmOracle Data Guard (RAC+DG) 归档删除策略及脚本 http://www.linuxidc.com/Linux/2013-07/87782.htmOracle Data Guard 的角色转换 http://www.linuxidc.com/Linux/2013-06/86190.htmOracle Data Guard的日志FAL gap问题 http://www.linuxidc.com/Linux/2013-04/82561.htmOracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 处理方法 http://www.linuxidc.com/Linux/2013-03/82009.htm更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12ORA-19809: limit exceeded for recovery files(超出了恢复文件数的限制)Oracle 11g RAC TAF 服务端配置实现failover相关资讯 DataGuard ORA-10458
- DataGuard如何传送Redo到Standby (05月04日)
- RAC环境下DataGuard到单机 (04月08日)
- Oracle 11G R2 DataGuard日常维护 (02月20日)
| - MRP0- Background Media Recovery (04月16日)
- DataGuard环境中的密码维护 (03月17日)
- Oracle 11G R2利用RMAN搭建 (02月20日)
|
本文评论 查看全部评论 (0)