首页 > 数据库技术 > 详细

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

时间:2014-11-17 09:13:22      阅读:303      评论:0      收藏:0      [点我收藏+]

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” 问题及解决办法

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!