The UPDATE_PLAN_DIRECTIVE procedure is used to update resource plan directives.
Syntax
DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE (
PLAN IN VARCHAR2,
GROUP_OR_SUBPLAN IN VARCHAR2,
NEW_COMMENT IN VARCHAR2 DEFAULT NULL,
NEW_MGMT_P1 IN INT DEFAULT NULL,
NEW_UTILIZATION_LIMIT IN INT DEFAULT NULL,
NEW_MIN_IOPS IN INT DEFAULT NULL,
NEW_MAX_IOPS IN INT DEFAULT NULL,
NEW_WEIGHT_IOPS IN 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 | Specifies the maximum CPU utilization relative to the available resources when the system is under heavy 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, with a total that can exceed 100. |
| NEW_WEIGHT_IOPS | The weight value for IOPS, with a total that 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 parameters in the resource plan directive, use the UPDATE_PLAN_DIRECTIVE procedure and set the value to -1.
Examples
obclient> CALL DBMS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE('DAY','group1','Intermediate level group');
Query OK, 0 rows affected