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!

Rebuild index after deleting millions of records to free up space on the index tablespace?

4180503Jan 31 2020 — edited Jan 31 2020

Hi, I have to delete many millions of records from different tables periodically. I can't use CTAS to do this. I use block record delete. In tests I noticed that the index table space (we have one table space for data and one for indexes) does not decrease after delete the records. Doesn't it decrease because the spaces are still occupied or does it have free spaces that Oracle blocks for future allocations?

On the other hand, if at the end of the process I rebuild the indexes, the size of the tablespace decreases. Am I always forced at the end of the process to rebuild the indices? (It is a matter of time, the whole process must end in a certain time, if I have to rebuild the indexes then it gets complicated).

Thank you

Comments
Post Details
Added on Jan 31 2020
5 comments
6,334 views