Deleting a resource management plan config means removing the CPU resource limits for the resource group in the resource management plan. You can use the DELETE_PLAN_DIRECTIVE subprogram in the DBMS_RESOURCE_MANAGER package to accomplish this.
Prerequisites
Before deleting a resource management plan config, make sure that the corresponding resource management plan and resource group exist. Otherwise, the deletion may fail.
Procedure
Log in to an Oracle tenant of the cluster using the administrator.
Call the
DELETE_PLAN_DIRECTIVEsubprogram in theDBMS_RESOURCE_MANAGERpackage to delete the resource management plan config.obclient [SYS]> delimiter // obclient [SYS]> BEGIN DBMS_RESOURCE_MANAGER.DELETE_PLAN_DIRECTIVE( PLAN => 'plan_a', GROUP_OR_SUBPLAN => 'small_group' ); END ;// obclient [SYS]> delimiter ;Here,
PLANspecifies the resource management plan, andGROUP_OR_SUBPLANspecifies the bound resource group.In this example, after the CPU resource limits for the
small_groupresource group are removed, SQL statements that were previously using the resources in thesmall_groupresource group will now use the resources in the default resource groupOTHER_GROUP.Query the
DBA_RSRC_PLAN_DIRECTIVESview to verify whether the resource management plan config has been deleted.obclient [SYS]> SELECT PLAN, GROUP_OR_SUBPLAN FROM DBA_RSRC_PLAN_DIRECTIVES; +--------+------------------+ | PLAN | GROUP_OR_SUBPLAN | +--------+------------------+ | PLAN_B | GROUP1 | +--------+------------------+ 1 rows in setFor more information about the
DBA_RSRC_PLAN_DIRECTIVESview, see DBA_RSRC_PLAN_DIRECTIVES.