Note
This view is available starting with V3.1.2.
Purpose
This view displays the resource management plan of the current active tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| ID | decimal(10,0) | NO | The ID of the resource plan. This value is globally unique. |
| 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 plan.FALSE: the current resource plan is a sub-plan of the top-level plan. In OceanBase Database, this value is always TRUE. |
| CPU_MANAGED | varchar(3) | NO | Indicates whether the CPU usage is managed by a parameter: ON: the CPU usage is managed.OFF: the CPU usage is not managed. In OceanBase Database, this value is always ON. |
| INSTANCE_CAGING | varchar(3) | NO | This parameter is for compatibility. Its value is always NULL in OceanBase Database. |
| PARALLEL_SERVERS_ACTIVE | decimal(10,0) | NO | This parameter is for compatibility. Its value is always NULL in OceanBase Database. |
| PARALLEL_SERVERS_TOTAL | decimal(10,0) | NO | This parameter is for compatibility. Its value is always NULL in OceanBase Database. |
| PARALLEL_EXECUTION_MANAGED | varchar(32) | NO | This parameter is for compatibility. Its value is always NULL in OceanBase Database. |
Sample query
Query the resource management plan of the current active 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
