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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Forcing use of an index

Re: Forcing use of an index

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Sat, 19 Mar 2005 18:15:43 -0000
Message-ID: <423c6c05$0$10943$cc9e4d1f@news-text.dial.pipex.com>


"Bob P" <bob_pombrio_at_yahoo.com> wrote in message news:1111071592.178952.243220_at_f14g2000cwb.googlegroups.com...
>I had a brain fart (working on too many different platforms at once), I
> saw CBO and thought of Common Business Objects.
>
> Yes we ae using the Cost Base optimizer.
>
> I don't have any choice on the query, it HAS to have the leading and
> trailing %'s because the data entry field that I am searching is a free
> form field that the users enter data into.

Can you change the query syntax, but not meaning? It sounds like a classic use for an OracleText index in which case your query would look like

select ...
from
where contains(col,:bindvar) > 0;

-- 
Niall Litchfield
Oracle DBA
http://www.niall.litchfield.dial.pipex.com 
Received on Sat Mar 19 2005 - 12:15:43 CST

Original text of this message

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