June 5, 2016

Analyze index validate structure “online” does not populate “index_stats”

Filed under: Uncategorized — srivenu @ 6:35 pm

Using “online” clause on analyze index … validate structure does not populate index_stats. It hasn’t changed even in the latest version of Oracle Database 12c. If you don’t use the online clause, the session running analyze index locks up other sessions performing dml’s on the index on a TM enqueue.

To reduce the locking and get the index_stats, i use the analyze command twice, first with the online clause to fill the cache with the index blocks immediately followed by the same analyze command without the online clause.

ex –

analyze index ix validate structure online;

immediately followed by

analyze index ix validate structure;


Create a free website or blog at