You can call the UPDATE_PLAN_DIRECTIVE subprogram in the DBMS_RESOURCE_MANAGER package to update a resource management plan config based on business needs. You can update the resource management plan, bound resource group, CPU resources available for the resource group, and limit on the CPU resources available for the resource group.
Prerequisites
You have created a new resource management plan or resource group if you want to change the original resource management plan or resource group. For more information, see Configure user-level resource isolation.
Procedure
Log on to an Oracle tenant in the cluster as the administrator of the tenant.
Call the
UPDATE_PLAN_DIRECTIVEsubprogram in theDBMS_RESOURCE_MANAGERpackage to update the resource management plan config.obclient [SYS]> delimiter // obclient [SYS]> BEGIN DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE( PLAN => 'plan_a', GROUP_OR_SUBPLAN => 'big_group', NEW_COMMENT => 'new' NEW_MGMT_P1 => 40, NEW_UTILIZATION_LIMIT => 60, NEW_MIN_IOPS => 20, NEW_MAX_IOPS => 100, NEW_WEIGHT_IOPS => 10); END ;// obclient [SYS]> delimiter ;The parameters are described as follows:
PLAN: the name of the new resource management plan.GROUP_OR_SUBPLAN: the name of the new resource group.NEW_COMMENT: the new comments on the resource management plan config.NEW_MGMT_P1: the new percentage of CPU resources available for the resource group when the system runs at full load.NEW_UTILIZATION_LIMIT: the new upper limit on the CPU resources available for the resource group.NEW_MIN_IOPS: the new IOPS resources reserved for the resource group in the case of I/O resource contention. The sum ofNEW_MIN_IOPSvalues of all resource groups cannot exceed 100.NEW_MAX_IOPS: the new maximum IOPS resources available for the resource group. The sum ofNEW_MAX_IOPSvalues of all resource groups can exceed 100.NEW_WEIGHT_IOPS: the new weight for IOPS resources. The sum ofNEW_WEIGHT_IOPSvalues of all resource groups can exceed 100.
Query the
DBA_RSRC_PLAN_DIRECTIVESorDBA_OB_RSRC_IO_DIRECTIVESview to verify whether the resource management plan config is updated.obclient [SYS]> SELECT PLAN, GROUP_OR_SUBPLAN, MGMT_P1, UTILIZATION_LIMIT FROM DBA_RSRC_PLAN_DIRECTIVES; +--------+------------------+---------+-------------------+ | PLAN | GROUP_OR_SUBPLAN | MGMT_P1 | UTILIZATION_LIMIT | +--------+------------------+---------+-------------------+ | PLAN_A | BIG_GROUP | 40 | 60 | | PLAN_A | SMALL_GROUP | 40 | 70 | +--------+------------------+---------+-------------------+ 2 rows in set obclient [SYS]> SELECT * FROM DBA_OB_RSRC_IO_DIRECTIVES;For more information about the
DBA_RSRC_PLAN_DIRECTIVESview, see DBA_RSRC_PLAN_DIRECTIVES.For more information about the
DBA_OB_RSRC_IO_DIRECTIVESview, see DBA_OB_RSRC_IO_DIRECTIVES.