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


DELETE_TABLE_STATS Procedure

This procedure deletes table-related statistics.

Syntax

DBMS_STATS.DELETE_TABLE_STATS (
   ownname         VARCHAR2, 
   tabname         VARCHAR2, 
   partname        VARCHAR2  DEFAULT NULL,
   stattab         VARCHAR2  DEFAULT NULL, 
   statid          VARCHAR2  DEFAULT NULL,
   cascade_parts   BOOLEAN   DEFAULT TRUE, 
   cascade_columns BOOLEAN   DEFAULT TRUE,
   cascade_indexes BOOLEAN   DEFAULT TRUE,
   statown         VARCHAR2  DEFAULT NULL);

Parameters

Table 63-16 DELETE_TABLE_STATS Procedure Parameters
Parameter  Description 
ownname
 

Name of the schema. 

tabname
 

Name of the table to which this column belongs. 

colname
 

Name of the column. 

partname
 

Name of the table partition from which to get the statistics. If the table is partitioned and if partname is NULL, then the statistics are retrieved from the global table 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). 

cascade_parts
 

If the table is partitioned and if partname is NULL, then setting this to TRUE causes the deletion of statistics for this table for all underlying partitions as well. 

cascade_columns
 

Indicates that DELETE_COLUMN_STATS should be called for all underlying columns (passing the cascade_parts parameter). 

cascade_indexes
 

Indicates that DELETE_INDEX_STATS should be called for all underlying indexes (passing the cascade_parts parameter). 

statown
 

Schema containing stattab (if different than ownname). 

Exceptions

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


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