oracle cpu per session

Solutions on MaxInterview for oracle cpu per session by the best coders in the world

showing results for - "oracle cpu per session"
Pablo
01 Jul 2016
1SELECT ss.USERNAME, se.SID, se.VALUE / 100 CPU_USAGE_SECONDS
2FROM V$SESSION ss, V$SESSTAT se, V$STATNAME sn
3WHERE se.STATISTIC# = sn.STATISTIC#
4  AND NAME LIKE '%CPU used by this session%'
5  AND se.SID = ss.SID
6  AND ss.STATUS = 'ACTIVE'
7  AND ss.USERNAME IS NOT NULL
8ORDER BY VALUE DESC;