您的位置:首页 > 数据库

DB2错误处理方案:SQL0973N,sqlstate=57011

2009-10-29 23:19 155 查看
下面是从DB2 Infocenter网站,其中汉字部分是作者所加的注释

SQL0973N

Not enough storage is available in the heap-name heap to process the statement.
(这种问题一般是由于db2的instance或者database的配置参数过小引起的错误,解决的办法是增加相应参数,heap-name一般是在错误消息中会有具体的参数变量名称)

Explanation:
All available memory for this heap has been used. The statement cannot be processed.

User Response:
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: