Skip to Main Content

SQL & PL/SQL

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!

shrink table after delete

WestDraytonJul 15 2008 — edited Jul 16 2008
Hi,
I want to remove some data from a Oracle table, too free up some space on hard drive.
I use delete clause with where condition to delete data, but then after i would need some shrink clause to shrink up the table as i understand.
I cant use truncate because it doesn't allow to use where clause. I need something like:

delete from table 1 where condition1;
shrink table1; --rfree up space
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2008
Added on Jul 15 2008
17 comments
9,926 views