共享池
SGA 的共享池(shared pool)内包含了库缓存(library cache),数据字典缓存区(dictionary cache),并行执行消息缓冲区(buffers for parallel execution messages),
以及用于系统控制的各种内存结构。
select name,bytes from v$sgastat where pool = 'shared pool';
NAME BYTES
dpslut_kfdsg 256
hot latch diagnostics 80
ENQUEUE STATS 8360
transaction 818928
KCB buffer wait statistic 3352
invalid low rba queue 320
KQF optimizer stats table 2396
CCursor 2254804
ksunfy: system-global sta 3000
DISPATCHERS INFO 2504
plwpil:wa 4252
NAME BYTES
kzekm heap descriptor 164
kelt translation table 300
trace buf hdr xtend 34184
kglsim recovery area 1200
procs_kfgbsg 440
service names array 20
qtree_kwqbspse 28
SHARED SERVERS INFO 2824
ASH buffers 4194304
sga listelement 1024
object queue hash table d 3136
…
NAME BYTES
KGKP randnum 40000
已选择 606 行。
列出了共享池中各子项
show parameter shared_pool_size
NAME TYPE VALUE
shared_pool_size big integer 100M
共享池的大小设置
alter system flush shared_pool;
手工清除共享池内的全部信息
select shared_pool_size_for_estimate,shared_pool_size_factor,estd_lc_time_saved,estd_lc_time_saved_factor
第 35 页
from v$shared_pool_advice;
SHARED_POOL_SIZE_FOR_ESTIMATE SHARED_POOL_SIZE_FACTOR ESTD_LC_TIME_SAVED ESTD_LC_TIME_SAVED_FACTOR
88 .88 3568 .9856
100 1 3620 1
112 1.12 3625 1.0014
124 1.24 3626 1.0017
136 1.36 3626 1.0017
148 1.48 3626 1.0017
160 1.6 3626 1.0017
172 1.72 3626 1.0017
184 1.84 3626 1.0017
196 1.96 3626 1.0017
208 2.08 3626 1.0017
在估计不同共享池内存配置下,所节省的解析时间量
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞3
添加新评论0 条评论