Oracle Index Monitoring Status Report

This script displays the monitoring status of indexes for a specified table. It queries the V$OBJECT_USAGE view to show whether indexes are being monitored and used, helping DBAs identify unused indexes and make optimization decisions.

oraclesqlindexing-statisticsv1.0.0
0 stars0 downloads15 views0 comments
By OracleDba • Created

Code

(15 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- -----------------------------------------------------------------------------------
-- File Name    : https://oracle-base.com/dba/monitoring/index_monitoring_status.sql
-- Author       : Tim Hall
-- Description  : Shows the monitoring status for the specified table indexes.
-- Call Syntax  : @index_monitoring_status (table-name) (index-name or all)
-- Last Modified: 04/02/2005
-- -----------------------------------------------------------------------------------
SET VERIFY OFF

SELECT table_name,
       index_name,
       monitoring
FROM   v$object_usage
WHERE  table_name = UPPER('&1')
AND    index_name = DECODE(UPPER('&2'), 'ALL', index_name, UPPER('&2'));

General Comments(0)

Tip: Click on a line number in the code to add a line-specific comment

No general comments yet. Be the first to comment!