Oracle

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;

Advertisements

1 Comment »

  1. Really good one,Helped me in production !!thanks for information

    Comment by sudhakar — June 24, 2016 @ 9:21 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: