Troubleshooting
Problem
An application which uses the IBM Data Server Driver for JDBC and SQLJ (JCC) to retrieve auto-generated keys on an INSERT statement, may fail with the following exception at driver version 3.61 (DB2 9.5 Fix Pack 7) or later:
Symptom
com.ibm.db2.jcc.am.SqlException: DB2 SQL Error: SQLCODE=-1585, SQLSTATE=54048, SQLERRMC=null, DRIVER=3.63.75
SQLCODE -1585 corresponds to the message
SQL1585N A system temporary table space with sufficient page size does not exist. SQLSTATE=54048
If there is no temporary table space with a sufficient page size to process the INSERT statement, this error normally occurs. This technote is in regards to scenarios in which there is a temporary table space with a sufficient page size to process the INSERT statement, yet SQLCODE -1585 is still returned.
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
01 May 2025
UID
swg21615144