Troubleshooting
Problem
Connection from Websphere Application Server to DB2 on Z/OS using Type 4 JDBC XA driver fails with exception: java.sql.SQLException: DB2 SQL error: SQLCODE: -5042.
Symptom
Exception received:
java.sql.SQLException: DB2 SQL error: SQLCODE: -5042, SQLSTATE: ,
SQLERRMC: ;1208;FCCAPP ;CQDB;QDB2; ; ; ;1208; ;DSRA0010E: SQL State = ,
Error Code = -5,042. View JVM logs for further details.
Cause
Usually this issue is caused by SPM_NAME (SyncPointManager Name) not set in dbm cfg (Database Manager Configuration) of the DB2 Connect instance.
Resolving The Problem
Update the SPM_NAME in dbm cfg to the hostname of DB2 connect server.
- db2 update dbm cfg using SPM_NAME <hostname of DB2 connect server>
- db2stop
- db2start
Related Information
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21405243