DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: per session memory usage

Hybrid View

  1. #1
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316

    Cool

    If a user connects to Oracle, and is not doing anything, how much memory will that idle session take up (just for being connected)?

  2. #2
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    do the following query


    select a.name b.value
    from v$statname a, v$mystat b
    where a.statistic# = b.statistic#
    and a.name like '%ga%';


    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  3. #3
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316

    Wink

    Thanks Sam.

    I also found another one in Metalink that may be helpful to other:

    SELECT username, trunc((value/1024)) || ' Kbytes' "Current session memory"
    FROM v$session sess, v$sesstat stat, v$statname name
    WHERE sess.sid = stat.sid
    AND stat.statistic# = name.statistic#
    AND name.name = 'session uga memory';

  4. #4
    Join Date
    Sep 2000
    Location
    Chicago, IL
    Posts
    316
    I thought I had it all clear, but I am not sure about the diff. between PGA and UGA (in a Dedicated Server environment) ?

    in v$sessstat:
    session pga memory
    AND
    session uga memory

    [Edited by khussain on 09-04-2001 at 09:29 AM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width