10.07.2015 Views

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

Expert Oracle Exadata - Parent Directory

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 7 RESOURCE MANAGEMENTFigure 7-10. IORM resource management by categoryFor this exercise, we’ll create two new categories, APPS_CATEGORY, and BATCH_CATEGORY, and assignthem to the APPS, REPORTS, and MAINTENANCE resource groups we created earlier in the chapter. Thefollowing listing creates our new categories and assigns them to the resource groups. Remember thatyou will need to run these commands on all databases participating in the IORM Category Plan. Forillustration purposes, we’ll keep the number of categories to two. The REPORTS and MAINTENANCE resourcegroups will be assigned to the category BATCH_CATEGORY.BEGINdbms_resource_manager.clear_pending_area();dbms_resource_manager.create_pending_area();-- Create Categories --dbms_resource_manager.create_category(category => 'APPS_CATEGORY',comment => 'Category for Interactive Applications');dbms_resource_manager.create_category(category => 'BATCH_CATEGORY',comment => 'Reports & Maintenance Jobs');-- Assign Consumer Groups to Categories --dbms_resource_manager.update_consumer_group(consumer_group => 'APPS',new_category => 'APPS_CATEGORY');dbms_resource_manager.update_consumer_group(consumer_group => 'REPORTS',new_category => 'BATCH_CATEGORY');dbms_resource_manager.update_consumer_group(consumer_group => 'MAINTENANCE',new_category => 'BATCH_CATEGORY');212

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

Saved successfully!

Ooh no, something went wrong!