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

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,免费学习最实用的数据库技术。

时间: 2024-07-31 14:51:33

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

【MOS】EVENT: DROP_SEGMENTS - cleanup of TEMPORARY segments (文档 ID 47400.1)

[MOS]EVENT: DROP_SEGMENTS - Forcing cleanup of TEMPORARY segments (文档 ID 47400.1) ***Checked for relevance on 14-Jun-2012*** The DROP_SEGMENTS event ~~~~~~~~~~~~~~~~~~~~~~~ Available from 8.0 onwards. DESCRIPTION Finds all the temporary segments in a

【MOS】Top 5 Grid Infrastructure Startup Issues (文档 ID 1368382.1)

 Top 5 Grid Infrastructure Startup Issues (文档 ID 1368382.1) In this Document Purpose Scope Details   Issue #1: CRS-4639: Could not contact Oracle High Availability Services, ohasd.bin not running or ohasd.bin is running but no init.ohasd or other pro

【MOS】Troubleshooting 'enq: TX - index contention' Waits (文档 ID 873243.1)

                                                                                                                                                                                                                                                          

关于TNS-12543: TNS:destination host unreachable的案例

今天在给几个库做映射的时候,用tnsping,有一个库老是有问题,在客户端配置 tnsping NFTTEST Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.198.51)(PORT = 1563))) (CONNECT_DATA = (SERVICE_NAME = N

icmp的报文,Destination Host Unreachable

icmp的报文,Destination Host Unreachable的意思如下: http://www.corenetworkz.com/2009/05/destination-host-unreachable-reason-and.html   The error message "Destination Host Unreachable " tells that the ping request from our computer cannot find the route t

destination host unreachable 问题解决

ping www.baidu.com 出现:destination host unreachable 使用:arp -a 查看网关的mac地址是否正常解析             services.msc  进入服务控制板 找到 IPsec Internet 协议安全(IPSec)支持网络级别的对等身份验证.数据原始身份验证.数据完整性.数据机密性(加密)以及重播保护.此服务强制执行通过 IP 安全策略管理单元或命令行工具 "netsh ipsec" 创建的 IPSec 策略.停止此服

Archiver Failing With Ora-12571: Tns:Packet Writer Failure (文档 ID 1143523.1)

Archiver Failing With Ora-12571: Tns:Packet Writer Failure (文档 ID 1143523.1) 转到底部 修改时间:2013-1-1类型:PROBLEM状态:PUBLISHED优先级:3 注释 (0) In this Document   Symptoms   Cause   Solution APPLIES TO: Oracle Net Services - Version 10.2.0.1 to 11.2.0.3 [Release 1

【MOS】中文文档列表 - Oracle Database (文档 ID 1533057.1)

中文文档列表 - Oracle Database (文档 ID 1533057.1) 类型: 状态: 上次主更新: 上次更新: ANNOUNCEMENT PUBLISHED 2017-2-23 2017-2-23     文档内容 详细信息 操作   Oracle 数据库技术支持通讯   安装/升级/降级/迁移相关     日常管理相关   性能相关     集群及存储相关   高可用相关   TimesTen 内存数据库 联系人 参考 适用于: Oracle Database - Enterp

【MOS】在不同版本和平台之间进行还原或复制 (文档 ID 1526162.1)--跨版本恢复

[MOS]关于在不同版本和平台之间进行还原或复制的常见问题 (文档 ID 1526162.1)--跨版本恢复 Questions and Answers    1) 我能用更高版本的 Oracle 还原或复制旧版本的数据库吗?    2) 我能在两个不同的补丁程序集之间进行还原或复制吗?    3) 我能在同一操作系统的不同版本之间进行还原或复制吗?    4) Oracle 的位(bit)级别(32 位或 64 位)不匹配时,可以进行还原或复制吗?    5) 可以将更高版本的备份还原到较早版