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, 9 of 41


GET_INDEX_STATS Procedure

This procedure gets all index-related information.

Syntax

DBMS_STATS.GET_INDEX_STATS (
   ownname      VARCHAR2, 
   indname      VARCHAR2,
   partname     VARCHAR2 DEFAULT NULL,
   stattab      VARCHAR2 DEFAULT NULL, 
   statid       VARCHAR2 DEFAULT NULL,
   numrows  OUT NUMBER, 
   numlblks OUT NUMBER,
   numdist  OUT NUMBER, 
   avglblk  OUT NUMBER,
   avgdblk  OUT NUMBER, 
   clstfct  OUT NUMBER,
   indlevel OUT NUMBER,
   statown      VARCHAR2 DEFAULT NULL);

Parameters

Table 63-10 GET_INDEX_STATS Procedure Parameters
Parameter  Description 
ownname
 

Name of the schema. 

indname
 

Name of the index. 

partname
 

Name of the index partition for which to get the statistics. If the index is partitioned and if partname is NULL, then the statistics are retrieved for the global index level. 

stattab
 

User stat table identifier describing from where to retrieve the statistics. If stattab is NULL, then the statistics are retrieved directly from the dictionary. 

statid
 

Identifier (optional) to associate with these statistics within stattab (Only pertinent if stattab is not NULL). 

numrows
 

Number of rows in the index (partition). 

numlblks
 

Number of leaf blocks in the index (partition). 

numdist
 

Number of distinct keys in the index (partition). 

avglblk
 

Average integral number of leaf blocks in which each distinct key appears for this index (partition). 

avgdblk
 

Average integral number of data blocks in the table pointed to by a distinct key for this index (partition). 

clstfct
 

Clustering factor for the index (partition). 

indlevel
 

Height of the index (partition). 

statown
 

Schema containing stattab (if different than ownname). 

Exceptions

ORA-20000: Object does not exist or insufficient privileges or no statistics have been stored for requested object.


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