EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB303664: Enterprise Manager data load fails with error code SQL0-802 in MicroStrategy when the warehouse database type is DB2


Community Admin

• Strategy


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

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>

 
This issue can occur in Strategy 10.0 - 10.3 when the Enterprise Manager warehouse is stored in a DB2 database.
 
CAUSE
This issue is caused by a known defect in the Enterprise Manager data load stored procedures SP_IS_DOC_FACT and SP_IS_REP_FACT that can result in an arithmetic overflow when performing mathematical operations on integer values.
 
ACTION
This issue has been resolved in Strategy Enterprise Manager 10.3 Hotfix 2 and later versions.  Any Enterprise Manager warehouses created in 10.3 Hotfix 2  or later should not experience this issue.
 
Any Enterprise Manager warehouse created prior to 10.3 Hotfix 2 will need to be manually updated with the newer stored procedure definitions.  The file db2_104_sp_doc_rep_update.sql has been attached to this Technical Note; the SQL from this script will drop the existing affected stored procedures and create replacements using the updated definitions.  After running the script, the data load should be able to proceed normally.
 
The Strategy internal reference number for the issue described in this Technical Note is DE33582.


Comment

0 comments

Details

Knowledge Article

Published:

May 17, 2017

Last Updated:

May 17, 2017