BuildForge使用默认的DB2 Express运行时出现ERROR [IBM][CLI Driver][DB2/6000] SQL0964C The transaction log for the database is full. SQLSTATE

 

 

  在BuildForge安装时使用默认的数据库DB2 express是常见的安装方式,这样可以省去创建数据等配置过程,并且安装运行比较便捷。 但是因为是使用的Express版以及默认的数据库创建过程设置了一些参数。当BuildForge运行一段时间后悔出现ERROR [IBM][CLI Driver][DB2/6000] SQL0964C The transaction log for the database is full. SQLSTATE=57011 问题。经查阅DB2和BuildForges实践,可以通过以下方式解决该问题。

 

      ERROR [IBM][CLI Driver][DB2/6000] SQL0964C The transaction log for the database is full. SQLSTATE=57011

Update the database configuration for the project database with:

     db2 update db cfg for <siteDBname> using logfilsiz 2000 logprimary 20 logsecond 20

http://publib.boulder.ibm.com/infocenter/cmgmt/v8r4m0/index.jsp?topic=/com.ibm.administeringcm.doc/trs20059.htm


Transaction log file for the database is full
Symptom
This error message displays:
[IBM][CLI Driver][DB2/NT] SQL0964C  The transaction log for the
database is full.  SQLSTATE=57011
Cause
This message is usually caused when the database log file is not large enough for the application or the application is not updating transactions often enough to prevent the transaction log from becoming full.
Action
1.    To obtain the DB2® log file configuration, from a DB2 command prompt, run:
db2 get db cfg for database name
The output related to the log file is displayed. This sample output shows that the database uses five log files, three for primary and two for secondary, respectively. Each file is 1 MB (250 x 4 KB) in size:
    Log file size (4KB)            (LOGFILSIZ) = 250
   Number of primary log files        (LOGPRIMARY) = 3
   Number of secondary log files      (LOGSECOND) = 2
2.    Increase LOGFILSIZ, LOGPRIMARY, and LOGSECOND. For example, enter:
db2 update db cfg for database name using
logfilsiz 1000 logprimary 20 logsecond 10
The DB2 command updates the log file size to 4 MB (1000 x 4 KB) in size with 20 primary log files and 10 secondary log files.
3.    Restart DB2 using db2stop and db2start.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值