RAC ORA-12516,12519

[oracle@racs1 ~]$ oerr ora 12516
12516, 00000, "TNS:listener could not find available handler with matching protocol stack"
// *Cause: None of the known and available service handlers for the given
// SERVICE_NAME support the client's protocol stack: transport, session,
// and presentation protocols.
// *Action: Check to make sure that the service handlers (e.g. dispatchers)
// for the given SERVICE_NAME are registered with the listener, are accepting
// connections, and that they are properly configured to support the desired
// protocols.

[oracle@racs1 ~]$ oerr ora 12519
12519, 00000, "TNS:no appropriate service handler found"
// *Cause: The listener could not find any available service handlers that
// are appropriate for the client connection.
// *Action: Run "lsnrctl services" to ensure that the instance(s) have
// registered with the listener, and are accepting connections.

 

crs_start -all启动所有程序后

crs_stat -t全部都ONLINE

但是执行lsnrctl status

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 19-JAN-2012 15:57:28

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
据网上说是静态注册的原因

lsnrctl status listener_name就正常了,

但是这样在远程连接就报12516和12519的错误

临时的解决办法:

srvctl stop listener -n racs1

srvctl stop listener -n racs2

racs1:

lsnrctl start

racs2:

lsnrctl start

执行完后,crs_stat -t,发现两个listener都是offline状态。

再执行

srvctl start listener -n racs1

srvctl start listener -n racs2

这样,问题就解决了,远程可以连接ORACLE了。

要想彻底解决可以如下做法:

vi /etc/hosts

127.0.0.1 localhost.localdomain localhost racs1

将后面的racs1 (计算机名)去掉就OK了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23065269/viewspace-715123/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23065269/viewspace-715123/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值