Java 连接db2数据库出错,请教各位大虾
Java 连接db2数据库出错,报错信息如下,请教各位大虾com.ibm.db2.jcc.b.DisconnectException: A communication error has been detected.
Communication protocol being used: T4Agent.sendRequest(). Communication API bein
g used: OutputStream.flush(). Location where the error was detected: Connection
reset by peer: socket write error. Communication function detecting the error: *
. Protocol specific error codes(s) TCP/IP SOCKETS DB2ConnectionCorrelator: B64
A2373.G557.120531095105
回复 1# qbxy_dream
用的什么驱动?换个连接驱动试试!
回复 1# qbxy_dream
你用的时JDBC还是JDBC-ODBC桥接 回复 1# qbxy_dream
你用db2的客户端工具可以正常连接吗 回复 3# 方兆国
用的是JDBC, 连接可用,我是通过web端去连的数据库,可用。但是用了一天之后就报错了。 驱动是com.ibm.db2.jcc 表示没有用过DB2,不清楚,你先看一下网络有没有问题,还有防火墙什么的
页:
[1]