Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: The CBO Lie Detector

Re: The CBO Lie Detector

From: Tanel Põder <tanel.poder.003_at_mail.ee>
Date: Fri, 19 May 2006 22:08:11 +0800
Message-ID: <083501c67b4d$ab7752e0$6401a8c0@porgand>


The CBO Lie DetectorAFAIK, dynamic sampling can account for column data correlations from starting level 4.

DBMS_SQLTUNE does quite exhaustive diagnostics & analysis statement execution, not just deriving from CBO statistics, but it can actually run (parts of) the statement.

Tanel.

  I don't think it is a good idea to detect the false information, without correcting some of the fundamental CBO discrepancies. In few cases, We have deliberately fed false information to get acceptable access plan and so, at least, there should be a way to override the lie detector.

  One nagging gripe I have is that there is no way to tell CBO that there is a strong correlation exists between two different column predicates, at least that I know of. [J.Lewis has excellent presentation exploring this issue in detail ]. We have few such queries and we tried to use sql profiles in conjunction with cursor_sharing. Every time we hit one or other issue that we can not deal with it and finally resorted to feed "lies" to CBO.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri May 19 2006 - 09:08:11 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US