nerdexam
Oracle

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.

Managing Database Storage Structures

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)
  • A
    6% (3)
  • B
    4% (2)
  • C
    70% (35)
  • D
    18% (9)
  • I
    2% (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.

ADEALLOCATE UNUSED

DEALLOCATE UNUSED releases space above the high water mark but does not compact fragmented rows or reclaim space scattered within the allocated segment extents.

BSHRINK SPACE CASCADE

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.

CSHRINK SPACE COMPACTCorrect

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.

DROW STORE COMPRESS BASIC

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.

ILong-running queries are not affected

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

#space management#table fragmentation#SHRINK SPACE#segment compaction

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice