今天在listener日志中发现如下报错:
TNS-12502: TNS:listener received no CONNECT_DATA from client
查了一下资料,oracle解释如下:
Error: ORA-12502 / TNS-12502
Text: TNS:listener received no CONNECT_DATA from client
---------------------------------------------------------------------------
Cause: No CONNECT_DATA was passed to the listener.
Action: Check that the service name resolved from TNSNAMES.ORA has the
CONNECT_DATA component of the connect descriptor.
也就是说只有在TNSNAMES.ORA文件中不包含CONNECT_DATA时会出现此问题。可以通过telnet 1521端口的方式重现该问题:
[oracle@localhost archivelog]$ telnet 192.168.136.19 1521
Trying 192.168.136.19...
Connected to 192.168.136.19 (192.168.136.19).
Escape character is '^]'.
Connection closed by foreign host.
此时,在listener日志里就出现
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
WARNING: Subscription for node down event still pending
15-JUL-2009 03:43:12 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=localhost.localdomain)(USER=oracle))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169870336)) * status * 0
15-JUL-2009 05:18:45 * 12502
TNS-12502: TNS:listener received no CONNECT_DATA from client
如果没有其他异常的话,该错误不会影响应用。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10972173/viewspace-609198/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10972173/viewspace-609198/