2026-03-12 20:23:15
This commit is contained in:
9
vdh/top_sess_by_cpu.sql
Normal file
9
vdh/top_sess_by_cpu.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
select *
|
||||
from ( select C.sid, C.serial#, A.value, C.program
|
||||
from v$sesstat A, v$statname B, v$session C
|
||||
where A.statistic# = B.statistic#
|
||||
and B.name = 'CPU used by this session'
|
||||
and A.sid = C.sid
|
||||
order by value desc
|
||||
)
|
||||
where rownum <= 10;
|
||||
Reference in New Issue
Block a user