Determining Log Switch Frequency
Determining Log Switch Frequency
Version 1.
Date 14.07.2009
Task
You would like to determine Log Switch Frequency.
Solution
Too much log switching is no good for database, you should see numbers not bigger than 6 per
hour. Increasing the size of redo log groups is one way to lower log switch frequency, please
refer to Oracle documentation on how to lower log switch frequency.
You can use the following query to determine your log switch frequency past 7 days (by hour):
, TO_NUMBER(SUM(DECODE(TO_CHAR(FIRST_TIME, 'HH24'), '09', 1, 0)), '99') "09:0
0"
FROM V$LOG_HISTORY
WHERE extract(year FROM FIRST_TIME) = extract(year FROM sysdate)