Forum Stats

  • 3,838,328 Users
  • 2,262,355 Discussions


How to see the real SHARED POOL being used ?

Yockee Member Posts: 24 Green Ribbon


I am having problem in determining the size of Shared Pool. I want to know the utilization of the shared pool as mention here : (

When I use query : "SELECT pool, sum(bytes)/1024/1024/1024 AS "Size (GB)" FROM v$sgastat WHERE pool = 'shared pool' GROUP BY pool;"

select sum(bytes)/1024/1024/1024 AS "Size (GB)" from v$sgastat where pool = 'shared pool'

It gives me : 2.7 GB.

But, when I use : "select component, current_size, max_size, granule_size, last_oper_type

from v$memory_dynamic_components;", it gives me 6,106,906,624 (I assume this is in Bytes, so it is equal to 5.6875 GB).

Questions are :

  • What are the differences between the 2 queries ? Why differ almost twice between v$sgastat and v$memory_dynamic_components
  • For each one, Which query should I use for what ?
  • For my case in determining the utilization of memory, which one should i use ?

This is confusing to me

Please help me.