Optimizing Database disk space using Alter table shrink space/move compress
Last updated on JUNE 19, 2018
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.4 to 220.127.116.11 [Release 10.2 to 11.2]
Oracle Database - Enterprise Edition - Version 18.104.22.168 to 22.214.171.124 [Release 12.1]
Information in this document applies to any platform.
Discussion of ways to optimize space in a database:
Q1. How to minimize the tablespace usage for a read-only database?
Q2. Is it recommended to perform shrink space for all tables and indexes?
Q3. Does "alter table <owner.table shrink space" adjust the datafile high water mark?
Q4. What are the expected benefits of "Alter table <owner.table> move compress"?
Q5. If not using exp/imp to move tables to another tablespace, Does that mean "alter table <...> move compress" is not a good option?
Q6. Steps below didn't lower data file highwatermark, Why?
Q7. How to calculate the allocated blocks for a table?
Q8. How to view the actual unallocated blocks for a datafile?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms