How much memory are people using

The sql below can be run to show who is using memory and how much memory.

select S.sid, S.USERNAME, PM.category, PM.ALLOCATED,
       ROUND(PM.USED/(1024*1024),0) as USED_MB, PM.MAX_ALLOCATED, SQL_TEXT
 from v$process_memory pm
inner join v$process p
        on p.pid = pm.pid
inner join v$session s
        on s.paddr = p.addr
inner join v$sql sq
        on sq.sql_id = s.sql_id
 order by PM.USED desc nulls last
/

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>