| |
从oracle9i开始,oracle引入了peeking of user-defined bind variables这个特性,它可以用来在存在数据倾斜时对执行计划来纠偏。
但是peeking of user-defined bind variables特性也有它的不足之处,所以oracle同时引入了一个内部参数用于控制这一特性,请参考下面的示例:
sql> select x.ksppinm name, y.ksppstvl value, x.ksppdesc describ
2 from sys.x$ksppi x, sys.x$ksppcv y
3 where x.inst_id = userenv ('instance')
4 and y.inst_id = userenv ('instance')
5 and x.indx = y.indx
6 and x.ksppinm like '%&par%'
7 /
enter value for par: peek
old 6: and x.ksppinm like '%&par%'
new 6: and x.ksppinm like '%peek%'
name value describ
------------------------------ --------------------
_optim_peek_user_binds true enable peeking of user binds
|
注释:此参数缺省值为true,设置为false时将禁用peeking of user binds。
|
|