关闭Resmgr:Cpu Quantum
alter system set resource_manager_plan='' scope=both sid='*';
execute dbms_scheduler.set_attribute('SATURDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('SUNDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('MONDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('TUESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('WEDNESDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('THURSDAY_WINDOW','RESOURCE_PLAN','');
execute dbms_scheduler.set_attribute('FRIDAY_WINDOW','RESOURCE_PLAN','');
In this Document
APPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.1 [Release 10.2 to 11.2]Information in this document applies to any platform. *** Checked for relevance on 05-Apr-2016 *** GOALDetailed description with Example
"resource_manager_plan string SCHEDULER[0x22BB]:SYSTEM_PLAN".
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = '' SCOPE=BOTH;
"SCHEDULER[0x22BB]:SYSTEM_PLAN".
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = '' SCOPE=BOTH;
SOLUTION
It is possible that the scheduler windows are altering the resource plan. A scheduler window can have a resource plan associated with it. The default plan associated with default weekend and weeknight windows is the system_plan.
select * from V$RSRC_PLAN_HISTORY
order by SEQUENCE#;
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'FORCE:Desired_Resource_Plan' scope=both;
ALTER SYSTEM SET RESOURCE_MANAGER_PLAN = 'FORCE:' scope=both; --> For Null
execute dbms_scheduler.set_attribute('WEEKNIGHT_WINDOW','RESOURCE_PLAN','');
--And execute dbms_scheduler.set_attribute('WEEKEND_WINDOW','RESOURCE_PLAN','');
select * from v$rsrc_plan;
|