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: Optimizer not using index on raw column

Re: Optimizer not using index on raw column

From: John Darrah <darrah.john_at_gmail.com>
Date: Wed, 14 Feb 2007 12:26:39 -0700
Message-ID: <ec40ac060702141126v22889f84ve718f839c8ef78c0@mail.gmail.com>


Its probably doing an implicit conversion to varchar2. Try

Select * from tab1 where raw_column = hextoraw('value');

On 2/14/07, Harvinder Singh <Harvinder.Singh_at_metratech.com> wrote:
>
> Hi,
>
>
>
> We have an unique index on raw(16) column but whenever we issue a query on
> this table optimizer is doing fullscan and not using the index but when I
> force index it works fine:
>
> Select * from tab1 where raw_column = 'value';
>
>
>
> Is this expected behavior that when we refer RAW columns in query that
> Optimizer not use the index?
>
>
>
> Thanks
>
> --Harvinder
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Feb 14 2007 - 13:26:39 CST

Original text of this message

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