Oracle10g add or delete a log Group

Source: Internet
Author: User
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 at this time. DBWR will dirty the memory.

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 at this time. DBWR will dirty the memory.

This error was found in the alert Log during routine inspection.

Thread 1 cannot allocate new log, sequence 319708

Checkpoint not complete

This is actually a common error. Generally, the reason is that when the log is fully written, the log group will be switched. At this time, a checkpoint will be triggered, and 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 of ARCH is also involved. 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.

Oracle provides the following suggestions:

Add additional log group

Increase size of redo logs

######################################## #################

Select * from v $ log;

Select bytes/1024/1024 from v $ log;

Select * from v $ logfile;

# Use the preceding command to view the status of the log group and Log File

# Add 3 new log groups

Alter database add logfile group 4'/u01/app/oradata/destdb/redo04.log 'size 300 m;

Alter database add logfile group 5'/u01/app/oradata/destdb/redo05.log 'size 300 m;

Alter database add logfile group 6'/u01/app/oradata/destdb/redo06.log 'size 300 m;

# Run the following command to change the status of the newly added log group to "non-unused" and switch the log group to "unused"

Alter system switch logfile;

# Delete the old log group. When adding a log group online, you can only delete the INACTIVE log group when deleting the log group.

Alter database drop logfile group 1;

Alter database drop logfile group 2;

Alter database drop logfile group 3;

# Delete the physical files of the old log group on the OS

Delete/u01/app/oradata/destdb/redo01, 02, 03.log

-------------------------------------- Split line --------------------------------------

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

-------------------------------------- Split line --------------------------------------

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.