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

Re: Optimizer not using index on raw datatype column

From: Maxim Demenko <mdemenko_at_arcor.de>
Date: Wed, 14 Feb 2007 20:32:47 +0100
Message-ID: <45D363DF.6040607@arcor.de>


harvinder76_at_gmail.com schrieb:
> 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
>

The index should be used if you tell optimizer explicitly, that your literal has raw datatype ( i.e.
Select * from tab1 where raw_column = hextoraw('value'); )

Best regards

Maxim Received on Wed Feb 14 2007 - 13:32:47 CST

Original text of this message

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