The UPDATE_PLAN_DIRECTIVE procedure is used to update the resource plan directive.
Syntax
DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE (
PLAN VARCHAR(65535),
GROUP_OR_SUBPLAN VARCHAR(65535),
NEW_COMMENT VARCHAR(65535) DEFAULT NULL,
NEW_MGMT_P1 INT DEFAULT NULL,
NEW_UTILIZATION_LIMIT INT DEFAULT NULL,
NEW_MIN_IOPS INT DEFAULT NULL,
NEW_MAX_IOPS INT DEFAULT NULL,
NEW_WEIGHT_IOPS INT DEFAULT NULL,
NEW_MAX_NET_BANDWIDTH INT DEFAULT NULL,
NEW_NET_BANDWIDTH_WEIGHT INT DEFAULT NULL);
Parameters
| Parameter | Description |
|---|---|
| PLAN | The name of the resource plan. |
| GROUP_OR_SUBPLAN | The name of the resource group or subplan. |
| NEW_COMMENT | The comment for the plan directive. |
| NEW_MGMT_P1 | The maximum CPU utilization ratio when the system is under heavy load. |
| NEW_UTILIZATION_LIMIT | The upper limit of CPU resource utilization. The value of this parameter ranges from 0 to 100. "100" indicates that the tenant can use all CPU resources. If the value is "20", the tenant can use up to 20% of the CPU resources. |
| NEW_MIN_IOPS | The reserved IOPS resources for the resource group when I/O contention occurs, with a total not exceeding 100. |
| NEW_MAX_IOPS | The maximum IOPS resources that the resource group can use, with a total that can exceed 100. |
| NEW_WEIGHT_IOPS | The weight value for IOPS, with a total that can exceed 100. |
| NEW_MAX_NET_BANDWIDTH | The maximum network bandwidth that the resource group can use, with a total that can exceed 100. |
| NEW_NET_BANDWIDTH_WEIGHT | The weight value for network bandwidth, with a total that can exceed 100. |
Considerations
If you do not specify any parameters for the UPDATE_PLAN_DIRECTIVE procedure, the parameter values remain unchanged in the data dictionary.
To clear (set to zero or invalid) any numeric parameter in the resource plan directive, use the UPDATE_PLAN_DIRECTIVE procedure to set it to -1.
Examples
Update the comment for the resource plan directive of the
interactive_groupresource group bound to theDAYresource plan.obclient> CALL DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE('DAY','group1','Intermediate-level group');Update the resource plan directive for the CPU, IOPS, and network bandwidth resources of the
interactive_groupresource group bound to thedaytimeresource plan.
obclient [test]> CALL DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE(
PLAN => 'daytime',
GROUP_OR_SUBPLAN => 'interactive_group',
NEW_COMMENT => 'new',
NEW_MGMT_P1 => 40,
NEW_UTILIZATION_LIMIT => 60,
NEW_MIN_IOPS => 40,
NEW_MAX_IOPS => 80,
NEW_WEIGHT_IOPS => 70,
NEW_MAX_NET_BANDWIDTH => 30,
NEW_NET_BANDWIDTH_WEIGHT => 30);
References
For more information about how to update the resource management plan content, see Update the resource management plan content.