你好,游客 登录 注册 搜索
背景:
阅读新闻

DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110

[日期:2014-01-12] 来源:Linux社区  作者:xu3jin [字体:大 中 小]

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 specified

I could tnsping the STANDBY from production

Dataguard中archive_dest_2是用来指向备库的,负责将归档日志传到备库,检查配置参数

DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110

注意dest_2中service=这里应该和tnsnames中定义备库的是一样的,如下图。

DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110

我这里就是因为设置的不一样导致归档传出过去。改成一样的后一切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.htm

Oracle Data Guard (RAC+DG) 归档删除策略及脚本 http://www.linuxidc.com/Linux/2013-07/87782.htm

Oracle Data Guard 的角色转换 http://www.linuxidc.com/Linux/2013-06/86190.htm

Oracle Data Guard的日志FAL gap问题 http://www.linuxidc.com/Linux/2013-04/82561.htm

Oracle 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=12

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款