Note
This view is available starting with V3.1.2.
Purpose
This view displays the resource management plan of the currently active tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| ID | decimal(10,0) | NO | The unique ID of the resource plan. |
| NAME | varchar(128) | NO | The name of the resource plan. |
| IS_TOP_PLAN | varchar(5) | NO | Indicates whether the current resource plan is the top-level plan: TRUE: the current resource plan is the top-level planFALSE: the current resource plan is a sub-plan of the top-level plan In OceanBase Database, this value is fixed to TRUE. |
| CPU_MANAGED | varchar(3) | NO | Indicates whether the CPU usage is managed by a parameter for the current resource plan: ON: managedOFF: not managed In OceanBase Database, this value is fixed to ON. |
| INSTANCE_CAGING | varchar(3) | NO | Reserved for compatibility. This value is fixed to NULL. |
| PARALLEL_SERVERS_ACTIVE | decimal(10,0) | NO | Reserved for compatibility. This value is fixed to NULL. |
| PARALLEL_SERVERS_TOTAL | decimal(10,0) | NO | Reserved for compatibility. This value is fixed to NULL. |
| PARALLEL_EXECUTION_MANAGED | varchar(32) | NO | Reserved for compatibility. This value is fixed to NULL. |
Sample query
Query the resource management plan of the currently active tenant as the sys tenant.
obclient [oceanbase]> SELECT * FROM oceanbase.V$RSRC_PLAN;
The query result is as follows:
+------+---------+-------------+-------------+-----------------+-------------------------+------------------------+----------------------------+
| ID | NAME | IS_TOP_PLAN | CPU_MANAGED | INSTANCE_CAGING | PARALLEL_SERVERS_ACTIVE | PARALLEL_SERVERS_TOTAL | PARALLEL_EXECUTION_MANAGED |
+------+---------+-------------+-------------+-----------------+-------------------------+------------------------+----------------------------+
| NULL | daytime | TRUE | ON | NULL | NULL | NULL | NULL |
+------+---------+-------------+-------------+-----------------+-------------------------+------------------------+----------------------------+
1 row in set
