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

Last updated on APRIL 06, 2015

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
Checked for relevance on 31-Oct-2011

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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms