Oracle Database - Personal Edition - Version 7.1.4.0 and later
Oracle Database - Enterprise Edition - Version 6.0.0.0 and later
Oracle Database - Standard Edition - Version 7.0.16.0 and later
Information in this document applies to any platform.
This Document outlines some of the limitations that may be encountered when using the Cost Based Optimizer.
<a></a>
The Cost Based Optimizer (CBO) uses a complex and comprehensive model to choose the plan with the lowest cost overall. In most cases the model picks the best access methods for accessing the data in the most efficient manner. However, even with computed statistics and column histograms it is possible for the Cost Based Optimizer to choose a sub-optimal plan. There are limitations to the Cost model that can affect queries in some circumstances. Some of these are listed and explained below:
Potential for incorrect estimation of intermediate result set cardinality
Cardinality is the CBO estimate of the number of rows produced by a row source or combination of row sources. In some cases, the cardinality of result sets can be miscalculated. This is most common with complex predicates where the statistics do not accurately reflect the data or where predicate values are correlated. The following is an illustration of a statement featuring correlated predicates:
>
>
<><>
<>
<a href="http://blog.itpub.net/26736162/abstract/1/"></a> <a href="http://www.cnblogs.com/lhrbest"></a> <a href="http://blog.itpub.net/26736162/viewspace-1624453/"></a> <a href="http://blog.itpub.net/26736162/viewspace-2134706/"></a> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=646634621&site=qq&menu=yes"></a>