GV$OB_SQL_PLAN

2024-06-28 05:30:30  Updated

Purpose

The GV$OB_SQL_PLAN view displays the plan information collected by executing the EXPLAIN PLAN statement.

Note

This view is introduced since OceanBase Database V4.2.0.

Columns

Column Type Nullable? Description
SVR_IP varchar(46) NO The IP address of the OBServer node where the replica resides.
SVR_PORT bigint(20) NO The port number of the OBServer node where the replica resides.
PLAN_ID bigint(20) The ID of the execution plan.
SQL_ID varchar(32) NO The query ID.
DB_ID bigint(20) NO The schema ID of the query.
PLAN_HASH bigint(20) unsigned NO The hash value of the plan.
GMT_CREATE timestamp(6) NO The time when the record was generated.
OPERATOR varchar(255) NO The name of the operator, such as TABLE SCAN and SORT.
OBJECT_NODE varchar(40) NO The object node. The value is the name of the DBLink if the current operator is related to DBLinks.
OBJECT_ID bigint(20) NO The ID of the scanned object, such as the ID of a physical table scanned by the TABLE SCAN operator.
OBJECT_OWNER varchar(128) NO The user of the scanned object.
OBJECT_NAME varchar(128) NO The name of the scanned object, such as the name of a physical table scanned by the TABLE SCAN operator.
OBJECT_ALIAS varchar(261) NO The alias of the scanned object, such as the alias of a physical table scanned by the TABLE SCAN operator.
OBJECT_TYPE varchar(20) NO The type of the scanned object, such as SYNONYM, DBLINK, and BASIC TABLE.
OPTIMIZER varchar(4000) NO The index information, such as the physical row, logical row, number of rows returned for a table access by index primary key, type of the statistical information, and version number of the statistical information.
ID bigint(20) NO The ID of the logical operator.
PARENT_ID bigint(20) NO The ID of the parent operator of the logical operator.
DEPTH bigint(20) NO The depth of the logical operator in the current plan, or the layer of the logical operator in the binary plan tree.
POSITION bigint(20) NO The position of the current logical operator in a series of child operators of its parent operator.
COST bigint(20) NO The cost estimated by the optimizer.
REAL_COST bigint(20) NO The actual cost in executing the plan for the first time. This information is returned in the execution feedback.
CARDINALITY bigint(20) NO The estimated number of rows returned for the current operator. This value is calculated by the optimizer.
REAL_CARDINALITY bigint(20) NO The actual number of rows returned for the current operator during the first execution of the plan. This information is returned in the execution feedback.
IO_COST bigint(20) NO The actual I/O cost of the current operator during the first execution of the plan. This information is returned in execution feedback.
CPU_COST bigint(20) NO The actual CPU cost of the current operator during the first execution of the plan. This information is returned in execution feedback.
BYTES bigint(20) NO The estimated data width of the current operator. This value is calculated by the optimizer.
ROWSET bigint(20) NO The vector size of the current operator.
OTHER_TAG varchar(4000) NO The hints that have been used by the current query. This information is stored only in the first line of the plan.
PARTITION_START varchar(4000) NO The partition scanned by the TABLE SCAN operator.
OTHER varchar(4000) NO The optimization information, such as the plan type, parameterized information about the fast parser, plan note, and constraint information about the plan that is hit.
ACCESS_PREDICATES varchar(4000) NO The expression to be accessed by the current operator.
FILTER_PREDICATES varchar(4000) NO The filter condition of the current operator.
STARTUP_PREDICATES varchar(4000) NO The condition for starting the current operator.
PROJECTION varchar(4000) NO The output expression of the current operator.
SPECIAL_PREDICATES varchar(4000) NO The special expression of the current operator, such as Join Condition, GROUP EXPRS, and SORT EXPRS.
QBLOCK_NAME varchar(128) NO The name of the query block where the current operator resides.
REMARKS varchar(4000) NO The modification tracking information about the query block.
OTHER_XML varchar(4000) NO The outline data.

Contact Us