Re: how to get oracle to ignore an index

  • From: Mladen Gogala <mladen@xxxxxxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Fri, 6 Feb 2004 12:02:42 -0500

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@xxxxxxx 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@xxxxxxxxxxxxx
> put 'unsubscribe' in the subject line.
> --
> Archives are at //www.freelists.org/archives/oracle-l/
> FAQ is at //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@xxxxxxxxxxxxx
put 'unsubscribe' in the subject line.
--
Archives are at //www.freelists.org/archives/oracle-l/
FAQ is at //www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

Other related posts: