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: About an old hint question

Re: About an old hint question

From: Mladen Gogala <mgogala_at_adelphia.net>
Date: Wed, 14 May 2003 19:26:58 -0800
Message-ID: <F001.0059932C.20030514192658@fatcity.com>


Thanks, Wolfgang! K. Gopalakrishnan also pointed that to me. I must say that I prefer parameters to a very broad sword and that I'm perfectly content with hints. Why do hints cause such a controversy? They're only a fine tuning tool which are needed only when fine tuning is needed. Another instance of need for hints is when one of the tables involved in a join is in a hotspot and even if a full table scan would normally be the fastest way to read it, you want to use fast full index scan, just
to avoid it. Optimizer has no way of knowing about misteries of disks, universe and everything. For such cases, we need hints.

On 2003.05.14 22:06 Wolfgang Breitling wrote:
> If you have many of those, try setting _LIKE_WITH_BIND_AS_EQUALITY =
> TRUE (can be done with alter session) and potentially increase the
> selectivity of the column by reducing density by an order of
> magnitude or two.
>
> At 04:11 PM 5/14/2003 -0800, you wrote:

>> [...]

>
>> The contention issue are the bind variables from PRO*C programs where
>> things "LIKE :S" are usually resolved by using a full table scan,
>> even if :S is of the form 'ABC%' in which case the query should, as
>> we all know, use an index. The only solution that I have for the 
>> problem
>> is to put a dreaded hint in the select.

>
> [...]
> Wolfgang Breitling
> Centrex Consulting Corporation
> http://www.centrexcc.com
>
>-- 

> Please see the official ORACLE-L FAQ: http://www.orafaq.net
>-- 

> Author: Wolfgang Breitling
> INET: breitliw_at_centrexcc.com
>
> 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: ListGuru_at_fatcity.com (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).
-- 
Mladen Gogala
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mgogala_at_adelphia.net

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: ListGuru_at_fatcity.com (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 May 14 2003 - 22:26:58 CDT

Original text of this message

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