QuestionQ46

VerifiedManage Database Performance

Refer to the exhibit that shows the steps for creating a Database Resource Manager plan.

SQL>executedbms_resource_manager.create_pendingarea();  
PL/SQLproceduresuccessfully completed.  
3QL>execdbms_resource_manager,create_consumergroup (consumer_group=>OLTP,,comment=>,onlineuser)  
PL/SQLproceduresuccessfullycompleted.  
SQL>execdbras_resource_raanager.create_plan(plan=>PRIU3ER3',comment=>'dssprio);  
  
SQL>exec -  
Dbms_resource_manager.create_plan_directive(plan=>PRIU3ER3,group_or_subplan=>'OLTP,comraent=>'onlinegrp'CPU_Pl=>60);  
PL/3QLproceduresuccessfullycompleted.  

After executing the steps in the exhibit, you run this procedure and it returns an error:

SQL> EXECUTEdbms_resource_manager. validate_pending_area ();  

What causes the error?

Explanation

Oracle Database Resource Manager requires a resource-plan directive for OTHER_GROUPS somewhere in every active plan schema. This ensures that sessions not assigned to a listed consumer group still receive a resource allocation. The plan contains only an OLTP directive, so pending-area validation fails.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!