You use the database configuration parameter APPLHEAPSZ to specify the size of the application heap (in number of 4-KB pages). This parameter defines the number of private memory pages that are available for use by the database manager on behalf of a specific agent or subagent. The heap is allocated when an agent or subagent is initialized for an application. The allocated amount is the minimum amount that is needed to process the request to the agent or subagent. As the agent or subagent requires more heap space to process larger SQL statements, the database manager allocates memory as needed, up to the maximum that is specified on this parameter. The application heap is allocated out of the agent's private memory.
The default value for the APPLHEAPSZ parameter is 128 (4-KB pages). When you run the ST_enable_db stored procedure, this value must be at least 2048.
GSE0009N Not enough space is available in DB2's application heap.
GSE0213N A bind operation failed. SQLERROR = "SQL0001N Binding or
precompilation did not complete successfully. SQLSTATE=00000".
To change the application heap size: