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_utility and dbms_stat difference

RE: dbms_utility and dbms_stat difference

From: Chuan Zhang <Chuan.Zhang_at_transact.com.au>
Date: Thu, 22 Aug 2002 21:33:20 -0800
Message-ID: <F001.004BDDE9.20020822213320@fatcity.com>


Hi, Madhavan,

 Thanks all for the clraification.

Just wonder whether "analyze table <name> estimate statistics" generates the stats at partition level. But for sure, it does not generate the stats at table level. Please correct me if wrong.

As Connor said, dbms_stats runs a lot heavier than analyze, I think, it's because it gathers the stats at table and partition level and related indexes.

In brief, I prefer to choose "analyze .. estimate statistics" for non-partition table and dbms_stats for partitioned table.

Chuan

-----Original Message-----
Sent: Thursday, 22 August 2002 5:04 AM
To: Multiple recipients of list ORACLE-L

Hi Cherie,

> I can't speak for dbms_utility but dbms_stats is supposed to generate
> statistics at both the partition level and at the table level for
> partitioned tables, which analyze does not do.

A small correction, ANALYZE also generates statisics at partition level and when an "analyze table <name> compute statistics" is done it generates statistics for the partitions. Analyze can also be run at the partition level as "analyze table <name> part (<pname>) compute statistics" and this will generate statistics only for that paritition.
Its very useful as analyze can be run for the partitions of a table in parallel and so its a blessing when running analyze on huge partitioned tables.

One of the big differences between analyze and dbms_stats is that analye cannot be run in parallel on a non partitioned table and definitely runs better in my opinion in general.

Hope this helps.
Regards,

Madhavan
http://www.dpapps.com

-- 
Madhavan Amruthur
DecisionPoint Applications

-- 
http://fastmail.fm
 - In the time it takes you to read this, you could be FastMailing
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Madhavan Amruthur
  INET: mad5698_at_fastmail.fm

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).



-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Chuan Zhang INET: Chuan.Zhang_at_transact.com.au 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 Fri Aug 23 2002 - 00:33:20 CDT

Original text of this message

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