Fixing an "SQL0964C Transaction log for database is full" error

Problem(Abstract)

The DB2 Transaction log (logfilsiz) value of the database will need to be increased if you encounter a transaction log full message, SQL0964C in the db2cli.log.

Cause

The default value of the DB2 Transaction log (logfilsiz) value of the database configured by ITDS is 2000. This is good enough with most directory implementations but in case the above error shows up, then the logfilsiz value must be updated to have a higher value.

Diagnosing the problem

a. The data load will fail when attempting via ldif2db

b. The entry add will fail when attempted via ldapadd - in some cases this ldapadd might be coming from a supplier system to a consumer system in replicated topology.
In both the above cases refer to db2cli.log to observe SQL0964C error when the problem happened.
Alternatively, use the bulkload utility to load files with large amounts of entries. This problem may not be visible when doing the bulkload operation.


Resolving the problem

Use the following procedure to increase the size of the DB2 transaction log (logfilsiz):


1. Determine the current log file size setting by issuing the command:

  • Unix
    • su - <db2instance> 
      db2 list db directory # to list the database name 
      db2 connect to <databaseName> 
      db2 get db config for <databaseName> | grep -i logfilsiz
  • Example:
    • su - ldapdb2 
      db2 connect to amdb 
      db2 get db config for amdb | grep -i logfilsiz 
    Windows operating system
    • open a DB2CMD window 
      set DB2INSTANCE=<databaseName> from the ibmslapd.conf file 
      db2 list db directory 
      db2 connect to <databaseName> 
      db2 get db config for <databaseName> 
      check the value for logfilsiz 
2. Increase the size of the log file size setting by issuing the command:
    • db2 UPDATE db cfg for <databaseName> using LOGFILSIZ <new_value> 
    Example:
    • db2 UPDATE db cfg for amdb using LOGFILSIZ 5000

3. Stop the ibmslapd process. 

4. Issue the commands:
    • db2 force applications all 
      db2stop force

5. Restart ibmslapd process.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值