cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC connection error - Db2

Amardeep_Shanmu
New Contributor II

Trying to set account for connecting to Mainframe DB2 database using JDBC Select snap with the below information. I received below error. Can someone help me to fix this.?

Failed to validate account: Failed to retrieve a database connection. Cause: [jcc][t4][2043][12249][4.27.25] Exception {0}: Error opening socket to server {1} on port {2} with message: {3}. ERRORCODE=-4296, SQLSTATE=08001 (Reason: [jcc][t4][2043][12249][4.27.25] Exception {0}: Error opening socket to server {1} on port {2} with message: {3}. ERRORCODE=-4296, SQLSTATE=08001; Resolution: Address the reported issue.)

image

1 REPLY 1

Siva_Venna
Contributor

@Amardeep_Shanmugam try using db2jcc.jar instead of db2jcc4.jar
it worked for me.