db2堆栈不足报语句复杂

修改堆栈大小
db2: update db cfg for DB_NAME using STMTHEAP 8192
db2: update db cfg for DB_NAME using APPLHEAPSZ 2048

stmtheap 和applheapsz都是有默认值,但是开发过程中我们写的sql语句可能超过设置的默认值

我们可以登录到db2上,查看相应参数:db2 get db cfg具体过程如下:

运行》db2cmd 》db2 connect to db2Name user userName using Password  

》db2 get db cfg

查看参数stmtheap 和 applheapsz

修改参数执行如下sql语句

》db2 update db cfg for DB_NAME using STMTHEAP 8192

》db2 update db cfg for DB_NAME using APPLHEAPSZ 2048

原文地址:https://www.cnblogs.com/yangmin-78819/p/4310844.html