Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_UTILITY , 4 of 23


ANALYZE_DATABASE Procedure

This procedure analyzes all the tables, clusters, and indexes in a database.

Syntax

DBMS_UTILITY.ANALYZE_DATABASE (
   method           VARCHAR2, 
   estimate_rows    NUMBER   DEFAULT NULL, 
   estimate_percent NUMBER   DEFAULT NULL, 
   method_opt       VARCHAR2 DEFAULT NULL);

Parameters

Table 69-6 ANALYZE_DATABASE Procedure Parameters
Parameter  Description 
method
 

One of ESTIMATE, COMPUTE or DELETE.

If ESTIMATE, then either estimate_rows or estimate_percent must be non-zero. 

estimate_rows
 

Number of rows to estimate. 

estimate_percent
 

Percentage of rows to estimate.

If estimate_rows is specified, then ignore this parameter. 

method_opt
 

Method options of the following format:

[ FOR TABLE ]
[ FOR ALL [INDEXED] COLUMNS] [SIZE n]
[ FOR ALL INDEXES ]
 

Exceptions

Table 69-7 ANALYZE_DATABASE Procedure Exceptions
Exception  Description 
ORA-20000
 

Insufficient privileges for some object in this database. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback