Query regarding process memory usage

From: Deepak <deepank_mca_at_yahoo.com>
Date: Wed, 10 Sep 2008 07:36:16 -0700 (PDT)
Message-ID: <993376.71099.qm@web35604.mail.mud.yahoo.com>


Hi,

With below script we can find out actual Memory used by all sessions connected to the database. Similarly I need to find out actual memory used by all sessions by SNAP_ID (from AWR views). Is there any way to find out this information in Oracle 10g?

compute sum of maxmem on report
break on report

select se.sid,n.name,

       max(se.value) maxmem
from v$sesstat se,

     v$statname n
where n.statistic# = se.statistic#
and n.name in ('session pga memory','session pga memory max',

                 'session uga memory','session uga memory max')
group by n.name,se.sid
order by 3
/

Thanks for your help in advance.

Thanks,
Deepak       

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Sep 10 2008 - 09:36:16 CDT

Original text of this message