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: why people delete statistics bore running statistics

Re: why people delete statistics bore running statistics

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 23 Oct 2006 08:22:59 -0700
Message-ID: <1161616978.177336@bubbleator.drizzle.com>


mfullerton_at_gmail.com wrote:

> I have seen people do that as well. Running stats will generate new
> stats. Deleting them is bad because it will force queries to use rule
> based optimization during the time from the delete and the time the
> stats for those specific tables get put back.
> 
> On Oct 19, 4:31 pm, DA Morgan <damor..._at_psoug.org> wrote:
>> dbaplusp..._at_hotmail.com wrote:

>>> I am using Oracle 10g r1 on Windows 2000 Server as well as Oracle9i on
>>> HP UNIX. 11i
>>> I run following sql to gather staistics:
>>> sys.dbms_stats.gather_schema_stats(ownname=>'SAPPHIRE', cascade=>TRUE);
>>> for SAPPHIRE schema.
>>> I have seen some people delete staistics before running above
>>> statement. Won't above statement regenerate the statistics for all
>>> tables/indexes, overwriting whatever was there.
>>> PremYes.
>> --
>> Daniel A. Morgan
>> University of Washington
>> damor..._at_x.washington.edu
>> (replace x with u to respond)
>> Puget Sound Oracle Users Groupwww.psoug.org

Fascinating job of editing. You left my name and signature and not a single line I wrote.

Then you top posted an incorrect conclusion. Nice!

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Oct 23 2006 - 10:22:59 CDT

Original text of this message

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