Skip to content

Commit 4a76601

Browse files
authored
Create removeplan.sql
Remove a resource plan.
1 parent 3a6ee26 commit 4a76601

File tree

1 file changed

+14
-0
lines changed
  • data-platform/core-converged-db/resource-manager/scripts

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- Remove a resource plan
2+
3+
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = '';
4+
5+
BEGIN
6+
DBMS_RESOURCE_MANAGER.clear_pending_area;
7+
DBMS_RESOURCE_MANAGER.create_pending_area;
8+
9+
DBMS_RESOURCE_MANAGER.delete_plan_cascade(plan => '&plan_name');
10+
11+
DBMS_RESOURCE_MANAGER.validate_pending_area;
12+
DBMS_RESOURCE_MANAGER.submit_pending_area;
13+
END;
14+
/

0 commit comments

Comments
 (0)