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