Troubleshooting
Problem
When a reorg table command is issued from a CLI application against a DB2 database server, the application fails with SQL0104N.
Symptom
For example:
Similar entries may be seen in a CLI trace:
SQLGetDiagRecW( fHandleType=SQL_HANDLE_STMT, hHandle=1:1, iRecNumber=1, pszSqlState=&02f0f684, pfNativeError=&02f0f750, pszErrorMsg=&03672b98, cbErrorMsgMax=512, pcbErrorMsg=&02f0f74c )
---> Time elapsed - +9.000000E-006 seconds
( iRowNumber=-1, iColumnNumber=-2 )
SQLGetDiagRecW( pszSqlState="42601", pfNativeError=-104, pszErrorMsg="[IBM][CLI Driver][DB2/SUN64] SQL0104N An unexpected token "test" was found following "reorg table ". Expected tokens may include: "JOIN". SQLSTATE=42601
", pcbErrorMsg=158 )
<--- SQL_SUCCESS Time elapsed - +4.752000E-003 seconds
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
01 May 2025
UID
swg21590305