tnsping自己主机ping得通ping其他机器ping不通 是防火墙没有关
tnsping jssstr
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 31-JUL-2013 15:10:18
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.37)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jssstr)))
TNS-12560: TNS:protocol adapter error
tnsping远程主机实例出现tnsping 出现TNS-
12560: TNS:protocol adapter error
两台主机centos5.1 主机,都安装oracle 10.2.0.1版本,一台oracle软件 是从另一台通过tar,然后ftp过去的。
今天从一台主机A tnsping 主机B上的实例,出现如下错误
今天从一台主机A tnsping 主机B上的实例,出现如下错误
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.4.179)(PORT = 1529)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = ora10)))
TNS-12560: TNS:protocol adapter error
主机B上重启监听lsnrctl stop正常
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.4.179)(PORT = 1529)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = ora10)))
TNS-12560: TNS:protocol adapter error
主机B上重启监听lsnrctl stop正常
[oracle@jssweb ~]$ tnsping jssstr
TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 31-JUL-2013 15:10:18
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.10.37)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = jssstr)))
TNS-12560: TNS:protocol adapter error
本机B tnsping自己正常,tnsping A也正常,而其他所有主机tnsping 都出现如上错误,tnsname.ora 设置正常,端口修改也不能解决远程主机Atnsping B成功。
最后发现是 主机A服务器防火墙已经关闭,而主机B上防火墙没有关闭进行如下操作
[root@localhost ~]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
防火墙关闭后一切正常。