Note
This view is introduced since OceanBase Database V3.1.2.
Purpose
The oceanbase.DBA_RSRC_PLANS view displays all resource management plans defined in the system.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| PLAN_ID | decimal(10,0) | NO | The ID of the resource plan. |
| PLAN | varchar(128) | NO | The name of the resource plan. |
| NUM_PLAN_DIRECTIVES | decimal(10,0) | NO | The number of directives defined in the current resource plan. It is used only for compatibility and the value is fixed to NULL. |
| CPU_METHOD | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| MGMT_METHOD | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| ACTIVE_SESS_POOL_MTH | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| PARALLEL_DEGREE_LIMIT_MTH | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| QUEUING_MTH | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| SUB_PLAN | varchar(3) | NO | It is used only for compatibility and the value is fixed to NULL. |
| COMMENTS | varchar(2000) | YES | The comments on the resource plan. |
| STATUS | varchar(128) | NO | It is used only for compatibility and the value is fixed to NULL. |
| MANDATORY | varchar(3) | NO | It is used only for compatibility and the value is fixed to NULL. |
Sample query
In the sys tenant, you can query all resource management plans defined by the system.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_RSRC_PLANS;
Here is the query result:
+---------+---------+---------------------+------------+-------------+----------------------+---------------------------+-------------+----------+----------+--------+-----------+
| PLAN_ID | PLAN | NUM_PLAN_DIRECTIVES | CPU_METHOD | MGMT_METHOD | ACTIVE_SESS_POOL_MTH | PARALLEL_DEGREE_LIMIT_MTH | QUEUING_MTH | SUB_PLAN | COMMENTS | STATUS | MANDATORY |
+---------+---------+---------------------+------------+-------------+----------------------+---------------------------+-------------+----------+----------+--------+-----------+
| NULL | daytime | NULL | NULL | NULL | NULL | NULL | NULL | NULL | TPFirst | NULL | NULL |
+---------+---------+---------------------+------------+-------------+----------------------+---------------------------+-------------+----------+----------+--------+-----------+
1 row in set