Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Does inactive sessions consume RAM
Yes,
I think 'session pga memory' is the best for session memory usage. But, there may be still free chunks not shrinked yet in this statistic.
best regards...
http://www.ubTools.com
Web Based Oracle Products and Services
> >Hi list,
> >I have an instance with many inactive sessions because my users always
> >forgot to disconnect from db.
> >Does thoses sessions consume RAM or any resources ?
> >How can I prove it ? (which v$?)
>
> Every session occupies some memory.
>
> This script tells you the memory usage by a session
>
> select s.sid, n.name, s.value
> from v$sesstat s,
> v$statname n,
> v$session sess
> where n.statistic# = s.statistic#
> and s.sid = sess.sid
> and sess.status = 'INACTIVE'
> and n.name like '%memory%'
> and n.name not like 'sorts (memory)'
> order by s.sid
> ;
>
> Regards
> Naveen
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu May 27 2004 - 03:05:19 CDT
![]() |
![]() |