Oracle Table Monitoring Status Checker

Displays the monitoring status for tables in a specified schema. Useful for verifying whether table monitoring is enabled, which is required for optimizer statistics collection and change tracking.

oraclesqlmonitoring-alertsv1.0.0
0 stars0 downloads13 views0 comments
By OracleDba • Created

Code

(13 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- -----------------------------------------------------------------------------------
-- File Name    : https://oracle-base.com/dba/monitoring/monitoring_status.sql
-- Author       : Tim Hall
-- Description  : Shows the monitoring status for the specified tables.
-- Call Syntax  : @monitoring_status (schema) (table-name or all)
-- Last Modified: 21/03/2003
-- -----------------------------------------------------------------------------------
SET VERIFY OFF

SELECT table_name, monitoring 
FROM   dba_tables
WHERE  owner = UPPER('&1')
AND    table_name = DECODE(UPPER('&2'), 'ALL', table_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!