monitoring_on.sql
来自「oracle dba 常用的管理脚本, 覆盖日常的系统管理.」· SQL 代码 · 共 24 行
SQL
24 行
--* File Name : Monitoring_On.sql
--* Author : DR Timothy S Hall
--* Description : Sets monitoring on 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 || '" MONITORING;'
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 + =
减小字号Ctrl + -
显示快捷键?