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: DBMS_STATS

RE: DBMS_STATS

From: Terrian, Tom (Contractor) (DAASC) <Tom.Terrian_at_dla.mil>
Date: Tue, 25 Feb 2003 11:19:05 -0800
Message-ID: <F001.00558F93.20030225111905@fatcity.com>


ok, I will take a look. thanks

-----Original Message-----
Sent: Tuesday, February 25, 2003 1:35 PM To: Multiple recipients of list ORACLE-L

May have something to do with bug 2649728, which I just heard about for the first time no more than 10 seconds ago.  

Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com <http://www.hotsos.com>

Upcoming events:
- RMOUG Training Days 2003 <http://www.rmoug.org> , Mar 5-6 Denver - Hotsos <http://www.hotsos.com/training/clinic101> Clinic 101, Mar 25-27 London

-----Original Message-----
(Contractor) (DAASC)

Sent: Tuesday, February 25, 2003 12:13 PM To: Multiple recipients of list ORACLE-L  

I have never had good luck with DBMS_STATS. It seems that the old analyze runs much faster.....  

Runs in 45 seconds:

analyze table log_trans partition (log_trans_20030104) estimate statistics sample 5 percent;  

Takes over 2 hours:

execute dbms_stats.gather_table_stats(ownname => 'LDGADMIN', -

                                      tabname => 'LOG_TRANS', -
                                      partname => 'LOG_TRANS_20030102', -
                                      estimate_percent => 5);

Am I missing something? Aren't both commands the same?  

Thanks,

Tom

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Terrian, Tom (Contractor) (DAASC)
  INET: Tom.Terrian_at_dla.mil

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Tue Feb 25 2003 - 13:19:05 CST

Original text of this message

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