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: CPU COSTING

Re: CPU COSTING

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 23 Apr 2004 17:13:38 +0100
Message-ID: <01c801c4294d$fc7fc8b0$7102a8c0@Primary>

You collect statistics for a "typical" period.

    (Session 10 - slide 14 of Optimising Oracle)

Simplest option:

    execute dbms_stats.gather_system_stats('start')

        twiddle thumbs for a while
    execute dbms_stats.gather_system_stats('stop')

You can set sql_trace true to see what actually happens.

The idea is that you want Oracle to optimise the SQL for a given machine load - and the machine load is represented by the relative I/O speeds, and the apparent CPU speed.

Lapsing into economics - the old CBO worked on the Adam Smith principle .. every does the best they can and the market makes things stabilise; the new CBO works on the John Nash equilibrium .. if everyone knows what everyone else is doing, then there is a point at which not unilateral change can improve the net benefit.

Regards

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

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

April 2004 Iceland http://www.index.is/oracleday.php June 2004 UK - Optimising Oracle Seminar July 2004 USA West Coast, Optimising Oracle Seminar August 2004 Charlotte NC, Optimising Oracle Seminar September 2004 USA East Coast, Optimising Oracle Seminar September2004 UK - Optimising Oracle Seminar

I was talking about how it gets populated, or the processes involved in = calculating the numbers there. if the numbers are already in v$filestat, = why do I have to collect it?

Regards,

Waleed



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

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Fri Apr 23 2004 - 11:11:18 CDT

Original text of this message

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