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: Analyzing procedures difference?

Re: Analyzing procedures difference?

From: Jan Nowitzky <nowitzky_at_informatik.uni-jena.de>
Date: Wed, 11 Aug 1999 10:03:32 +0200
Message-ID: <37B12E53.3D314638@informatik.uni-jena.de>


HI,

Oleg Roshchin wrote:

> Hi, all!
>
> What is the difference between DBMS_Utility.Analyze_Schema

This procedure analyzes all the tables, clusters, and indexes in a schema. This can take a lot of time.

> and DBMS_Utility.Analyze_Part_Object?

This procedure is equivalent to SQL:

"ANALYZE TABLE|INDEX [<schema>.]<object_name> PARTITION <pname> [<command_type>]
[<command_opt>] [<sample_clause>]

Here you can analyze each partition of an partioned table separat and/or for each partition of the object, run in parallel using job queues.

If you want to analyze non-partitioned table you can use DBMS_DDL.ANALYZE_OBJECT.
This procedure provides statistics for the given table, index, or cluster. It is equivalent to the following SQL statement:

ANALYZE TABLE|CLUSTER|INDEX [<schema>.]<name> [<method>] STATISTICS [SAMPLE <n>
[ROWS|PERCENT]]
> In the book "Oracle8 Server Tuning" it's written to use the second
> procedure and nothing about the first one.
> Is the first procedure enough for analyzing everything in the
> schema

Yes, the other procedures are more selective.

Hope it helps, Jan
--



Jan Nowitzky o Friedrich-Schiller-Universität o Institut für Informatik o E-Mail nowitzky_at_informatik.uni-jena.de
Received on Wed Aug 11 1999 - 03:03:32 CDT

Original text of this message

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