The DBMS_BALANCE package provides methods for partition balancing.
Privilege requirements
The user tenant must have the privilege to execute PL/SQL statements. Otherwise, an error OB_OP_NOT_ALLOW will be returned when the sys tenant calls the DBMS_BALANCE package.
Subprograms
The following table describes the subprograms of the DBMS_BALANCE package.
| Subprogram | Description |
|---|---|
| TRIGGER_PARTITION_BALANCE | Triggers manual partition balancing. |
| SET_BALANCE_WEIGHT | Sets the partition weight manually. |
| CLEAR_BALANCE_WEIGHT | Clears the partition weight manually. |
| SET_TABLEGROUP_BALANCE_WEIGHT | Sets the load balancing weight for a SHARDING NONE tablegroup. |
| CLEAR_TABLEGROUP_BALANCE_WEIGHT | Clears the load balancing weight for a SHARDING NONE tablegroup. |
