ORACLE 诊断案例---CPU超高

select t.SQL_ID, t.EVENT,count(*)
  from v$active_session_history t
 where t.SAMPLE_TIME > to_timestamp('20180416090000', 'YYYYMMDDhh24miss')
   and t.SAMPLE_TIME < to_timestamp('20180416091600', 'YYYYMMDDhh24miss')
group by t.SQL_ID,t.EVENT order by count(*) desc

猜你喜欢

转载自blog.csdn.net/gaobudong1234/article/details/79957486
今日推荐