Académique Documents
Professionnel Documents
Culture Documents
The upper part of the diagram in the slide shows a sparsely populated segment. There is some unused
space both above and below the segments high-water mark (HWM).
Shrinking a sparsely populated segment improves the performance of scan and DML operations on
that segment. This is because there are fewer blocks to look at after the segment has been shrunk.
This is especially true for:
Full table scans (fewer and denser blocks)
Better index access (fewer I/Os on range ROWID scans due to a more compact tree)
You can make more free space available in tablespaces by shrinking sparsely populated segments.
When a segment is shrunk, its data is compacted, its HWM is pushed down, and unused space is
released back to the tablespace containing the segment.
Row IDs are not preserved. When a segment is shrunk, the rows move inside the segment to different
blocks, causing the row ID to change.
Note: The number of migrated rows in a segment may be reduced as a result of a segment shrink
operation. Because a shrink operation does not touch all the blocks in the segment, you cannot
depend on reducing the number of migrated rows after a segment has been shrunk.