QuestionQ96

VerifiedMonitoring and Tuning Database Performance

Database performance has recently degraded.

INDEX RANGE SCAN operations on index IX_SALES_TIME_ID are slower because buffer gets on SALES table blocks have increased.

Examine these attributes, displayed by querying DBA_TABLES:

Question Image

Now examine these attributes, displayed by querying DBA_INDEXES:

Question Image

Which action will reduce the excessive buffer gets?

Explanation

The very high clustering factor indicates that rows reached by adjacent IX_SALES_TIME_ID entries are physically scattered among many SALES table blocks. A large index range scan therefore performs many table-block reads. Re-creating SALES in IX_SALES_TIME_ID order physically clusters the rows by that key, reducing the clustering factor and the table-block buffer gets. Oracle documents that a high clustering factor causes relatively high I/O during a large index range scan, whereas a value near the table block count indicates rows are physically ordered by the index key.

Learn more

Community Discussion

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