【MOS】TNSPING TNS-12543: TNS:destination host unreachable (文档 ID 1556918.1)

简介: In this Document Symptoms Cause Solution APPLIES TO: Oracle Net Services - Version 11.

In this Document

Symptoms
Cause
Solution


APPLIES TO:

Oracle Net Services - Version 11.2.0.3 and later
Information in this document applies to any platform.

SYMPTOMS

When attempting to tnsping a remote server, 
the following error occurs.

ERROR
-----------------------
 tnsping orcl

TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 24-MAY-2013 15:47:42
Copyright (c) 1997, 2011, Oracle.  All rights reserved.
Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
TNS-12543: TNS:destination host unreachable

tnsnames.ora is well configured. lsnrctl status returns normal. orcl instance is registered normally to listener. ping the host succeed

ping xx.xx.xx.xx
PING xx.xx.xx.xx (xx.xx.xx.xx) 56(84) bytes of data.
64 bytes from xx.xx.xx.xx: icmp_seq=1 ttl=63 time=0.671 ms

Strace shows that the tnsping failed with below errors

strace -o a.txt tnsping orcl

$cat a.txt

........

getsockopt(4, SOL_SOCKET, SO_SNDBUF, 0x7fff2b16c0fc, 0x7fff2b16c0f8) = -1 EBADF (Bad file descriptor)
getsockopt(4, SOL_SOCKET, SO_RCVBUF, 0x7fff2b16c0fc, 0x7fff2b16c0f8) = -1 EBADF (Bad file descriptor)
lseek(3, 39936, SEEK_SET)               = 39936
read(3, "\r\0\3650\0\0V\0\3660\0\0t\0\3670\0\0\217\0\3700\0\0\246\0\3710\0\0\277\0"..., 512) = 512
write(1, "TNS-12543: TNS:destination host "..., 44) = 44

 

Also, it is possible that telnet may hang on 1521 port, but is ok on other port


# telnet xx.xx.xx.xx 1521
Trying...
^C# 
# telnet xx.xx.xx.xx 22
Trying...
Connected to xx.xx.xx.xx.

Trying same operation on server locally can succeed.

tnsping orcl

TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 27-MAY-2013 15:21:06

Copyright (c) 1997, 2011, Oracle.  All rights reserved.

Used parameter files:
/home/oracle/app/product/11.2.0/dbhome_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)

 

CAUSE

This might be a network issue with either the underlying transport not being able to contact the host, or a firewall is blocking this client or connection.

Make sure the network is functioning correctly.

 



 

SOLUTION

Contact OS/network admin to fix the network issue.
 



About Me


..........................................................................................................................................................................................................................................................................................................

● 本文来自于MOS转载文章,(文档 ID  1556918.1)

● 本文在itpub(http://blog.itpub.net/26736162)、博客园(http://www.cnblogs.com/lhrbest)和个人微信公众号(xiaomaimiaolhr)上有同步更新

● QQ群:230161599  微信群:私聊

● 小麦苗分享的其它资料:http://blog.itpub.net/26736162/viewspace-1624453/

● 小麦苗云盘地址http://blog.itpub.net/26736162/viewspace-1624453/

● QQ群: 230161599   微信群:私聊

● 联系我请加QQ好友(642808185),注明添加缘由

●【版权所有,文章允许转载,但须以链接方式注明源地址,否则追究法律责任】

..........................................................................................................................................................................................................................................................................................................

手机长按下图识别二维码或微信客户端扫描下边的二维码来关注小麦苗的微信公众号:xiaomaimiaolhr,免费学习最实用的数据库技术。



目录
相关文章
|
5月前
|
Oracle 关系型数据库 Java
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
196 0
|
12月前
|
Oracle 关系型数据库 数据安全/隐私保护
Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题。 用户名/
Oracle 10g ORA-12154: TNS: could not resolve the connect identifier specified 问题解决! 我同事遇到的问题。 用户名/
|
SQL Oracle 关系型数据库
TNS-12535: TNS:operation timed out案例解析
一数据库突然连接不上,在自己电脑上使用SQL Developer也连接不上。立即使用SecureCRT连接上了这台服务器,从下面几个方面检查。   1:检查了数据库的状态是否正常 $ sqlplus / as sysdba   SQL*Plus: Release 10.
3441 0
|
关系型数据库 数据库
ORA-12154: TNS:could not resolve the connect identifier specified
在安装ORACLE安装的时候,报如下错误:ORA-12154: TNS:could not resolve the connect identifier specified。如下图所示: 折腾了很久才找到罪魁祸首:原来在安装数据库时,设置用户密码的时候里面包含了@符号,引起了这个错误,这个错误倒是有点诡异,应该是ORACLE连接DB时就把口令@后面的串当连接字用了。
3007 0
|
网络协议 Oracle 关系型数据库
|
Oracle 网络协议 关系型数据库
|
Oracle 关系型数据库 Linux
【故障|监听】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111
【故障|监听】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111: Connection refused  Linux Error: 111: Connection refused [orac...
1891 0