下面是从DB2 Infocenter网站,其中汉字部分是作者所加的注释
SQL0973N
All available memory for this heap has been used. The statement cannot be processed.
Terminate the application on receipt of this message (SQLCODE). Modify the heap-name configuration parameter to increase the heap size.
For example, to update a database configuration parameter, issue the following command:
db2 update db cfg for db-name
using heap-name heap-size
(上面的这个语句在运行时要相应的修改一下,熟悉db2命令的朋友应该很熟悉该命令的用法。我简单介绍一下,希望对不太熟悉的朋友具有借鉴作用
该命令的作用是修改database的配置参数heap-name,如heap-name等等。其中for db-name可选的,如果在运行命令前连接了数据库,该命
令则会修改当前连接数据库的参数,另外这个for db-name特别有用的就是万一你将某个参数值调节的过大造成数据库不能被正常连接时,这个时候
使用这个选项就比较有意义了)
To view a list of the database configuration parameters, use the GET DATABASE CONFIGURATION command.
To update a database manager configuration parameter, issue the following command:
db2 update dbm cfg
for db-name
using heap-name heap-size
(这个命令是用于修改instance的配置参数,可以应用到该instance下所有的database)
To view a list of the database manager configuration parameters, use the GET DATABASE MANAGER CONFIGURATION command.
For application group shared heap size, the following three database configuration parameters control its size and usage: APPGROUP_MEM_SZ, GROUPHEAP_RATIO, and APP_CTL_HEAP_SZ. The number of applications in one application group is calculated by: APPGROUP_MEM_SZ / APP_CTL_HEAP_SZ. The application group shared heap size is calculated by: APPGROUP_MEM_SZ * GROUPHEAP_RATIO / 100.
(一般都是增加APPGROUP_MEM_SZ和APP_CTL_HEAP_SZ解决问题)
sqlcode: -973
sqlstate: 57011