標籤:err grep cto wal ace span space comm 開連接埠
在使用data studio串連遠程DB2資料庫時報錯如下:[jcc][Thread:main][[email protected]] java.sql.SQLException[jcc][Thread:main][[email protected]] SQL state = 08001[jcc][Thread:main][[email protected]] Error code = -4499[jcc][Thread:main][[email protected]] Message = [jcc][t4][2043][11550][4.13.111] 異常 java.net.ConnectException:開啟連接埠 50,000 上伺服器 192.168.1.107/192.168.1.107 的通訊端時出錯,訊息為:Connection timed out: connect。 ERRORCODE=-4499, SQLSTATE=08001[jcc][Thread:main][[email protected]] Stack trace followscom.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2043][11550][4.13.111] 異常 java.net.ConnectException:開啟連接埠 50,000 上伺服器 192.168.1.107/192.168.1.107 的通訊端時出錯,訊息為:Connection timed out: connect。 ERRORCODE=-4499, SQLSTATE=08001com.ibm.db2.jcc.am.id.a(id.java:320) Cause:Error 1: DB2 return code is -4499Four problems might be the cause of this error.1、 Firewall is not stopped2、DB2 is stopped.3、The wrong DB2 database listening port number is specified.4、The wrong database name is specified. solution:1、Check whether firewall is stopped.chkconfig iptables off 永久性關閉service iptables stop 重啟主機後失效2、Check whether DB2 is started.db2 list db directory3、Check the DB2 listening portdb2 get dbm cfg |grep SVCENAME,查看TCP/IP服務名稱和/etc/services中定義的db2服務名稱是否匹配4、Check the DB2COMMdb2set -all 檢查DB2COMM是否是TCPIP
db2 串連報錯connect。 ERRORCODE=-4499, SQLSTATE=08001(轉載)