Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle DELETE_TABLE_PREFS

Oracle Database Tips by Donald Burleson

Advanced Oracle Utilities: The Definitive Reference by Rampant TechPress is written by top Oracle database experts (Bert Scalzo, Donald Burleson, and Steve Callan).  The following is an excerpt from the book.

Delete_table_prefs is a procedure that deletes statistics preferences for the table specified. The valid values for the pname parameter are CASCADE, DEGREE, ESTIMATE_PERCENT, METHOD_OPT, NO_INVALIDATE, GRANULARITY, PUBLISH, INCREMENTAL and STALE_PERCENT.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

PNAME

VARCHAR2

IN

 

Table 7.83:  Delete_table_prefs Parameters

Delete_table_stats is a procedure that drops table level statistics for the specified table.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

PARTNAME

VARCHAR2

IN

NULL

STATTAB

VARCHAR2

IN

NULL

STATID

VARCHAR2

IN

NULL

CASCADE_PARTS

BOOLEAN

IN

TRUE

CASCADE_COLUMNS

BOOLEAN

IN

TRUE

CASCADE_INDEXES

BOOLEAN

IN

TRUE

STATOWN

VARCHAR2

IN

NULL

NO_INVALIDATE

BOOLEAN

IN

AUTO_INVALIDATE

FORCE

BOOLEAN

IN

FALSE

Table 7.84:  Delete_table_stats Parameters

Diff_table_stats_in_history is a function that compares the collected statistics from two different historical time periods and reports on the differences. It returns those differences as multiple occurrences of type DiffRepTab (refer to data types section above).

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

TIME1

TIMESTAMP WITH TIME ZONE

IN

 

TIME2

TIMESTAMP WITH TIME ZONE

IN

NULL

PCTTHRESHOLD

NUMBER

IN

10

Table 7.85:  Diff_table_stats_in_history Parameters

Diff_table_stats_in_pending is a function that compares the pending statistics with collected statistics from the current period and reports on the differences. It returns those differences as multiple occurrences of type DiffRepTab.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

TIMESTAMP

VARCHAR2

IN

NULL

PCTTHRESHOLD

NUMBER

IN

10

Table 7.86:  Diff_table_stats_in_pending Parameters

Diff_table_stats_in_stattab is a function that compares statistics from two different sources where those sources can be two different statistics tables: a single statistics table but for different STATID references, or a statistics table and the data dictionary. It returns those differences as multiple occurrences of type DiffRepTab (refer to data types section above).

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

STATTAB1

VARCHAR2

IN

 

STATTAB2

VARCHAR2

IN

NULL

PCTTHRESHOLD

NUMBER

IN

10

STATIS1

 

IN

NULL

STATID2

 

IN

NULL

STATTAB1OWN

 

IN

NULL

STATTAB2OWN

 

IN

NULL

Table 7.87:  Diff_table_stats_in_stattab Parameters

Drop_extended_stats is a procedure that drops a column level statistics entry for either a user specified column, column group, or an expression of columns in a table.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

EXTENSION

VARCHAR2

IN

 

Table 7.88:  Drop_extended_stats Parameters

Drop_stat_table is a procedure that drops user specified statistics table STATTAB which can be used to hold statistics generated by procedures and functions in the DBMS_STATS package.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

STATTAB

VARCHAR2

IN

 

Table 7.89:  Drop_stat_table Parameters

Export_column_stats is a procedure that copies column level statistics for the specified column, column group or column expression to a user defined statistics table.

 

Argument

Type

In / Out

Default Value

OWNNAME

VARCHAR2

IN

 

TABNAME

VARCHAR2

IN

 

COLNAME

VARCHAR2

IN

 

PARTNAME

VARCHAR2

IN

NULL

STATTAB

VARCHAR2

IN

 

STATID

VARCHAR2

IN

NULL

STATOWN

VARCHAR2

IN

NULL

Table 7.90:  Export_column_stats Parameters

Export_database_prefs is a procedure that exports the statistics preferences of all the tables, except those owned by Oracle such as SYS and SYSTEM .

 

Argument

Type

In / Out

Default Value

STATTAB

VARCHAR2

IN

 

STATID

VARCHAR2

IN

NULL

STATOWN

VARCHAR2

IN

NULL

ADD_SYS

BOOLEAN

IN

FALSE

Table 7.91:  Export_database_prefs Parameters

Export_database_stats is a procedure that copies the statistics of all the tables, except those owned by Oracle such as SYS and SYSTEM, into the user specified statistics table.

 

Argument

Type

In / Out

Default Value

STATTAB

VARCHAR2

IN

 

STATID

VARCHAR2

IN

NULL

STATOWN

VARCHAR2

IN

NULL

Table 7.92:  Export_database_stats Parameters

Export_dictionary_stats is a procedure that copies the statistics of all the data dictionary tables, except those owned by Oracle such as SYS and SYSTEM,  into the user specified statistics table.

 

Argument

Type

In / Out

Default Value

STATTAB

VARCHAR2

IN

 

STATID

VARCHAR2

IN

NULL

STATOWN

VARCHAR2

IN

NULL

Table 7.93:  Export_dictionary_stats Parameters


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.