Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Utilisation ratio for an index
stevedhoward_at_gmail.com wrote:
> One odd item is that it will only show up as used if issued by the owner
> of the index.
Define "odd". :->
Considering the definition of v$object_usage it would be odd if it wasn't working this way:
select io.name, t.name,
decode(bitand(i.flags, 65536), 0, 'NO', 'YES'), decode(bitand(ou.flags, 1), 0, 'NO', 'YES'), ou.start_monitoring, ou.end_monitoring
where io.owner# = userenv('SCHEMAID') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Interesting article on the topic of index usage monitoring: http://www.jlcomp.demon.co.uk/index_usage.html
-- Michal KuratczykReceived on Fri Apr 07 2006 - 10:01:34 CDT