我是靠谱客的博主 热心钢笔,最近开发中收集的这篇文章主要介绍oracle ora32771,DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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是用来指向备库的,负责将归档日志传到备库,检查配置参数

d706f605c00e50a7886b36c1351742a7.png

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

a7a5cecba7651ca878d04b1b24fde77e.png

我这里就是因为设置的不一样导致归档传出过去。改成一样的后一切OK!!!

相关参考:

Oracle Data Guard 重要配置参数

基于同一主机配置 Oracle 11g Data Guard

探索Oracle之11g DataGuard

Oracle Data Guard (RAC+DG) 归档删除策略及脚本

Oracle Data Guard 的角色转换

Oracle Data Guard的日志FAL gap问题

Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 处理方法

http://www.dengb.com/sjkjc/803347.htmlwww.dengb.comtruehttp://www.dengb.com/sjkjc/803347.htmlTechArticleSQL 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 sufficie...

最后

以上就是热心钢笔为你收集整理的oracle ora32771,DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110的全部内容,希望文章能够帮你解决oracle ora32771,DataGuard备库无法OPEN报ORA-10458:ORA-01152:ORA-01110所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部