Iain,
This is covered in greater detail in the SQL Reference
manual under the Analyze command, but here's a summary
of the basics.
Computing/estimating statistics on the table (without
a FOR clause) calculates/estimates stats for the table
and its indexes.
The for clause has the following options:
For Table - table stats only
For Columns <column_list>
All Columns
For All Indexed Columns - gathers column stats on
the specified columns, all columns, or only the
indexed columns. If the SIZE option is also included,
then histogram information is gathered as well.
For more details on histograms see metalink note
1031826.6 "Histograms: An Overview"
Some key details to consider before using histograms:
* they are not used with bind variables.
* they are useful only if the data is heavily
skewed (i.e. it's not uniformly distributed)
HTH,
-- Anita
--- "Nicoll, Iain (Calanais)"
<[EMAIL PROTECTED]> wrote:
> Apologies for what is probably a really simple
> question but what is the
> default behaviour of
>
> analyze table table_name compute statistics
>
> and would
>
> analyze table table_name compute statistics for
> table for indexed columns
> for all indexes
>
> be any better/worse than analyzing separately
>
> eg
>
> analyze table table_name compute statistics
> analyze table table_name compute statistics for all
> indexed columns
> analyze index index_name compute statistics
>
> Version is Oracle 7.3. The only references I've got
> access to don't appear
> to make it clear.
>
> TIA
>
> Iain Nicoll
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: A. Bardeen
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).