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!

Running shrink command

698496Apr 27 2009 — edited Apr 27 2009
I have a process queue running with tables in a Database. I have converted this process queue from MS SQL Server to Oracle, but now I've a question: Sometimes I ran a process to clear obsolete rows using DELETE command, so, I use SHRINK command do reduze database file size. Now, using oracle I will go DELETE rows too and I think that I need use SHRINK command.

I've found following commands to run after DELETE:

ALTER TABLE <tablename> DEALLOCATE UNUSED;

or

alter table <tablename> enable row movement;
alter table <tablename> shrink space;

Is it necessary shrink it?
What is the best process to reduce file size?

Regards,
Jackson
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2009
Added on Apr 27 2009
1 comment
443 views