QuestionQ85

VerifiedMonitoring and Tuning Database Performance

The SALES table has just undergone a massive DELETE operation.

To improve the performance of queries that use the SALES table, you execute:

ALTER TABLE SHRINK SPACE CASCADE COMPACT;  

Identify the two wait events for which the Number of Waits decreases as a result of this operation.

Choose two
Explanation

Segment compaction packs table rows and dependent index entries into fewer blocks. This reduces multiblock buffer-cache reads (db file scattered read) for full or fast-full scans and single-block buffer-cache reads (db file sequential read) for index-driven access. A direct path read wait count is not necessarily proportional to physical read requests because asynchronous I/O can overlap request submission and processing; temporary direct-path read/write waits instead reflect temporary-space work such as disk sorts or hash operations. Oracle documents that COMPACT defragments and compacts the segment, and that CASCADE performs the operation on dependent objects. Oracle Database SQL Language Reference — ALTER TABLE Oracle Database Performance Tuning Guide — Instance Tuning Using Performance Views

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!