Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to get oracle to ignore an index
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
> -----------------------------------------------------------------
>
-- 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
![]() |
![]() |