tnsping远程主机实例出现tnsping 出现TNS-12560: TNS:protocol adapter error

两台主机centos5.1 主机,都安装oracle 10.2.0.1版本,一台oracle软件 是从另一台通过tar,然后ftp过去的。
今天从一台主机A tnsping 主机B上的实例,出现如下错误

[oracle@yao1 admin]$ tnsping ora10

TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 17-MAY-2010 16:54:41

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

Used parameter files:


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正常

oracle@yao2 ~]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 – Production on 17-MAY-2010 16:57:44

Copyright (c) 1991, 2005, Oracle. All rights reserved.

Starting /oracle/product/10.2.0/db_1/bin/tnslsnr: please wait…

TNSLSNR for Linux: Version 10.2.0.1.0 – Production
System parameter file is /oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.4.179)(PORT=1529)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
————————
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 – Production
Start Date 17-MAY-2010 16:57:46
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.4.179)(PORT=1529)))
Services Summary…
Service “PLSExtProc” has 1 instance(s).
Instance “PLSExtProc”, status UNKNOWN, has 1 handler(s) for this service…
Service “ora10″ has 1 instance(s).
Instance “ora10″, status UNKNOWN, has 1 handler(s) for this service…
The command completed successfully

本机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 ]

防火墙关闭后一切正常。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22608279/viewspace-663071/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22608279/viewspace-663071/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值