Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
The V$OB_PLAN_CACHE_PLAN_EXPLAIN view displays the physical execution plans that are cached in the plan cache on the current OBServer node.
Note
This view supports only GET operations. To query information in this view, you must specify the TENANT_ID and PLAN_ID fields.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| SVR_IP | varchar(46) | NO | The IP address of the OBServer node. |
| SVR_PORT | bigint(20) | NO | The port number of the OBServer node. |
| PLAN_ID | bigint(20) | NO | The ID of the plan. |
| PLAN_DEPTH | bigint(20) | NO | The display depth of the operator. |
| PLAN_LINE_ID | bigint(20) | NO | The ID of the operator. |
| OPERATOR | varchar(128) | NO | The name of the operator. |
| NAME | varchar(256) | NO | The name of the table. |
| ROWS | bigint(20) | NO | The estimated number of rows in the result. |
| COST | bigint(20) | NO | The estimated cost. |
| PROPERTY | varchar(4096) | NO | The information about the corresponding operator. |
Sample query
obclient [oceanbase]> SELECT * FROM oceanbase.V$OB_PLAN_CACHE_PLAN_EXPLAIN limit 2;