Delete statistics in Oracle

Delete Stats for object in Oracle

Delete statistics of the complete database

EXEC DBMS_STATS.delete_database_stats;

Delete statistics of a single schema

EXEC DBMS_STATS.delete_schema_stats('DBACLASS');

Delete statistics of single table

EXEC DBMS_STATS.delete_table_stats('DBACLASS', 'DEPT');

Delete statistics of a column

EXEC DBMS_STATS.delete_column_stats('DBACLASS', 'DEPT', 'CLASS');

Delete statistics of an index

EXEC DBMS_STATS.delete_index_stats('DBACLASS', 'CLASS_IDX');

Delete dictionary statistics in db

EXEC DBMS_STATS.delete_dictionary_stats;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.