Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to determine if there is high switchlog happening

Amin AdatiaAug 27 2018 — edited Aug 28 2018

Exadata X-3 Oracle 11.2.0.3

I am trying to figure out if we have excessive switch log activity.

I am using the following query.

select

inst_id

,to_char(first_time,'YYYY-MM-DD')    DAY

,sum(decode(to_char(first_time,'HH24'),'00',1,0) HH00

,sum(decode(to_char(first_time,'HH24'),'01',1,0) HH01

,etc to

,sum(decode(to_char(first_time,'HH24'),'23',1,0) HH23

from gv$log_history

group by

inst_id

,to_char(first_time,'YYYY-MM-DD')

order by

inst_id

,to_char(first_time,'YYYY-MM-DD')

;

Should I be adding

where thread# = inst_id

Regards

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2018
Added on Aug 27 2018
34 comments
939 views