728x90

활발이님 | 기타 | 2013-11-14 16:41:25


안녕하세요 remote db 에 접속하려는데 자꾸 에러가 뜨네요.. 
우선 local db의 node, db 정보는 다음과 같습니다.
----------------------------------------------list node directory
  Node name                      = REMONODE
 Comment                        =
 Directory entry type           = LOCAL
 Protocol                       = TCPIP
 Hostname                       = 192.168.64.134
 Service name                   = 60008
---------------------------------------------list db directory
Database 1 entry:

 Database alias                       = LINUXDB
 Database name                        = GETDB
 Node name                            = REMONODE
 Database release level               = d.00
 Comment                              =
 Directory entry type                 = Remote
 Authentication                       = SERVER
 Catalog database partition number    = -1
 Alternate server hostname            =
 Alternate server port number    
--------------------------------------------db2 get dbm cfg
TCP/IP Service name                          (SVCENAME) = DB2_db2inst1c

---------------------------------------------/etc/services
DB2_db2inst1    60000/tcp
DB2_db2inst1_1  60001/tcp
DB2_db2inst1_2  60002/tcp
DB2_db2inst1_END        60003/tcp
DB2_db2inst2    60004/tcp
DB2_db2inst2_1  60005/tcp
DB2_db2inst2_2  60006/tcp
DB2_db2inst2_END        60007/tcp
DB2_db2inst1c      60008/tcp
DB2_db2inst1i      60009/tcp
---------------------------------------------------------------netstat 정보
tcp        0      0 :::60008                    :::*                        LISTEN      3076/db2sysc 0      

------------------------------------------------------------target db 정보
ip 192.168.64.134
db명 - getdb
instance - db2inst3

-------------------------------------------------------------에러
db2 connect to linuxdb user db2inst3 using db2inst3 시 
아래와 같은 에러가 나네요........
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.64.134".  Communication function 
detecting the error: "connect".  Protocol specific error code(s): "113", "*", 
"*".  SQLSTATE=08001

------------------------------db2diag.log 에는 아래와 같습니다
2013-11-13-23.39.52.022670-480 I2349231E308        LEVEL: Error
PID     : 3336                 TID  : 140727778641696PROC : db2bp
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, common communication, sqlcctcpconnr, probe:110
MESSAGE : DIA3202C The TCP/IP call "connect" returned an errno="113".

도통 무엇이 문제인지 모르겠어서 이렇게 올립니다.
답변 부탁드립니다....




pajama 2013-11-14 18:01:16
설정하신 내용에는 이상이 없어보입니다. remote에서 해당 포트가 개방되었는지 확인해보세요. (telnet등)

그리고 해당 플랫폼에 따라 errno를 찾아보십시오. errno.h 파일에 설명이 있습니다.
/usr/include/sys/errno.h
/usr/include/asm/errno.h


728x90

+ Recent posts