My Oracle Support Banner

How to confirm if an ALTER INDEX REBUILD ONLINE will Alter the Index Statistics: (Doc ID 785786.1)

Last updated on FEBRUARY 24, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.7 [Release 9.2 to 11.1]
Information in this document applies to any platform.
Oracle Server Enterprise Edition - Version: 9.2.0.1 to 11.1.0.7
 

NOTE: In the document content below, the user information and data used represents fictitious data .Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

Goal

 

How to confirm if an ONLINE INDEX REBUILD will Alter the Index Statistics:

  1. Create test table
  2. Create index
  3. Gather INDEX statistics using DBMS_STATS.GATHER_INDEX_STATS
  4. Confirm LAST_ANALYZED date on the index using USER_INDEXES
  5. Confirm Statistics by populating Stats Table using DBMS_STATS.EXPORT_INDEX_STATS
  6. Alter data and Index data by adding more row data
  7. Confirm new data does not alter Index Stats using USER_INDEXES
  8. ALTER INDEX ... REBUILD ONLINE
  9. Confirm new date for LAST_ANALYZED on the index using USER_INDEXES
  10. Confirm new INDEX statistics using DBMS_STATS.GATHER_INDEX_STATS  

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.