1Z0-062 · Question #199
You want to reduce fragmentation and reclaim unused space of the SALES table but not its dependent objects. During the operation, you want to ensure the following:
The correct answer is C. SHRINK SPACE COMPACT. SHRINK SPACE COMPACT compacts fragmented rows in the SALES table without resetting the high water mark, touching dependent objects, or blocking concurrent queries.
Question
You want to reduce fragmentation and reclaim unused space of the SALES table but not its dependent objects. During the operation, you want to ensure the following:
Options
- ADEALLOCATE UNUSED
- BSHRINK SPACE CASCADE
- CSHRINK SPACE COMPACT
- DROW STORE COMPRESS BASIC
- ILong-running queries are not affected
How the community answered
(50 responses)- A6% (3)
- B4% (2)
- C70% (35)
- D18% (9)
- I2% (1)
Why each option
SHRINK SPACE COMPACT compacts fragmented rows in the SALES table without resetting the high water mark, touching dependent objects, or blocking concurrent queries.
DEALLOCATE UNUSED releases space above the high water mark but does not compact fragmented rows or reclaim space scattered within the allocated segment extents.
SHRINK SPACE CASCADE compacts the table and then propagates the shrink operation to all dependent objects including indexes, which violates the requirement to leave dependent objects untouched.
SHRINK SPACE COMPACT performs only the compaction phase of the shrink operation - relocating rows to reduce fragmentation - without cascading to dependent objects such as indexes. It uses short-duration row-level locks rather than a full table lock, so long-running queries against the table continue uninterrupted.
ROW STORE COMPRESS BASIC applies table compression to reduce storage for future bulk inserts, but does not address fragmentation or reclaim currently unused space within the segment.
Concept tested: Oracle online segment shrink compact phase without cascade
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/admin/managing-space-for-schema-objects.html
Topics
Community Discussion
No community discussion yet for this question.