两台节点: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
请问这是什么原因呢?
收起