Skip to content
Advertisement

How to debug the issue of index monitoring wherein index entry is not found in table v$object_usage?

I am facing an issue while enabling monitoring on indexes , I executed following command to enable index monitoring and then checked the entry in v$object_usage view but couldn’t find any record in it :

O/p is Index REPORT.DY_SUM_DLY_SCH_TRN_DIV altered.

Checking the entry in v$object_usage :

In output no records are coming .

How to debug this issue ?

Advertisement

Answer

If you are not seeing records in the v$object_usage is either for one of the two following reasons:

  • The index is not used by any statement
  • You are not querying the view with the owner of the index.

Normally, it is the second cause the reason.

The V$OBJECT_USAGE view does not contain an OWNER column so you must to log on as the object owner to see the usage data. From Oracle 12.1 onward the V$OBJECT_USAGE view has been deprecated in favour of the {DBA|USER]}_OBJECT_USAGE views. The structure is the same, but the DBA_OBJECT_USAGE view includes an OWNER column.

Logged as SYS

Logged as Owner

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement