Discussion:
DB2 Connection Problem
(too old to reply)
n***@yahoo.com.hk
2006-07-28 03:24:22 UTC
Permalink
Hi all,

Our web application hits the following two exceptions randomly (once or
twice a day) while opening connection to db2. Does anyone has idea
about the cause of the exception. We are using connection pool to
connect to db2.

A little background:
WebSphere Server : version 6.0.2.9 on AIX
Database product name : DB2/AIX64
Database product version : SQL08025
JDBC driver name : IBM DB2 JDBC Universal Driver Architecture
JDBC driver version : 2.9.31
JDBC driver type : 4

---------------------------------------------------------------------------------------------------------------
java.lang.reflect.InvocationTargetException : Error opening socket to
server _server_name_/_server_ip_ on port _port_no_ with message : null

DB2ConnectionCorrelator: null
DSRA0010E: SQL State = null, Error Code = -4,499
DSRA0010E: SQL State = null, Error Code = -4,499
---------------------------------------------------------------------------------------------------------------
java.sql.SQLException: A communication error has been detected.
Communication protocol being used: T4Agent.sendRequest().
Communication API being used: OutputStream.flush().
Location where the error was detected: There is no process to read data
written to a pipe..
Communication function detecting the error: *.
Protocol specific error codes(s) TCP/IP SOCKETS
DB2ConnectionCorrelator: null
DSRA0010E: SQL State = null, Error Code = -4,499
DSRA0010E: SQL State = null, Error Code = -4,499
---------------------------------------------------------------------------------------------------------------

Any help appreciated!
o***@gmail.com
2006-07-28 16:02:47 UTC
Permalink
Hi,

I would start looking at your TCP/IP connection to that server. Base on
the error, it looks like AppServer looses TCP/IP connection to DB2
server.
Post by n***@yahoo.com.hk
Hi all,
Our web application hits the following two exceptions randomly (once or
twice a day) while opening connection to db2. Does anyone has idea
about the cause of the exception. We are using connection pool to
connect to db2.
WebSphere Server : version 6.0.2.9 on AIX
Database product name : DB2/AIX64
Database product version : SQL08025
JDBC driver name : IBM DB2 JDBC Universal Driver Architecture
JDBC driver version : 2.9.31
JDBC driver type : 4
---------------------------------------------------------------------------------------------------------------
java.lang.reflect.InvocationTargetException : Error opening socket to
server _server_name_/_server_ip_ on port _port_no_ with message : null
DB2ConnectionCorrelator: null
DSRA0010E: SQL State = null, Error Code = -4,499
DSRA0010E: SQL State = null, Error Code = -4,499
---------------------------------------------------------------------------------------------------------------
java.sql.SQLException: A communication error has been detected.
Communication protocol being used: T4Agent.sendRequest().
Communication API being used: OutputStream.flush().
Location where the error was detected: There is no process to read data
written to a pipe..
Communication function detecting the error: *.
Protocol specific error codes(s) TCP/IP SOCKETS
DB2ConnectionCorrelator: null
DSRA0010E: SQL State = null, Error Code = -4,499
DSRA0010E: SQL State = null, Error Code = -4,499
---------------------------------------------------------------------------------------------------------------
Any help appreciated!
n***@yahoo.com.hk
2006-07-29 01:36:17 UTC
Permalink
Thanks for your reply. As I'm not a network guy, could you please
provide me some pointers that would help to gather more information?
Post by o***@gmail.com
Hi,
I would start looking at your TCP/IP connection to that server. Base on
the error, it looks like AppServer looses TCP/IP connection to DB2
server.
a***@gmail.com
2017-02-01 09:18:41 UTC
Permalink
There are lots of causes of DB2 connection error but such kind of errors can be found due to several reasons and they have to be fixed at some point. Here, in this case, you can try some manual solutions to fix this issue. Or you can also try DB2 File Repair Tool. This tool will help you fix connection errors in DB2 easily.For more information, you may also log on to: http://db2.filerepairtool.net
Loading...