暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Can Bind Variable Peeking Cause Problems even with no Histograms on the Predicate Columns

2011-01-01
682

The Oracle (tm) Users' Co-Operative FAQ

Can Bind Variable Peeking cause problems without a histogram on Predicate columns ?


Author's name: see below

Author's Email: see below

Date written: 14.7.2006

Oracle version(s): 10.2.0.1.0

It is a well known fact that the reason for the majority of problems with the bind variable peek feature is an histogram on the column referenced in the access predicate. The histogram is certainly the main but not the only cause for a non appropriate execution plan. Another less known situation where a different value of bind variables can lead to a change of execution plan is an access predicate on a (sub)partitioned table. This is a particularly important scenario in case of range partitioned fact tables organized as rolling windows. These tables contain two types of partitions, those filled up and those pre allocated to future loads. As the optimiser statistics of both types are very different, the risk of getting the wrong execution plan in case of peeking “in the wrong partition” is relatively high.


This question is addressed by the following documents:

Author

Title/URL

Suggested by

Referee's comments

Jaromir D.B.Nemec

Happy New Peek

Author

This is a true story with all kind of exciting attributes:
large partitioned tables with proper collected statistics on them,
nothing was changed but a nightly job performance explodes,
no histogram on the access predicate column,
Oracle 9i / 10g in a data warehouse environment

 

 

 

 


Further reading:
Oracle Documentation - Bind variable peek



最后修改时间:2020-04-16 15:11:40
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论