The UPDATE_PLAN_DIRECTIVE procedure is used to update a 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 under system full load. |
| NEW_UTILIZATION_LIMIT | The upper limit of CPU resource utilization. The value range is [0, 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, which can exceed 100. |
| NEW_WEIGHT_IOPS | The weight value of IOPS, which can exceed 100. |
| NEW_MAX_NET_BANDWIDTH | The maximum network bandwidth that the resource group can use, which can exceed 100. |
| NEW_NET_BANDWIDTH_WEIGHT | The weight value of network bandwidth, which can exceed 100. |
Considerations
If no parameters are specified 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 a resource plan directive, use the UPDATE_PLAN_DIRECTIVE procedure to set it to -1.
Examples
Update the comment for the plan directive of the resource group
interactive_groupthat is bound to the resource planDAY.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 resource group
interactive_groupthat is bound to the resource plandaytime.
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 a resource plan directive, see Update a resource management plan directive.