10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 7 RESOURCE MANAGEMENTcomment=> 'High priority users/applications',mgmt_p1 => 70);dbms_resource_manager.create_plan_directive(plan=> 'daytime',group_or_subplan => 'REPORTS',comment=> 'Medium priority for daytime reports processing',mgmt_p2 => 50);dbms_resource_manager.create_plan_directive(plan=> 'daytime',group_or_subplan => 'MAINTENANCE',comment=> 'Low priority for daytime maintenance',mgmt_p3 => 50);dbms_resource_manager.create_plan_directive(plan=> 'daytime',group_or_subplan => 'OTHER_GROUPS',comment=> 'All other groups not explicitely named in this plan',mgmt_p3 => 50);dbms_resource_manager.validate_pending_area();dbms_resource_manager.submit_pending_area();END;Step 5: Create the Night-Time PlanOrganizations typically have different scheduling priorities for after-hours work. The NIGHTTIME planshifts CPU allocation away from the APPS resource group to the MAINTENANCE group. The next listingcreates the NIGHTTIME plan with priorities that favor maintenance processing over applications andreporting. Even so, 50% of CPU resources are reserved for the APPS and REPORTS resource groups toensure that business applications and reports get sufficient CPU during off-peak hours.BEGINdbms_resource_manager.clear_pending_area();dbms_resource_manager.create_pending_area();dbms_resource_manager.create_plan(plan => 'nighttime',comment => 'Resource plan for normal business hours');dbms_resource_manager.create_plan_directive(plan=> 'nighttime',group_or_subplan => 'MAINTENANCE',comment=> 'Low priority for daytime maintenance',mgmt_p1 => 50);dbms_resource_manager.create_plan_directive(plan=> 'nighttime',group_or_subplan => 'APPS',comment=> 'High priority users/applications',mgmt_p2 => 50);dbms_resource_manager.create_plan_directive(plan=> 'nighttime',group_or_subplan => 'REPORTS',comment=> 'Medium priority for daytime reports processing',mgmt_p2 => 50);dbms_resource_manager.create_plan_directive(188

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!