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: good value for optimizer_index_cost_adj

Re: good value for optimizer_index_cost_adj

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 24 Apr 2002 09:28:34 -0800
Message-ID: <F001.0044E20C.20020424092834@fatcity.com>

Best place to look is probably Tim Gorman's paper titled something like 'The search for intelligent life'. To be found on www.evdbt.com

His argument, which I think is very sound, is that the "most correct" value for the parameter is the relative cost of a single block read compared to a multi block read.

This is captured in oracle 9 through system_stats where you can capture for a given time period:

    average single block read time
    average multiblock read time
    average actual size of multiblock read.

I'll leave it to Tim's paper to give you guidelines on estimating the average times and average multiblock read size.

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Author of:
Practical Oracle 8i: Building Efficient Databases

Next Seminar - Australia - July/August
http://www.jlcomp.demon.co.uk/seminar.html

Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html

-----Original Message-----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Date: 24 April 2002 16:02

Hi,

Oracle 817/Solaris 8.

Users are doing select joining using the PKs of 2 partitionned tables. Partitionned key and the primary key are the same.

The access plan is a nested loop with a full table scan on the first table which hold 700 000 rows. The block size is 16K, I assume that's why Oracle is doing FTS.
By using optimizer_index_cost_adj, I can make Oracle use the PK of the first table. I've used 50 as a value for optimizer_index_cost_adj.
Is that too much ?
Where can I get some metrics on that parameter ?

TIA



Stéphane Paquette
DBA Oracle, consultant entrepôt de données Oracle DBA, datawarehouse consultant
stephane_paquette_at_yahoo.com

--

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

Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Apr 24 2002 - 12:28:34 CDT

Original text of this message

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