zoukankan      html  css  js  c++  java
  • DB2 “The transaction log for the database is full” 存在的问题及解决方案

    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操作。





  • 相关阅读:
    芯片难题
    permutation
    小凸玩矩阵
    gender
    NOI2019序列非启发式做法
    莫比乌斯函数&莫比乌斯反演
    「雅礼day2」最大公约数gcd
    容斥原理&反演
    树上路径的交和并
    CF906D Power Tower
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4567096.html
Copyright © 2011-2022 走看看