Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Estimating OPTIMIZER_INDEX_COST_ADJ From V$SYSTEM_EVENT?
Hello,
Thanks for those people who replied to my question regarding the default setting for OPTIMIZER_INDEX_COST_ADJ for Oracle v8.1.7/BW.
I would appreciate any feedback on the following logic for setting OPTIMIZER_INDEX_COST_ADJ from v$SYSTEM_EVENT data that I found after I posted the question. Would people agree with it?
On the Website 'www.evdbt.com' (Tim Gorman) has what I think is a
great document on the CBO. (The Search For Intelligent Life In The
CBO). He
suggests that the following query for find out the ratio between wait
times for sequential reads (Index scans) and scattered reads (FTS) as
an initial estimate
got OPTIMIZER_INDEX_COST_ADJ.
I checked V$SYSTEM_EVENT and the ratio average waits for seq. reads to
scattered reads for about .333, so that I should (Initially at first)
set
OPTIMIZER_INDEX_COST_ADJ to 33. (A bit lower than normally expected
from a
DSS system, I think).
(i.e From the document..... )
for following query:
SELECT EVENT, AVERAGE_WAIT FROM V$SYSTEM_EVENT WHERE EVENT LIKE ‘db file s%’;
..... The AVERAGE_WAIT column contains the average timing, in 1/100ths of a second, of these events:
EVENT AVERAGE_WAITS ========================= ============== db file sequential reads .33178629 db file scattered reads 2.190087
In this example, indexed scan I/O requests takes only 15% as long as each FULL table scan I/O request. So, set OPTIMIZER_INDEX_COST_ADJ to 15.
SELECT EVENT, AVERAGE_WAIT FROM V$SYSTEM_EVENT WHERE EVENT LIKE ‘db file s%’;
Thanks,
BASIS Consultant
Noons <nsouto_at_optusnet.com.au.nospam> wrote in message news:<Xns93056B2B38Amineminemine_at_210.49.20.254>...