【问题标题】:Connect to db2 by toad通过 toad 连接到 db2
【发布时间】:2016-10-24 09:36:27
【问题描述】:

我尝试在窗口 7 中通过 toad 连接到 DB2。

但是返回错误:

ERROR [08001] [IBM] SQL30081N  A communication error has been detected.

Communication protocol being used: "TCP/IP".  Communication API being used:
"SOCKETS".  Location where the error was detected: "192.168.1.22". 
Communication function detecting the error: "selectForConnectTimeout". 
Protocol specific error code(s): "0", "*", "*".  SQLSTATE=08001

服务系统:CentOS 7

DB2 数据库:V9.7

我已经执行systemctl sto firewalld.service.(停止防火墙),并在CentOS 中执行db2 "connect to testbase user admin using password"成功。

我在窗口 7 中尝试 telnet 192.168.1.22 50000 失败

【问题讨论】:

标签: linux db2 toad db2-luw


【解决方案1】:

Cent OS 7 上的 DB2 服务器: 如果 'db2 connect to ~ user ~ using' 有效,这意味着服务器上的 TCP/IP 连接有效。

假设 192.168.1.22/50000 是 DB2 服务器 IP/端口,如果 'telnet 192.168.1.22 50000' 失败,那是 DB2 客户端和服务器之间的防火墙。 如果只是 'ping 192.168.1.2' 工作并且端口 50000 无法连接,则某些东西会阻止端口 50000。

【讨论】:

    猜你喜欢
    • 2011-01-01
    • 2010-09-21
    • 2017-12-10
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 2018-08-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多