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: Bind Variable Peeking Not Working Properly

Re: Bind Variable Peeking Not Working Properly

From: makkalina <makulev_at_gmx.net>
Date: 8 Dec 2005 06:57:40 -0800
Message-ID: <1134053860.741871.154050@g44g2000cwa.googlegroups.com>


Hi Daniel,
Are you sire that _optim_peek_user_binds = TRUE ? If not, then Oracle will use the standart (5%, I beleive) cardinality of T1.VAL coulmn and thus will favour the Index on S_LST_OF_VAL.VAL (T1). Normally this table is pretty small (compared to the rest of the SIEBEL tables).
By replacing :v5 with literal , oracle will check (hard-parse) the statistics (and the histogramms, if any) and will notice that the T1.VAL has skewed data distribution und will choose another table as driving table for the resultset.

If you are running with oprimizer_mode=RULE then Oracle will favour usage of index on T1.
Could you post the exec plans of the SQL query ?

Reagrds. MILEN Received on Thu Dec 08 2005 - 08:57:40 CST

Original text of this message

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