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: Boyle, Christopher J. <Christopher.J.Boyle_at_espn.com>
Date: Fri, 6 Feb 2004 11:53:52 -0500
Message-ID: <8FE22CA2A160D54A8B34B11713F31BB40AC50DCE@xchgbrsm3.corp.espn.pvt>


Can you hint the query to use the right index? If not, try where = table.text_field||'' =3D :bind_variable or table.number_field *1 =3D = :bind_variable or=20
:bind_variable or table.number_field =3D to_char(:bind_variable)

-----Original Message-----

From: oracle-l-bounce_at_freelists.org =
[mailto:oracle-l-bounce_at_freelists.org]On Behalf Of ryan.gaffuri_at_cox.net Sent: Friday, February 06, 2004 11:43 AM To: oracle-l_at_freelists.org
Subject: how to get oracle to ignore an index

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 - 10:53:52 CST

Original text of this message

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