oracle11g keep表,ORACLE11G中大表不能放入KEEP池中

把一个大表放入KEEP池中,但却失败。是个ORACLE11G的BUG:

Keep pool does`t work immediately on big tables

The KEEP buffer pool does not work for large keep objects.

This occurs because tables with size >10% of the cache size are treated

as 'large tables' for their reads and this results in execution of a new

_SERIAL_DIRECT_READ path in 11g.

Patch 8897574 solved this issue.

打上补丁后对表执行全表扫:

SQL> select /*+ full(t) */ count(0) from t1 t;

COUNT(0)

----------

4050030

表已经在KEEP池中:

Select decode(pd.bp_id,1,'KEEP', 2,'RECYCLE',3,'DEFAULT',4,'2K SUBCACHE',5,'4K SUBCACHE',6,'8K SUBCACHE',7,'16K SUBCACHE',8,'32K

SUBCACHE','UNKNOWN') subcache,

bh.object_name,

bh.blocks

from x$kcbwds ds,

x$kcbwbpd pd,

(select /*+ use_hash(x) */

set_ds, o.name object_name, count(*) BLOCKS

from obj$ o, x$bh x

where o.dataobj# = x.obj

and x.state != 0

and o.owner# != 0

group by set_ds, o.name) bh

where ds.set_id >= pd.bp_lo_sid and ds.set_id <= pd.bp_hi_sid and pd.bp_size != 0

and ds.addr = bh.set_ds and pd.bp_id=1;

SUBCACHE     OBJECT_NAME  BLOCKS------------ ------------------ ----------KEEP        T1         4858

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值