<pre name="code" class="sql">在 9i之前,共享池内容结构是由 一个 solitary shared pool latch 来保护的;从9i开始,最多可以有7个 child shared pool latches 用来保护 共享池结构;9i中可以把共享池划分成过个子池,每个四个cpu可以划分出一个子池;并且 shared_pool_size 大于250M;子池可以由隐含参数:_kghdsidx_count 来调整;如果手动增加子池的大小,就需要同时增加共享池的大小,因为每个子池是有自身的 结构
SQL> set linesize 200
SQL> select addr,LATCH#,LEVEL#,CHILD#,NAME from v$latch_children where name='shared pool';
ADDR LATCH# LEVEL# CHILD# NAME
-------- ---------- ---------- ---------- ----------------------------------------------------------------
200A7B30 293 7 7 shared pool
200A7ACC 293 7 6 shared pool
200A7A68 293 7 5 shared pool
200A7A04 293 7 4 shared pool
200A79A0 293 7 3 shared pool
200A793C 293 7 2 shared pool
200A78D8 293 7 1 shared pool
已选择7行。
那shared pool 的子池数目 应该不能超过7吧
不然 一个latch数目都不够了