ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2021-04-10 15:56:27  阅读:173  来源: 互联网

标签:1556918.1 TNS MOS orcl xx tnsping host network


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.
 



 


标签:1556918.1,TNS,MOS,orcl,xx,tnsping,host,network
来源: https://blog.51cto.com/lhrbest/2697679

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有