码迷,mamicode.com
首页 > 数据库 > 详细

DB2 “The transaction log for the database is full” 问题及解决办法

时间:2014-11-17 09:14:51      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:db   db2   

DB2在执行一个大的insert/update操作的时候报“The transaction log for the database is full.. ”错误,查了一下文档是DB2的日志文件满了的缘故。

首先运行下面命令来查看DB2的日志配置信息

$ db2 get db cfg | grep LOG
注意其中的下面配置项
Log file size (4KB)                         (LOGFILSIZ) = 1024
Number of primary log files                (LOGPRIMARY) = 45
Number of secondary log files               (LOGSECOND) = 20
此时可以通过下面的命令来修改B2的日志配置信息
$ db2 update db cfg using LOGFILSIZ 10240
$ db2 update db cfg using LOGPRIMARY 100
$ db2 update db cfg using LOGSECOND 100
修改配置以后需要重新启动数据库实例
$ db2stop force
$ db2start
最后再次查看修改后的参数,然后重新运行insert/update操作。



DB2 “The transaction log for the database is full” 问题及解决办法

标签:db   db2   

原文地址:http://blog.csdn.net/kongxx/article/details/41203939

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!