Note
This view was introduced in OceanBase Database V3.1.2.
Purpose
The DBA_RSRC_PLANS view displays all resource plans defined in the system.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| PLAN_ID | NUMBER | NO | The ID of the resource plan. |
| PLAN | VARCHAR2(128) | NO | The name of the resource plan. |
| NUM_PLAN_DIRECTIVES | NUMBER | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| CPU_METHOD | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| MGMT_METHOD | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| ACTIVE_SESS_POOL_MTH | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| PARALLEL_DEGREE_LIMIT_MTH | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| QUEUING_MTH | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| SUB_PLAN | VARCHAR2(3) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| COMMENTS | VARCHAR2(2000) | YES | The comments on the resource plan. |
| STATUS | VARCHAR2(128) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
| MANDATORY | VARCHAR2(3) | NO | This column is used only for compatibility, and its value is fixed to NULL. |
Sample query
A user tenant queries all resource management plans defined in the system.
obclient [SYS]> SELECT * FROM SYS.DBA_RSRC_PLANS;
The query result is as follows:
+---------+---------+---------------------+------------+-------------+----------------------+---------------------------+-------------+----------+----------+--------+-----------+
| 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