File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
data-platform/core-converged-db/resource-manager/scripts Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 22
22
RETURN 0 ;
23
23
END;
24
24
/
25
- grant execute on burn_cpu to public;
25
+ grant execute on redef_user . burn_cpu to public;
26
26
27
27
-- Use burns.sql to run the script
28
- -- SELECT burn_cpu (5) FROM dual;
28
+ -- SELECT redef_burn. burn_cpu (5) FROM dual;
Original file line number Diff line number Diff line change 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
3
3
4
4
SELECT redef_user .burn_cpu (5 ) FROM dual;
Original file line number Diff line number Diff line change 28
28
29
29
-- change priority of consumer groups if required
30
30
begin
31
+ dbms_resource_manager .clear_pending_area ();
32
+ dbms_resource_manager .create_pending_area ();
33
+
31
34
dbms_resource_manager .set_consumer_group_mapping_pri (
32
35
explicit => 1 ,
33
36
service_module_action => 2 ,
40
43
client_os_user => 9 ,
41
44
client_machine => 10 ,
42
45
client_id => 11 );
46
+
47
+ dbms_resource_manager .clear_pending_area ();
48
+ dbms_resource_manager .create_pending_area ();
43
49
end;
44
50
/
45
51
You can’t perform that action at this time.
0 commit comments