Skip to content

Commit 877fc46

Browse files
Merge pull request #959 from oracle-devrel/uschwinn-patch-10
Uschwinn patch 10
2 parents cb9403c + 4a33970 commit 877fc46

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

data-platform/core-converged-db/resource-manager/scripts/burn.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BEGIN
2222
RETURN 0;
2323
END;
2424
/
25-
grant execute on burn_cpu to public;
25+
grant execute on redef_user.burn_cpu to public;
2626

2727
-- Use burns.sql to run the script
28-
-- SELECT burn_cpu (5) FROM dual;
28+
-- SELECT redef_burn.burn_cpu (5) FROM dual;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Run the script to burn CPU
2-
-- First execute burn.sql
1+
-- Connect to REDEF_USER and run the script to burn CPU
2+
-- First execute burn.sql to create the function and the required user
33

44
SELECT redef_user.burn_cpu (5) FROM dual;

data-platform/core-converged-db/resource-manager/scripts/consumer.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ END;
2828

2929
-- change priority of consumer groups if required
3030
begin
31+
dbms_resource_manager.clear_pending_area();
32+
dbms_resource_manager.create_pending_area();
33+
3134
dbms_resource_manager.set_consumer_group_mapping_pri(
3235
explicit => 1,
3336
service_module_action => 2,
@@ -40,6 +43,9 @@ begin
4043
client_os_user => 9,
4144
client_machine => 10,
4245
client_id => 11);
46+
47+
dbms_resource_manager.clear_pending_area();
48+
dbms_resource_manager.create_pending_area();
4349
end;
4450
/
4551

0 commit comments

Comments
 (0)