2013년 8월 12일 월요일

[오라클자바community]Oracel Session CPU 사용량 확인 SQL

Username - Name of the user
SID - Session id
CPU Usage - CPU centiseconds used by this session (divide by 100 to get real CPU seconds)

select        nvl(ss.USERNAME,'ORACLE PROC') username,
        se.SID,
        VALUE cpu_usage
from        v$session ss,
        v$sesstat se,
        v$statname sn
where          se.STATISTIC# = sn.STATISTIC#
and          NAME like '%CPU used by this session%'
and          se.SID = ss.SID
order          by VALUE desc

댓글 없음:

댓글 쓰기