困扰许久的dataguard问题:error 12514 received logging on to the standby
2017-11-30 15:32
1446 查看
搭建dataguard环境,主库的归档日志就是传送不到备库上
用select dest_name,error from v$archive_dest;
总是报错:
ORA-12154: TNS:could not resolve the connect identifier specified
并且在主库的alert日志中有如下错误信息:
error 12514 received logging on to the standby
--------------------------------------------------------------------------------------------
由于最近几个月搭建dataguard环境特别多,总会遇到这个问题,但我仔细检查过配置,tnsnames.ora,log_archive_dest_2等信息都是正确的。
但是,归档日志就是传送不过去。之前遇到这种类似情况(太多了,记不清了),有使用过alter system set log_archive_dest_state_2=defer;
然后switch logfile,接着再改成enable:alter system set log_archive_dest_state_2=enable;解决过相关问题,但今天就是不行。
以前遇到这样的情况,只好重启数据库,立马就可以将归档日志传输过去。但今天由于主库已经上生产,不能随便重启,导致我也无计可施了。
-------------------------------------------------------------------------------------------
试着在metalink上搜了下(最近好几个月都很懒,不思进取,就想着天上掉馅饼),发现了如下一篇文章,算是对这个问题有深入的了解了:
归档进程在数据库启动后,只会在初始化过程中读取一次tnsnames.ora的信息,以后tnsnames.ora发生变化等情况,arch进程并不知晓。
这也就会导致当实例中log_archive_dest_2参数发生变化,arch识别不出相关tns别名,进而导致报错ora-12154
文章中提供的解决办法有:
1、kill掉归档进程(10g版本后不适用)
2、重启数据库(这招万能)
3、log_archive_dest_2参数不要用别名,写成连接字符串
比如:
alter system set log_archive_dest_2 = 'service="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=standbynode)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=STDBY)))"' ;
-------------------------------
我还是想想,怎么找机会重启数据库吧
--------------------------------------------------------------------------------------
用select dest_name,error from v$archive_dest;
总是报错:
ORA-12154: TNS:could not resolve the connect identifier specified
并且在主库的alert日志中有如下错误信息:
error 12514 received logging on to the standby
--------------------------------------------------------------------------------------------
由于最近几个月搭建dataguard环境特别多,总会遇到这个问题,但我仔细检查过配置,tnsnames.ora,log_archive_dest_2等信息都是正确的。
但是,归档日志就是传送不过去。之前遇到这种类似情况(太多了,记不清了),有使用过alter system set log_archive_dest_state_2=defer;
然后switch logfile,接着再改成enable:alter system set log_archive_dest_state_2=enable;解决过相关问题,但今天就是不行。
以前遇到这样的情况,只好重启数据库,立马就可以将归档日志传输过去。但今天由于主库已经上生产,不能随便重启,导致我也无计可施了。
-------------------------------------------------------------------------------------------
试着在metalink上搜了下(最近好几个月都很懒,不思进取,就想着天上掉馅饼),发现了如下一篇文章,算是对这个问题有深入的了解了:
归档进程在数据库启动后,只会在初始化过程中读取一次tnsnames.ora的信息,以后tnsnames.ora发生变化等情况,arch进程并不知晓。
这也就会导致当实例中log_archive_dest_2参数发生变化,arch识别不出相关tns别名,进而导致报错ora-12154
文章中提供的解决办法有:
1、kill掉归档进程(10g版本后不适用)
2、重启数据库(这招万能)
3、log_archive_dest_2参数不要用别名,写成连接字符串
比如:
alter system set log_archive_dest_2 = 'service="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=standbynode)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=STDBY)))"' ;
-------------------------------
我还是想想,怎么找机会重启数据库吧
--------------------------------------------------------------------------------------
Adding an new Standby fails with error Ora-12154: TNS:could not resolve the connect identifier specified (文档 ID 1240558.1) | 转到底部 |
In this Document
Oracle Database - Enterprise Edition - Version 9.0.1.0 to 11.2.0.1 [Release 9.0.1 to 11.2] |
相关文章推荐
- Error 9945 received logging on to the standby
- Error 1017 received logging on to the standby
- Error 1033 received logging on to the standby
- Oracle dataguard报错:Error 1017 received logging on to the standby
- Error 1017 received logging on to the standby
- RAC Error is 16191 Error 1017 received logging on to the standby
- 主库报 Error 12154 received logging on to the standby PING[ARC2]
- Error 12154 received logging on to the standby
- ORACLE数据库错误一例Error 12154 received logging on to the standby
- 主库报 Error 12154 received logging on to the standby PING[ARC2]
- Error 12154 received logging on to the standby
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)
- [Dataguard]ORA-16191: Primary log shipping client not logged on standby问题解决
- How to grant access to SQL logins on a standby database when the guest user is disabled in SQL Serve
- Oracle 11g R2 dataguard 备库报错 Heartbeat failed to connect to standby 'pdb'. Error is 16009
- Access denied error by access to a txt file on the sharepoint server
- Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge.的问题解决(Git代码冲突)
- How to Capture the Integer-Divide-By-Zero Error in C++(提前定义信号)
- The connection to adb is down, and a severe error has occured.问题解决方法小结
- Git pull 报 error: Your local changes to the following files would be overwritten by merge: xxx.java