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 -> function-based indexes

function-based indexes

From: Michael <michaelmoss123_at_yahoo.com>
Date: 28 Jun 2001 13:39:39 -0700
Message-ID: <453952bc.0106281239.9407768@posting.google.com>

I'm trying to create a case-insensitive match on two tables using function-based indexes, but can't get the optimizer to use the indexes. I've set the 2 query_rewrite parameters and analyzed both tables, and both indexes work fabulously when searching only one table at a time. In other words

select /*+ index(f1) */ count(*) from t1 where upper(a)='TEST' and select /*+ index(f2) */ count(*) from t2 where upper(a)='TEST'

both work great and use the indexes. It's when I try to join the tables on upper(t1.a)=upper(t2.a) that I'm getting full-table scans. Does anyone know what I've missed? Thanks very much,

Mike Received on Thu Jun 28 2001 - 15:39:39 CDT

Original text of this message

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