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

Source: Internet
Author: User

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

DB2 reports "The transaction log for the database is full .. "error. I checked the document because the DB2 log file is full.

First, run the following command to view the log configuration information of DB2.

$ Db2 get db cfg | grep LOG
Note the following configuration items
Log file size (4 kb) (LOGFILSIZ) = 1024 Number of primary log files (LOGPRIMARY) = 45 Number of secondary log files (LOGSECOND) = 20
In this case, you can use the following command to modify the log configuration information of B2.
$ Db2 update db cfg using LOGFILSIZ 10240 $ db2 update db cfg using LOGPRIMARY 100 $ db2 update db cfg using LOGSECOND 100
After modifying the configuration, You need to restart the database instance.
$ Db2stop force $ db2start
Finally, view the modified parameters again and run the insert/update operation again.



Related Article

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.