SYMPTOM
The Enterprise Manager data load fails with error code SQL0-802 when executing the stored procedures SP_IS_DOC_FACT and/or SP_IS_REP_FACT. An example of the full error text that may be seen in the MAEntMgr.xml file is as follows:
<log4j:event logger="MAEntMgr" timestamp="1469207805509" level="INFO" thread="pool-2-thread-1"> <log4j:message type ="DEFAULT"><![CDATA[Executing SP_IS_REP_FACT]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1469207838793" level="ERROR" thread="pool-2-thread-1"> <log4j:message><![CDATA[CALL SP_IS_REP_FACT()]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1469207838793" level="ERROR" thread="pool-2-thread-1"> <log4j:message><![CDATA[java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [22003:-802: on SQLHANDLE] [Strategy][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and Linux]EXCEPTION ERROR OCCURRED DURING OPERATION. For more information, please consult DB2 document for error code SQL0-802.]]></log4j:message> <log4j:throwable><![CDATA[com.Strategy.maem.exceptions.EMException: java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [22003:-802: on SQLHANDLE] [Strategy][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and Linux]EXCEPTION ERROR OCCURRED DURING OPERATION. For more information, please consult DB2 document for error code SQL0-802. at com.Strategy.maem.dispatcher.DispatcherPool.handleReturnType(Unknown Source) at com.Strategy.maem.dispatcher.command.BaseCommand.notifyHandler(Unknown Source) at com.Strategy.maem.dataload.FactMigrationCommand.executeCommand(Unknown Source) at com.Strategy.maem.dispatcher.command.BaseCommand.execute(Unknown Source) at com.Strategy.maem.dispatcher.command.BaseCommand.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ]]></log4j:throwable> </log4j:event>