SQL> ALTER TABLE TABLE_NAME enable ROW movement;
SQL> ALTER TABLE TABLE_NAME shrink SPACE;
SQL> ALTER TABLE TABLE_NAME disable ROW movement;
Benefits regarding to Oracle Documentation :
- Full table scans will take less time (a table scan will always scan up to the HWM even if space is not used)
- Better index access takes place because of a smaller B-Tree
- Space is freed up for other database objects
- Space below the HWM is released and the HWM is moved down
Thank you
Osama Mustafa
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa
does this operation invalidate indexes??? because we are moving rows down across the oracle block..
LikeLike
Didn't happened to me
LikeLike