标签:oracle
select s.sid, s.serial#, s.username, s.sql_id, m.physical_reads, m.logical_reads, m.hard_parses, m.physical_read_pct, trunc(m.logical_read_pct) as logical_read_pct, m.cpu / 100 as CPU from v$sessmetric m, v$session s where (m.physical_reads > 100 or m.cpu > 100 or m.logical_reads > 100) and m.session_id = s.sid and m.session_serial_num = s.serial# and s.username is not null and s.status = ‘ACTIVE‘ group by s.sid, s.serial#, s.username, m.physical_reads, m.logical_reads, m.hard_parses, m.physical_read_pct, m.logical_read_pct, cpu, s.sql_id order by m.physical_reads, m.cpu, m.logical_reads;
标签:oracle
原文地址:http://7642644.blog.51cto.com/7632644/1687529