The DBMS_OB_LIMIT_CALCULATOR package obtains the current resource usage information of the cluster. You can plan scaling, node replacement, and standby tenant creation based on the obtained information.
Notice
You can use this package only in the sys tenant.
Subprograms
The following table describes the DBMS_OB_LIMIT_CALCULATOR subprograms supported by the current OceanBase Database version.
| Subprogram | Description |
|---|---|
| CALCULATE_MIN_PHY_RES_NEEDED_BY_UNIT | Calculates the minimum physical resources required on a specific node in the specified tenant. |
| CALCULATE_MIN_PHY_RES_NEEDED_BY_LOGIC_RES | Calculates the amount of physical resources required to accommodate the specified types and quantities of logical resources in a tenant. |
| CALCULATE_MIN_PHY_RES_NEEDED_BY_STANDBY_TENANT | Calculates the amount of physical resources required for each of the specified units in the standby tenant of the specified primary tenant. |