2026-03-12 20:23:15
This commit is contained in:
12
timhall/resource_manager/active_plan.sql
Normal file
12
timhall/resource_manager/active_plan.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/resource_manager/active_plan.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Lists the currently active resource plan if one is set.
|
||||
-- Call Syntax : @active_plan
|
||||
-- Requirements : Access to the v$ views.
|
||||
-- Last Modified: 12/11/2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SELECT name,
|
||||
is_top_plan
|
||||
FROM v$rsrc_plan
|
||||
ORDER BY name;
|
||||
12
timhall/resource_manager/consumer_group_usage.sql
Normal file
12
timhall/resource_manager/consumer_group_usage.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/resource_manager/consumer_group_usage.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Lists usage information of consumer groups.
|
||||
-- Call Syntax : @consumer_group_usage
|
||||
-- Requirements : Access to the v$ views.
|
||||
-- Last Modified: 12/11/2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SELECT name,
|
||||
consumed_cpu_time
|
||||
FROM v$rsrc_consumer_group
|
||||
ORDER BY name;
|
||||
19
timhall/resource_manager/consumer_groups.sql
Normal file
19
timhall/resource_manager/consumer_groups.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/resource_manager/consumer_groups.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Lists all consumer groups.
|
||||
-- Call Syntax : @consumer_groups
|
||||
-- Requirements : Access to the DBA views.
|
||||
-- Last Modified: 12/11/2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SET LINESIZE 200
|
||||
SET VERIFY OFF
|
||||
|
||||
COLUMN status FORMAT A10
|
||||
COLUMN comments FORMAT A50
|
||||
|
||||
SELECT consumer_group,
|
||||
status,
|
||||
comments
|
||||
FROM dba_rsrc_consumer_groups
|
||||
ORDER BY consumer_group;
|
||||
20
timhall/resource_manager/plan_directives.sql
Normal file
20
timhall/resource_manager/plan_directives.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/resource_manager/plan_directives.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Lists all plan directives.
|
||||
-- Call Syntax : @plan_directives (plan-name or all)
|
||||
-- Requirements : Access to the DBA views.
|
||||
-- Last Modified: 12/11/2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SET LINESIZE 200
|
||||
SET VERIFY OFF
|
||||
|
||||
SELECT plan,
|
||||
group_or_subplan,
|
||||
cpu_p1,
|
||||
cpu_p2,
|
||||
cpu_p3,
|
||||
cpu_p4
|
||||
FROM dba_rsrc_plan_directives
|
||||
WHERE plan = DECODE(UPPER('&1'), 'ALL', plan, UPPER('&1'))
|
||||
ORDER BY plan, cpu_p1 DESC, cpu_p2 DESC, cpu_p3 DESC;
|
||||
19
timhall/resource_manager/resource_plans.sql
Normal file
19
timhall/resource_manager/resource_plans.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/resource_manager/resource_plans.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Lists all resource plans.
|
||||
-- Call Syntax : @resource_plans
|
||||
-- Requirements : Access to the DBA views.
|
||||
-- Last Modified: 12/11/2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SET LINESIZE 200
|
||||
SET VERIFY OFF
|
||||
|
||||
COLUMN status FORMAT A10
|
||||
COLUMN comments FORMAT A50
|
||||
|
||||
SELECT plan,
|
||||
status,
|
||||
comments
|
||||
FROM dba_rsrc_plans
|
||||
ORDER BY plan;
|
||||
Reference in New Issue
Block a user