Thread 1 cannot allocate new log solution for easy learning)

Source: Internet
Author: User

Alter system archive log

Thread 1 cannot allocate new log, sequence 2594

Checkpoint not complete

This is actually a common error. Generally, it is because when the log is fully written, the log group will be switched, and a checkpoint will be triggered. dbwr will write dirty blocks in the memory to the data file, this log Group will not be released as long as it is not completed. If the archive mode is enabled, the archive write process is also accompanied by arch. If the redo log is generated too fast, when CPK or archiving is not completed, lgwr has filled the remaining log groups and needs to write redo logs into the current log group, in this case, a conflict occurs and the database is suspended. The preceding error message is always written to alert. log.

Add a log group:

1. select group #, sequence #, bytes, members, status from V $ log; view the status of each log Group

Group # sequence # bytes members status
--------------------------------------------------------
1 16946 52428800 1 inactive # idle
2 16947 52428800 1 inactive # idle
3 16948 52428800 1 Current # in use

2,

Alter database add logfile Group 4 ('/opt/oradata/orclbj/redo04.log') size 200 m; increase 1 set of log groups depending on the situation to increase the size of the log group.

Alter database add logfile group 5 ('/opt/oradata/orclbj/redo05.log') size 200 m;

Alter database add logfile group 6 ('/opt/oradata/orclbj/redo06.log') size 200 m;

3. Alter system switch logfile; Switch the log Group

4. Alter database drop logfile group 1; When deleting log group 1, when adding a log group online, you can only delete the log group in inactive status when deleting the log group.

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.