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

RE: Re: how to get oracle to ignore an index

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Fri, 6 Feb 2004 15:36:20 -0500
Message-ID: <4C9B6FDA0B06FE4DAF5918BBF0AD82CFECFC01@bosmail00.bos.il.pqe>


Are there rows for which the column(s) indexed by partmaster_partno are = NULL? If so, that will prevent the index access path being used.

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

From: Jesse, Rich [mailto:Rich.Jesse_at_qtiworld.com] Sent: Friday, February 06, 2004 3:14 PM
To: 'oracle-l_at_freelists.org'
Subject: RE: Re: how to get oracle to ignore an index

Perhaps that is one case, but I just tried this:

    SELECT /*+ index(pm partmaster_partno) */ *=20     FROM partmaster pm;

...where "partmaster" is an 8400 block table, and "partmaster_partno" is = a
2-segment unique index, and Oracle still correctly chooses the FTS, even though I hinted to use an index.

Rich

Rich Jesse                        System/Database Administrator
rich.jesse_at_qtiworld.com           Quad/Tech International, Sussex, WI =
USA
-----Original Message-----

From: DENNIS WILLIAMS [mailto:DWILLIAMS_at_LIFETOUCH.COM] Sent: Friday, February 06, 2004 2:04 PM
To: 'oracle-l_at_freelists.org'
Subject: RE: Re: how to get oracle to ignore an index

Ryan

   Here is the way I look at the issue you raise. Hints are coded as comments, not a part of the SQL statement. If a hint has bad syntax, = Oracle
does not error out, but treats the mangled hint as a comment. If the = hint
refers to an index that doesn't exist, Oracle does not error out. That = is
what I think is meant by saying that Oracle can ignore a hint if it = chooses
to.



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 - 14:36:20 CST

Original text of this message

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