SUMMARY
This technical note describes a known issue in Strategy Enterprise Manager 10.x that causes the Enterprise Manager Data Load to fail because of an error in the execution of the Stored Procedure “SP_CT_REMOVE_DUPLICATES”
DESCRIPTION
The Strategy Enterprise Manager data load fails when the warehouse resides on a Teradata database. Entries similar to the following will be written in the MAEntMgr.xml log file on the Strategy Enterprise Manager 10.x machine:
Java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [HY000:-: on SQLHANDLE][Teradata][ODBC Teradata Driver][Teradata Database] Stored Procedure ‘xxx.SP_CT_REMOVE_DUPLICATES’does not exist.
CREATE PROCEDURE xxx.SP_CT_REMOVE_DUPLICATES() BEGIN declare v_str varchar(4000); CREATE SET VOLATILE TABLE CT_DEVICE_STATS_VOLATILE AS ( SELECT * FROM xxx.CT_DEVICE_STATS ) WITH DATA ON COMMIT PRESERVE ROWS; DELETE FROM xxx.CT_DEVICE_STATS; set v_str='INSERT INTO xxx.CT_DEVICE_STATS SELECT* FROM CT_DEVICE_STATS_VOLATILE'; CALL dbc.SysExecSQL (:v_str); set v_str = 'DROP TABLE CT_DEVICE_STATS_VOLATILE'; CALL dbc.SysExecSQL (:v_str); END;