Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Hints

Re: Hints

From: Ronald <devnull_at_ronr.nl>
Date: 28 Sep 2001 07:39:22 -0700
Message-ID: <67ce88e7.0109280639.4d82bb0a@posting.google.com>


sweidanz_at_yahoo.com wrote in message news:<Q8Ps7.32$uX3.677_at_nsw.nnrp.telstra.net>...
> Folks,
> Is it possible that Oracle optimiser would ignore the hint and does
> something different?
> Here is my case:
>
> - Oracle 8.1.6/ Solaris
> - Optimiser mode is CHOOSE
> - There are statistics for the tables in the query
>
> First run: (no hints)
> - execution plan says that the optimiser used the cost_based method.
> - it did a full table scan on table A.
>
> Second run: hint /*+ RULE */
> - The execution plan used an index in table A
>
> Third run: hint /*+ Index tableA(indexname) */
> - The optimiser did a FULL table scan on tableA.
>
> Just wondering if thats possible, that the optimiser would ignore the
> hint, or i might be missing something here?

check the cardinality of the index you specified. If has a low cardinality the optimizer will choose for a FTS, as it did.

Ronald.



http://ronr.nl/unix-dba Received on Fri Sep 28 2001 - 09:39:22 CDT

Original text of this message

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