Oracle Error ORA-29864: analyzing domain indexes marked LOADING/FAILED not supported

Oracle Error Message

ORA-29864: analyzing domain indexes marked LOADING/FAILED not supported

Reason for the Error

Tried to analyze a domain index which was marked as LOADING or FAILED.

Solution

If the index was marked LOADING, wait till it is marked valid before retrying the analyze. If index was marked FAILED, drop it OR rebuild it and retry the analyze.