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: How to make query avoid using histograms

Re: How to make query avoid using histograms

From: Niall Litchfield <niall.litchfield_at_gmail.com>
Date: Wed, 27 Apr 2005 10:26:47 +0100
Message-ID: <7765c8970504270226215b1316@mail.gmail.com>


On 4/26/05, Lex de Haan <lex.de.haan_at_naturaljoin.nl> wrote:
> you can't -- if histograms are available, they will be used.
> of course, you can use various hints and/or session settings
> to influence the optimizer.
> just out of curiosity: why would you, in the presence of histograms,
> ever want to tell the optimizer *not* to use them?

Because you issue a report with bind variables that for 99% of its executions *should* use histograms, but for 1% of them - the report to the board say, shouldn't use the execution path generated with histograms, and bind variable peeking isn't in operation. I don't think this applies to 9204 though.

--=20
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Apr 27 2005 - 05:31:03 CDT

Original text of this message

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