Troubleshooting
Problem
You have a CICS application that receives an SQLCODE -805. This occurs when an application attempts to connect to DB2 using Java Database Connectivity (JDBC™) by invoking the DriverManager.getConnection(url) method.
Symptom
You receive the following message:
can not connect to db2DB2SQLJConnection error in native method:
constructor: ADDCDB2P..DSNJDBC.0000000000000000 DSNJDBC
SQLSTATE=51002 and SQLCODE=-805
com.ibm.db2.jcc.DB2SQLException: DB2SQLJConnection error in native method:
constructor: ADDCDB2P..DSNJDBC.0000000000000000 DSNJDBC
CEDF returns the following when run for the failing transaction:

[{"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Java","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"4.1;4.2","Edition":"","Line of Business":{"code":"LOB70","label":"Z TPS"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
08 October 2025
UID
swg21154093