linux系统 配置DataGuard时报ORA-12528错误的解决办法
程序员文章站
2022-06-29 17:06:17
这篇文章主要为大家介绍了在linux系统中搭建DataGuard时,运行rman恢复的时候报错ORA-12528错误的解决办法,... 14-09-24...
说明:在dataguard的搭建中,运行rman恢复的时候报错ora-12528的错误;
脚本如下:rman> connect auxiliary sys/oracle@scmprd02
解决步骤:
1、检查监听是否启动,脚本:tnsping scmprd02
方法一:配置数据库的监听为静态参数步骤:在oracle_home/network/admin 下面检查是否有listener.ora参数文件,如果没有的话运行netca创建数据库的监听,配置完成的监听文件如下:
复制代码
代码如下: listener =
(description_list =
(description =
(address = (protocol = tcp)(host = scmprddb02)(port = 1521))
(address = (protocol = ipc)(key = extproc1521))
)
)
adr_base_listener = /u01/app/oracle
方法二:修改tnsnames.ora文件
scmprd02 =
(description =
(address =
(protocol = tcp)(host = well)(port = 1521))
(connect_data =
(server = dedicated) (
service_name = scmprd02)
(ur = a) //增加该备注//
)
)
(description_list =
(description =
(address = (protocol = tcp)(host = scmprddb02)(port = 1521))
(address = (protocol = ipc)(key = extproc1521))
)
)
adr_base_listener = /u01/app/oracle
方法二:修改tnsnames.ora文件
scmprd02 =
(description =
(address =
(protocol = tcp)(host = well)(port = 1521))
(connect_data =
(server = dedicated) (
service_name = scmprd02)
(ur = a) //增加该备注//
)
)
总结:ora-12528: tns:listener: all appropriate instances are blocking new connections
因为我们复制数据库只是在nomount下打开,而数据库并没有mount,在11g下所有的监听都是动态监听,而只有在数据库mount以后,pmon进程起来以后,才能动态注册。所以对辅助数据库没有办法注册,只能被锁住。所以修改数据库的监听为静态监听,或者增加(ur=a)即可解决问题。谢谢阅读,希望能帮到大家,请继续关注,我们会努力分享更多优秀的文章。