Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re: how to hint a unique index scan?
i know how to choose the index i want. im wondering if there is a way to tell oracle
what type of index scan to use. i know you can choose a fast full scan, but what about
forcing a unique scan? just because oracle uses a unique index does not mean it always
chooses the most efficient TYPE of index scan.
>
> From: Michal Zaschke <[EMAIL PROTECTED]>
> Date: 2003/06/18 Wed AM 08:20:04 EDT
> To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> Subject: Re: how to hint a unique index scan?
>
> You can define the exact index you want to use.
>
> /*+ INDEX ( table [index [index]...] ) */
>
> HTH,
> Mike
>
>
> [EMAIL PROTECTED] wrote:
> > Is there anyway to hint a specific type of scan? I know you can hint a fast full
> > scan.
> >
> > I have something odd happening. I made a copy of a tablespace and transported that
> > copy with in the same instance. So in the one instance. I have two copies of this
> > tablespace.
> >
> > I have two tables that are 99% identical. IE one has about 1% more records and if
> > you validate the indexes on each they are also less than 1% apart.
> >
> > Now in one tablespace an update does an Unique Scan and in the other the EXACT
> > same update does a full scan and runs ALOT slower. I want to mess around.
> >
> > anyway to force a unique index scan? Both tables are analyzed.
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Michal Zaschke
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: <[EMAIL PROTECTED] INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jun 18 2003 - 07:35:15 CDT