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!

TRUNCATE TABLE with REUSE STOR

foxhoundJun 24 2019 — edited Jun 28 2019

Hey,

I have small problem to properly understand and use 'REUSE STORAGE' clause of TRUNCATE TABLE.

I have table my_table which has some data, after gather statistics by:

exec dbms_stats.gather_table_stats('MY_SCHEMA','MY_TABLE');

and then user_tables shows:

table_namenum_rowsblocksempty_blocks
my_table650

Then when I do

TRUNCATE TABLE my_table REUSE STORAGE;

next gather stats again then user_tables shows:

table_namenum_rowsblocksempty_blocks
my_table000

when I would expect to get all equal to zeros except empty_blocks which should be equal to 5?

This post has been answered by Mark D Powell on Jun 24 2019
Jump to Answer
Comments
Post Details
Added on Jun 24 2019
7 comments
780 views