Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DBMS_STATS: When do stats get dropped?

959742Nov 27 2012 — edited Nov 29 2012
Hi All,

This is probably a stupid question, but I've searched high and low and haven't found a suitable answer to the following: When do stats get dropped?

I've read that table and index stats get dropped whenever you truncate a table, but the (minimal) testing I've done doesn't bear this out. By "testing", I mean I've tried truncating a table then exporting and viewing the table stats via DBMS_STATS.EXPORT_TABLE_STATS (well I did say 'minimal')... The table stats don't appear to have been dropped following truncation.

Do table / index stats get dropped when you truncate / drop / delete all records from a table? Or do they not get dropped at all?
This post has been answered by Nikolay Savvinov on Nov 28 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2012
Added on Nov 27 2012
6 comments
3,410 views