本机用PL/SQL可以连上, 在其他机器上连本机的时候总提示TNS连接超时.
2009-06-24 10:35
459 查看
我在本机装了一个oracle,导了一个DMP, 在本机用PL/SQL可以连上, 在其他机器上连本机的时候总提示TNS连接超时。
其它机器tnsping也报同样的错误, 如下:
C:/Documents and Settings/zhujunli>tnsping 87
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-6月 -
2009 09:39:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
F:/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.3.87)(PORT = 1521))) (CONNECT_DATA = (SID = ORCL)))
TNS-12535: TNS: 操作超时
其他机器可以ping通。
本机用netstat –a查看,可以看到1521端口是打开的:
C:/Documents and Settings/chendaiyuan>netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP furtherchan:epmap furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:microsoft-ds furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:3389 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1057 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1093 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1108 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:5354 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:netbios-ssn furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1080 192.168.1.121:49112 ESTABLISHED
TCP furtherchan:1090 192.168.1.121:49115 ESTABLISHED
TCP furtherchan:1105 mediinfo1.mediinfo.com.cn:http CLOSE_WAIT
TCP furtherchan:1403 119.147.18.89:https CLOSE_WAIT
TCP furtherchan:1521 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:2400 192.168.1.122:3389 ESTABLISHED
TCP furtherchan:2406 mediinfo2.mediinfo.com.cn:2572 ESTABLISHED
TCP furtherchan:2408 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
TCP furtherchan:2409 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
TCP furtherchan:2410 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
………
然后telnet 本机IP 1521:
C:/Documents and Settings/chenxiao>telnet 192.168.3.87 1521
正在连接到192.168.3.87...不能打开到主机的连接, 在端口 1521: 连接失败
想到可能是Windows防火墙造成的, 关闭防火墙后, 其他机器用PL/SQL连接成功!
其它机器tnsping也报同样的错误, 如下:
C:/Documents and Settings/zhujunli>tnsping 87
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 24-6月 -
2009 09:39:40
Copyright (c) 1997, 2005, Oracle. All rights reserved.
已使用的参数文件:
F:/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
已使用 TNSNAMES 适配器来解析别名
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.3.87)(PORT = 1521))) (CONNECT_DATA = (SID = ORCL)))
TNS-12535: TNS: 操作超时
其他机器可以ping通。
本机用netstat –a查看,可以看到1521端口是打开的:
C:/Documents and Settings/chendaiyuan>netstat -a
Active Connections
Proto Local Address Foreign Address State
TCP furtherchan:epmap furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:microsoft-ds furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:3389 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1057 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1093 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1108 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:5354 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:netbios-ssn furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:1080 192.168.1.121:49112 ESTABLISHED
TCP furtherchan:1090 192.168.1.121:49115 ESTABLISHED
TCP furtherchan:1105 mediinfo1.mediinfo.com.cn:http CLOSE_WAIT
TCP furtherchan:1403 119.147.18.89:https CLOSE_WAIT
TCP furtherchan:1521 furtherchan.MediInfo.com.cn:0 LISTENING
TCP furtherchan:2400 192.168.1.122:3389 ESTABLISHED
TCP furtherchan:2406 mediinfo2.mediinfo.com.cn:2572 ESTABLISHED
TCP furtherchan:2408 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
TCP furtherchan:2409 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
TCP furtherchan:2410 mediinfo2.mediinfo.com.cn:1025 ESTABLISHED
………
然后telnet 本机IP 1521:
C:/Documents and Settings/chenxiao>telnet 192.168.3.87 1521
正在连接到192.168.3.87...不能打开到主机的连接, 在端口 1521: 连接失败
想到可能是Windows防火墙造成的, 关闭防火墙后, 其他机器用PL/SQL连接成功!
相关文章推荐
- 本机可以连接 同一个局域网其他机器 连接 提示tns 连接超时 -防火墙导致的
- pl_sql连接提示tns监听不可用但本地可以访问数据库
- 远程使用pl/sql登陆数据库时,界面提示 ORA-12170: TNS: 连接超时
- 基于ORA-12170 TNS pl/sql Developer 连接本地超时解决办法
- PL/SQL DEVELOPER下连接数据库报'TNS连接超时'
- sqlplus可以连接,pl/sql 报ORA-12154: TNS:无法解析指定的连接标志符
- PL/SQL连接Oracle数据库提示"TNS:could not resolve the connect identifier spe
- Windows 7 64位操作系统 运行PL/SQL 或者 VS 调试程序的时候提示:ORA-12154 无发无法解析指定的连接标识
- CMD命令窗口登陆Oracle数据库提示ORA-12560: TNS: 协议适配器错误问题,PL/SQL登陆提示ORA-12154:TNS无法解析指定的连接标识符
- PL/SQL 不能登录,提示错误:ora-12154:tns:无法解析指定的连接标识符
- pl sql developer连接oracle数据库提示:ORA-12541: TNS: no listener
- PL/SQL TNS 12170 连接超时
- sqlplus可以连接,pl/sql 报ORA-12154: TNS:无法解析指定的连接标志符
- Oracle10g安装了11g的ODAC后,PL/SQL连接提示TNS:无法解析指定的连接标识符
- pl/sql 在title中显示连接路径, 避免sql执行其他数据库中
- x64 PL/SQL 连接 Oralce 提示 Could not initialize oci.dll
- Win7 x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"
- PL/Sql 连接数据库 超时问题解决
- win7 装ORACLE 10g,其他包括em正常,但是PQ/SQL ORA-12154: TNS: 无法解析指定的连接标识
- x64 PL/SQL 连接 Oralce 提示 Could not initialize "%ORACLE_HOME%\bin\oci.dll"