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_STATS, 32 of 41


GATHER_INDEX_STATS Procedure

This procedure gathers index statistics. It does not execute in parallel.

Syntax

DBMS_STATS.GATHER_INDEX_STATS (
   ownname          VARCHAR2, 
   indname          VARCHAR2, 
   partname         VARCHAR2 DEFAULT NULL,
   estimate_percent NUMBER   DEFAULT NULL,
   stattab          VARCHAR2 DEFAULT NULL, 
   statid           VARCHAR2 DEFAULT NULL,
   statown          VARCHAR2 DEFAULT NULL);

Parameters

Table 63-33 GATHER_INDEX_STATS Procedure Parameters
Parameter  Description 

ownname 

Schema of index to analyze. 

indname 

Name of index. 

partname 

Name of partition. 

estimate_percent 

Percentage of rows to estimate (NULL means compute). The valid range is [0.000001,100). Use the constant DBMS_STATS.AUTO_SAMPLE_SIZE to have Oracle determine the best sample size for good statistics. 

stattab 

User stat table identifier describing where to save the current statistics. 

statid 

Identifier (optional) to associate with these statistics within stattab

statown
 

Schema containing stattab (if different than ownname). 

Exceptions

ORA-20000: Index does not exist or insufficient privileges.

ORA-20001: Bad input value.


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