查看各个会话占用的内存

SELECT server, s.username, osuser, NAME, VALUE / 1024 / 1024 MB, s.SID,
s.serial#, spid
FROM v$session s, v$sesstat st, v$statname sn, v$process p
WHERE st.SID = s.SID
AND st.statistic# = sn.statistic#
AND sn.NAME
LIKE 'session pga memory'
AND p.addr = s.paddr
ORDER BY VALUE DESC

posted on 2013-03-18 16:30  中子持心  阅读(295)  评论(0编辑  收藏  举报

导航