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:
- Create test table
- Create index
- Gather INDEX statistics using DBMS_STATS.GATHER_INDEX_STATS
- Confirm LAST_ANALYZED date on the index using USER_INDEXES
- Confirm Statistics by populating Stats Table using DBMS_STATS.EXPORT_INDEX_STATS
- Alter data and Index data by adding more row data
- Confirm new data does not alter Index Stats using USER_INDEXES
- ALTER INDEX ... REBUILD ONLINE
- Confirm new date for LAST_ANALYZED on the index using USER_INDEXES
- 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 |