db2 串連報錯connect。 ERRORCODE=-4499, SQLSTATE=08001(轉載)

來源:互聯網
上載者:User

標籤: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(轉載)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.