Skip to Main Content

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Vanka.

Asked: August 10, 2017 - 6:20 am UTC

Last updated: August 10, 2017 - 9:53 am UTC

Version: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

Viewed 10K+ times! This question is

You Asked

Hi TOM,

I am using reorg on around 50 tables. I am using below queries.

"alter table tablename enable row movement;"
"alter table tablename shrink space;"
"ALTER TABLE tablename DEALLOCATE UNUSED;"

Is there any way that we can check whether reorg is required for a particular table or not. so that I can skip the tables which do not require Reorg.

Thanks and Regrads,
Satya.



and Chris said...

No tables "require" a reorg. I'm guessing what you're really asking "which tables have significant free space we can reclaim?"

If so Tim Hall has a detailed article about finding and reclaiming unused space. Read it at:

https://oracle-base.com/articles/misc/reclaiming-unused-space

Just beware of unintended side-effects!

You don't want to be like this poor person who found their application was slower after shrinking tables:

https://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:9536157800346457013

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

Administration

Need more information on Administration? Check out the Administrators guide for the Oracle Database