Truncate allways brings the HWM down.
Hi Mike,
Please see the REUSE STORAGE section from this link.
Regards,
If the extents are not de-allocated then the HWM will at the end correct? In this case if we are using APPEND hint then oracle start allocating the space for new records after HWM which wastes some storage.
Please correct me if I am wrong.
Regards,
Hi,
There is no direct relation between the HWM and the number of extents.
An extent is just a logical space allocated to a table/segment.
The HWM informs from which point on all blocks are empty and unformatted.
The reason why a truncate is so fast is because Oracle just resets the HWM.
With the REUSE STORAGE option the extent allocated to the table are not removed. The main advantage of it is that the extents don't need to be reallocated to the table when data are inserted again. However I don't think that you got a real performance advantage when using a locally managed tablespace.
Regards