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:
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:
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
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
相关文章推荐
- DB2常用命令以及错误处理宝典
- 第六周实验指导--下面的程序存在编译错误,请给出两种修改方案--说明处理此类问题的原则是什么
- offic2007 ,offic2010安装失败 1935错误处理方案
- CDH安装错误时的处理方案
- CDH安装错误时的处理方案
- CDH安装错误时的处理方案
- Oralce:登录oracle用户名(sys,sysadmin,、、、、)发现用户名/密码错误处理方案
- insufficient thread locking around avcodec_open/close() 错误提示并解决之道和视频处理方案
- django1.5 Debug = False的错误处理方案
- CUDA by examples第四章源代码错误处理方案
- 懒加载错误的三种处理方案
- CDH安装错误时的处理方案
- CDH安装错误时的处理方案
- CDH安装错误时的处理方案
- 如何处理创建DB2工具目录数据库的时候遇到的SQL1005N错误?
- composer常见错误处理方案
- ASP.NET页面错误处理及邮件发送简易方案
- ASP.NET页面错误处理及邮件发送简易方案
- CDH安装错误时的处理方案
- CDH安装错误时的处理方案