Wait for Event Log wait event Solution

Source: Internet
Author: User
I insisted on reading three sets of RAC AWR every day and summarized it. SQL: 9i: select * fromv $ event_namewherenamelike % log %; (about 14) 10g: selectname, wait_classfromv $ event_namewherenamelike % log %; (about 35) 11g: selectname, wait_cl

I insisted on reading three sets of RAC AWR every day and summarized it. SQL: 9i: select * from v $ event_name where name like '% log %'; (about 14) 10g: select name, wait_class from v $ event_name where name like '% log %'; (about 35) 11g: select name, wait_cl

I insisted on reading three sets of RAC AWR every day and summarized it.

Query the SQL statement of the log wait event:

9i: select * from v $ event_name where name like '% log %'; (about 14)
10g: select name, wait_class from v $ event_name where name like '% log %'; (about 35)
11g: select name, wait_class from v $ event_name where name like '% log %'; (about 30)

The following are the most common examples:

1. Log file switch (archiving needed)

That is, when the log is switched to the target log group, archiving is not yet completed. You must wait.

Possible cause: redo, archive partition I/O performance is poor, archive writing is slow, and the number of log groups is set unreasonably

Solution: 1. Increase the size of the log group or log group member.

2. Adjust archive logs to disks with high IO performance, such as storage

3. Adjust the log_archive_max_processes parameter.

Ii. Log file switch (checkpoint incomplete)

Indicates that the dirty data protected by the log group has not been written to the target log group during log switching.

Possible cause: DBWn writing is too slow, and I/O problems exist.

Solution: 1. add an additional DBWn

2. Increase the size of the log group or log group member

Iii. Log File Sync

Possible causes: LGWR write efficiency is low, and commit is too frequent.

Solution: 1. Improve LGWR write efficiency and use disks with good IO Performance

2. Batch submission (real-time online business operations with caution)

3. Use the nologging/unreoverable option ()

Iv. log file single write

Cause: the waiting time when the log file header is updated

V. log file parallel write

Cause: Waiting for multiple log group members to be written in parallel

Vi. log buffer space

Cause: logs generated by the database are faster than logs written by LGWR, or log switching is too slow.

Solution: 1. Increase log buffer

2. Disk I/O bottlenecks

Note: The DB plan is a redo partition, and the hard disk occupied by the arch partition space should be RAID 1 as much as possible.

To be continued

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.