重庆思庄Oracle、Redhat认证学习论坛

标题: 搭建DG 打开备库提示ORA-10458 [打印本页]

作者: miss_puff    时间: 2017-6-26 18:18
标题: 搭建DG 打开备库提示ORA-10458
发生背景:
搭建11g  DG ,备库rman同步后打开备库提示如下:

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/test/system01.dbf'


查看备库日志,发现一堆Error 12154 received logging on to the standby的报错
查询主库:
SQL> select dest_name,status,error from v$archive_dest;

dest_name                 status               ERROR
-----------------------------------------------------------------
log_archive_dest_1        valid               
log_archive_dest_2        BAD PARAM             ORA-12154: TNS:could not resolve the connect identifier specified  I could tnsping the STANDBY from production
..................................................................

分析:log_archive_dest_2是用来指向备库的,负责将归档日志传到备库。
最后发现log_archive_dest_2中的service这里应该和tnsnames中定义的备库的服务名一致。修改后open备库正常打开。






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2