SQL> select * from v$sgastat where name = 'library cache';
POOL NAME
BYTES
------------ -------------------------- ----------
shared poollibrary cache
3848632
SQL> select * from v$sgastat where name = 'row cache';
POOL NAME
BYTES
------------ -------------------------- ----------
shared poolrow cache
3741868
SQL> select * from v$sgastat where pool = 'shared pool' and name = 'free memory';
POOL NAME
BYTES
------------ -------------------------- ----------
shared poolfree memory
8674196
SQL> select component,current_size from v$sga_dynamic_components;
COMPONENT
CURRENT_SIZE
---------------------------------------------------------------- ------------
shared pool
67108864
large pool
4194304
java pool
4194304
为什么library cache, row cache,free memory 这三部分的和 不等于shared pool 的值呢?他们是什么关系?
T-McGrady1 发表于 2012-12-12 16:58
select sum(bytes) from v$sgastat where pool = 'shared pool ';
这个就一样了
SQL> select component , current_size from v$sga_dynamic_components;
COMPONENT
CURRENT_SIZE
---------------------------------------------------------------- ------------
shared pool
528482304
SQL> select sum(bytes) from v$sgastat where pool = 'shared pool';