📄 monitoring_off.sql
字号:
--* File Name : Monitoring_On.sql
--* Author : DR Timothy S Hall
--* Description : Sets monitoring off for the specified tables.
--* Call Syntax : @Monitoring_On (schema) (table-name or all)
--* Last Modified: 21/03/2003
SET PAGESIZE 0
SET FEEDBACK OFF
SET VERIFY OFF
SPOOL temp.sql
SELECT 'ALTER TABLE "' || owner || '"."' || table_name || '" NOMONITORING;'
FROM dba_tables
WHERE owner = UPPER('&1')
AND table_name = DECODE(UPPER('&2'), 'ALL', table_name, UPPER('&2'))
AND monitoring = 'YES';
SPOOL OFF
SET PAGESIZE 18
SET FEEDBACK ON
@temp.sql
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -