Path: newssvr20.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!pd7cy2so!pd7cy1no!shaw.ca!pd2nf1so.cg.shawcable.net!residential.shaw.ca!sn-xit-03!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Daniel Morgan <damorgan@x.washington.edu>
Newsgroups: comp.databases.oracle.server
Subject: Re: system statistics
Date: Thu, 09 Oct 2003 22:26:34 -0700
Organization: ATS
Message-ID: <1065763604.163908@yasure>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
References: <ROXgb.2708$Z86.2251@twister.socal.rr.com> <bm1qhl$6cd$1$8300dec7@news.demon.co.uk> <1065663757.336883@yasure> <bm4a5e$idj$1$8300dec7@news.demon.co.uk>
In-Reply-To: <bm4a5e$idj$1$8300dec7@news.demon.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cache-Post-Path: yasure!unknown@pond178.drizzle.com
X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)
X-Complaints-To: abuse@supernews.com
Lines: 64
Xref: newssvr20.news.prodigy.com comp.databases.oracle.server:244967

Jonathan Lewis wrote:

>I hadn't looked very closely at the dbms_xplan
>output since I still prefer my own format, but
>I did a quick check on 9.2.0.3 on W2000.
>In the absence of system stats, I got the
>'cpu costing not active' warning, and when
>I created some system stats, the warning
>disappeared.
>
>A couple of points:
>    do a query against sys.aux_stats$
>    to check the value of the stats, if
>    sreadtim or mreadtim is -1, then the
>    statistics will not be used.  You may
>    have collected over a period that did
>    no file system request for one or other
>    type of read.
>
>    remember that cursor are not invalidated
>    (at least, on some versions) when you
>    collect stats, so try doing a flush shared_pool
>    before running explain plan so that you get
>    new hard parse.
>
>
>--
>Regards
>
>Jonathan Lewis
>http://www.jlcomp.demon.co.uk
>
>  The educated person is not the person
>  who can answer the questions, but the
>  person who can question the answers -- T. Schick Jr
>
>
>One-day tutorials:
>http://www.jlcomp.demon.co.uk/tutorial.html
>____Iceland__November (tbc)
>____Belgium__November (EOUG event)
>____UK_______December (UKOUG conference)
>
>
>Three-day seminar:
>see http://www.jlcomp.demon.co.uk/seminar.html
>____USA__October
>____UK___November
>
>
>The Co-operative Oracle Users' FAQ
>http://www.jlcomp.demon.co.uk/faq/ind_faq.html
>
>  
>
Thanks. I'll beat it up some more and try again.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)

