SQL error when running the Financial Summary report on DB2

Problem or error: The following error occurs when running the Financial Summary report on DB2: QE-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'. UDA-SQL-0107 A general exception has occurred during the operation "prepare". [IBM][CLI Driver][DB2] SQL0101N The statement is too long or too complex. SQLSTATE=54001

Solution: This error can occur when you run Unica Campaign reports that allow you to select all campaigns. It means that the DB2 heap size is not large enough for all the data to be retrieved. The default heap size is 2048.

To resolve this issue, increase the heap size to 10240 (2048 x 5, as recommended by IBM) using the following command:

db2 update db cfg for databaseName using stmtheap 10240

where databaseName is the name of the Unica Campaign system table database.