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

Source: Internet
Author: User
Tags db2

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

Run the following command first to view DB2 log configuration information

$ DB2 Get DB CFG | grep LOG
Note that the following configuration items
Log file Size (4KB)                         (LOGFILSIZ) = 1024 number of
primary log files                (LOGPRIMARY) = number of
secondary L og files               (LOGSECOND) = 20
At this point, you can modify the B2 log configuration information by using the following command
$ DB2 Update db CFG using LOGFILSIZ 10240
$ DB2 update db CFG using LOGPRIMARY
$ DB2 update db CFG using LOGSE COND 100
You need to restart the database instance after modifying the configuration
$ db2stop Force
$ db2start
Finally, review the modified parameters again, and then rerun the insert/update operation.



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.