nerdexam
Oracle

1Z0-067 · Question #70

You want to reduce fragmentation and reclaim unused space for the sales table but not its dependent objects. During this operation, you want to ensure the following: i.Long-running queries are not…

The correct answer is C. SHRINK SPACE COMPACT. https://docs.oracle.com/cd/B28359_01/server.111/b28310/schema003.htm The COMPACT clause lets you divide the shrink segment operation into two phases. When you specify COMPACT, Oracle Database defragments the segment space and compacts the table rows but postpones the resetting…

New Features for Storage

Question

You want to reduce fragmentation and reclaim unused space for the sales table but not its dependent objects. During this operation, you want to ensure the following: i.Long-running queries are not affected. ii.No extra space is used. iii.Data manipulation language (DML) operations on the table succeed at all times throughout theprocess. iv.Unused space is reclaimed both above and below the high water mark. Which alter TABLE option would you recommend?

Options

  • ADEALLOCATE UNUSED
  • BSHRINK SPACE CASCADE
  • CSHRINK SPACE COMPACT
  • DROW STORE COMPRESSBASIC

How the community answered

(34 responses)
  • A
    15% (5)
  • B
    6% (2)
  • C
    76% (26)
  • D
    3% (1)

Explanation

https://docs.oracle.com/cd/B28359_01/server.111/b28310/schema003.htm The COMPACT clause lets you divide the shrink segment operation into two phases. When you specify COMPACT, Oracle Database defragments the segment space and compacts the table rows but postpones the resetting of the high water mark and the deallocation of the space until a future time. This option is useful if you have long-running queries that might span the operation and attempt to read from blocks that have been reclaimed. The defragmentation and compaction results are saved to disk, so the data movement does not have to be redone during the second phase. You can reissue the SHRINK SPACE clause without the COMPACT clause during off- peak hours to complete the second phase.

Topics

#table shrink#high water mark#SHRINK SPACE COMPACT#space reclamation

Community Discussion

No community discussion yet for this question.

Full 1Z0-067 Practice