|
- SELECT name FROM v$rsrc_plan
- WHERE is_top_plan = 'TRUE' AND cpu_managed = 'ON';
- SELECT value FROM v$parameter
- WHERE name = 'cpu_count' AND (isdefault = 'FALSE' OR ismodified != 'FALSE');
- select * from v$rsrc_plan ;
- select * from V$RSRC_CONSUMER_GROUP;
- select p.max_utilization_limit from dba_rsrc_plan_directives p where p.plan='PLAN4';
- begin
- dbms_resource_manager.create_simple_plan(
- SIMPLE_PLAN=>'PLAN4',
- CONSUMER_GROUP1=>'GROUP1',
- GROUP1_CPU=>70,
- CONSUMER_GROUP2=>'GROUP2',
- GROUP2_CPU=>30,
- GROUP1_PERCENT=>80,
- GROUP2_PERCENT=>60);
- end;
-
- begin
- dbms_resource_manager.create_pending_area;
- dbms_resource_manager.update_plan_directive(plan => 'PLAN4',
- group_or_subplan => 'GROUP1',new_max_utilization_limit => 80);
- dbms_resource_manager.submit_pending_area;
-
- end;
-
- ---
-
- select s.USERNAME,s.RESOURCE_CONSUMER_GROUP
- from v_$session s where s.TERMINAL='pts/7';
-
- select * from dba_rsrc_plan_directives p
- where p.plan='PLAN1' and p.group_or_subplan='GROUP2';
-
-
-
复制代码
|
|