DB2编目远程数据库遇到的问题

两台节点:DB1-192.168.0.238,DB2-192.168.0.239,每台节点的/etc/hosts内容:192.168.0.238  DB1                                    ...显示全部
两台节点:DB1-192.168.0.238,DB2-192.168.0.239,
每台节点的/etc/hosts内容:192.168.0.238  DB1
                                     192.168.0.239  DB2

两台节点都装了DB2 9.7,都建了实例db2inst1,每台节点的用户名、组名、id都一样
现在我在DB2节点建了test数据库,然后我在DB1上去编目
db2 => catalog tcpip node DB2 remote 192.168.0.239 server 50000
db2 => catalog database test as test at node DB2
db2 => refresh ldap node directory
然后试着看能否连接上去,就报了下面的错误
db2 => connect to test
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.0.239".  Communication function
detecting the error: "connect".  Protocol specific error code(s): "111", "*",
"*".  SQLSTATE=08001


请问这是什么原因呢?收起
参与18

查看其它 16 个回答zhl9的回答

zhl9zhl9数据库管理员DW
list db direcotory on 本地目录或直接去安装目录看有没有库
互联网服务 · 2011-04-22
浏览1423

回答者

zhl9
数据库管理员DW

zhl9 最近回答过的问题

回答状态

  • 发布时间:2011-04-22
  • 关注会员:1 人
  • 回答浏览:1423
  • X社区推广