DB2 "The transaction log for the database was full" problem and solution

Source: Internet
Author: User
Tags db2

DB2 in the execution of a large insert/update operation, the "The transaction log for the database was full. "Error, check the document is the DB2 log file for the sake of full."

Run the following command first to view the log configuration information for the DB2

$ DB2 Get DB CFG | grep LOG
Note The following configuration items
Log file Size (4KB)                         (LOGFILSIZ) = 1024Number of primary log files                (LOGPRIMARY) = 45Number of secondary log files
    (LOGSECOND) = 20
You can now modify the log configuration information for B2 by using the following command
$ DB2 Update db CFG using LOGFILSIZ 10240$ DB2 update db CFG using LOGPRIMARY 100$ DB2 update db CFG using LOGSECOND 100
you need to restart your DB instance after you modify the configuration
$ db2stop force$ Db2start
Finally, review the modified parameters again, and then rerun the insert/update operation.



DB2 "The transaction log for the database was full" problem and solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.