2026-03-12 20:23:15

This commit is contained in:
root committed 2026-03-12 21:23:47 +01:00
1 parent eab4b36eca
commit 93039b8489
3332 files changed
+699614

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/monitoring/index_usage.sql
-- Author : Tim Hall
-- Description : Shows the usage for the specified table indexes.
-- Call Syntax : @index_usage (table-name) (index-name or all)
-- Last Modified: 04/02/2005
-- -----------------------------------------------------------------------------------
SET VERIFY OFF
SET LINESIZE 200
SELECT table_name,
index_name,
used,
start_monitoring,
end_monitoring
FROM v$object_usage
WHERE table_name = UPPER('&1')
AND index_name = DECODE(UPPER('&2'), 'ALL', index_name, UPPER('&2'));