|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
|
When the
Cost-based SQL Optimizer makes mistakes As I noted, the CBO
will sometimes make a false choice in favor of a full-table scan,
especially in Oracle7 and Oracle8. This problem occurs when the following
conditions are true: High-water mark too
high When a significant number of deletes have taken place within a
table, the high-water mark may be far higher than the actual number of
populated blocks. Hence, the CBO will often wrongly invoke a full-table
scan, relying on the high-water mark.
If you like Oracle
tuning, you might enjoy my latest book “Oracle Tuning: The DefinitiveReference” by Rampant TechPress. (I don’t think
it is right to charge a fortune for books!) and you can buy it right now
at this link: http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||