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 get oracle to ignore an index

Re: how to get oracle to ignore an index

From: Mladen Gogala <mladen_at_wangtrading.com>
Date: Fri, 6 Feb 2004 12:02:42 -0500
Message-ID: <20040206170242.GC5061@mladen.wangtrading.com>


You have two options:
1) Use "index" hint to specify which index do you want to use. 2) Use ||'' or +0 trick to prevent oracle from picking that index.

On 02/06/2004 11:43:12 AM, ryan.gaffuri_at_cox.net wrote:
> I have a query that uses bind variables, so it cannot use histograms.
> Its choosing the wrong index. I have been dropping the index, getting
> it to choose the correct index and using a stored outline.
>
> anyway to go: oracle ignore this index.
>
> I tried disabled, but that just returns an error, plus I have to
> rebuild it. I'd prefer to avoid building the index again.
>
> ----------------------------------------------------------------
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
> To unsubscribe send email to: oracle-l-request_at_freelists.org
> put 'unsubscribe' in the subject line.
> --
> Archives are at http://www.freelists.org/archives/oracle-l/
> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
> -----------------------------------------------------------------
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Feb 06 2004 - 11:02:42 CST

Original text of this message

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