V$SQL_PLAN_MONITOR

2025-12-09 07:09:36  Updated

Feature

This view displays plan-level statistics about slow queries on all OBServer nodes. Each slow query has one row in this view. It also records the trace information of the plan.

Fields

Field Type Nullable Description
CON_ID NUMBER NO The ID of the tenant.
REQUEST_ID NUMBER(38) NO The ID of the request.
KEY NUMBER NO The foreign key. It can be used for join query of virtual tables related to SQL_MONITOR.
STATUS VARCHAR2(19) NO The status of the operator. Valid values:
  • EXECUTING: The operator is being executed.
  • DONE(ERROR): An error occurred during the execution of the operator.
  • DONE(FIRST N ROWS): The execution succeeded.
  • DONE(ALL ROWS): The execution succeeded.
  • DONE: The execution was interrupted.
  • SVR_IP VARCHAR2(46) NO The IP address of the server on which the operator is located.
    SVR_PORT NUMBER(38) NO The port number of the server on which the operator is located.
    TRACE_ID VARCHAR2(64) NO The trace ID of the operator.
    FIRST_REFRESH_TIME DATE NO The time when the monitoring of the operator started.
    LAST_REFRESH_TIME DATE NO The time when the monitoring of the operator ended.
    FIRST_CHANGE_TIME DATE NO The time when the operator delivered the first row of data.
    LAST_CHANGE_TIME DATE NO The time when the operator delivered the last row of data.
    REFRESH_COUNT NUMBER NO The number of times the statistics data was refreshed.
    SID NUMBER NO The ID of the session.
    PROCESS_NAME VARCHAR2(5) NO The ID of the thread that executed the operator.
    SQL_ID VARCHAR2(13) NO The ID of the SQL statement.
    SQL_EXEC_START DATE NO The time when the execution of the SQL statement started.
    SQL_EXEC_ID NUMBER NO The ID of the SQL request execution.
    SQL_PLAN_HASH_VALUE NUMBER NO The hash value of the SQL plan.
    SQL_CHILD_ADDRESS RAW(8) NO The default value of this field is NULL.
    PLAN_PARENT_ID NUMBER NO The ID of the parent operator of the plan.
    PLAN_LINE_ID NUMBER NO The default value of this field is NULL.
    PLAN_OPERATION VARCHAR2(30) NO The name of the operator.
    PLAN_OPTIONS VARCHAR2(30) NO The default value of this field is NULL.
    PLAN_OBJECT_OWNER VARCHAR2(128) NO The default value of this field is NULL.
    PLAN_OBJECT_NAME VARCHAR2(128) NO The default value of this field is NULL.
    PLAN_OBJECT_TYPE VARCHAR2(80) NO The default value of this field is NULL.
    PLAN_DEPTH NUMBER NO The depth of the operator in the plan tree.
    PLAN_POSITION NUMBER NO The position of the operator among the operators that share the same parent operator.
    PLAN_COST NUMBER NO The cost of executing the operator. This value is calculated by the optimizer.
    PLAN_CARDINALITY NUMBER NO The number of rows that will be returned by the execution of the operator. This value is calculated by the optimizer.
    PLAN_BYTES NUMBER NO The number of bytes that will be returned by the execution of the operator. This value is calculated by the optimizer.
    PLAN_TIME NUMBER NO The estimated time that the execution of the operator will take. This value is calculated by the optimizer.
    PLAN_PARTITION_START VARCHAR2(256) NO The default value of this field is NULL.
    PLAN_PARTITION_STOP VARCHAR2(256) NO The default value of this field is NULL.
    PLAN_CPU_COST NUMBER NO The estimated CPU cost of executing the operator. This value is calculated by the optimizer.
    PLAN_IO_COST NUMBER NO The estimated I/O cost of executing the operator. This value is calculated by the optimizer.
    PLAN_TEMP_SPACE NUMBER NO The space that the operator is estimated to consume. This value is calculated by the optimizer.
    STARTS NUMBER NO The number of times the operator has been rescanned.
    OUTPUT_ROWS NUMBER NO The total number of rows returned from all the executions of the operator.
    IO_INTERCONNECT_BYTES NUMBER NO The number of bytes exchanged between the operator and the storage layer.
    PHYSICAL_READ_REQUESTS NUMBER NO The total number of I/O read requests sent by the operator.
    PHYSICAL_READ_BYTES NUMBER NO The total number of bytes in the I/O read requests sent by the operator.
    PHYSICAL_WRITE_REQUESTS NUMBER NO The total number of I/O write requests sent by the operator.
    PHYSICAL_WRITE_BYTES NUMBER NO The total number of bytes in the I/O write requests sent by the operator.
    WORKAREA_MEM NUMBER NO The size of the workarea that the operator occupies in the memory.
    WORKAREA_MAX_MEM NUMBER NO The maximum size of the workarea that the operator can occupy in the memory.
    WORKAREA_TEMPSEG NUMBER NO The dump space that the operator occupies on the disk.
    WORKAREA_MAX_TEMPSEG NUMBER NO The maximum size of the dump space that the operator can occupy on the disk.
    OTHERSTAT_GROUP_ID NUMBER NO The default value of this field is NULL.
    OTHERSTAT_1_ID NUMBER NO Reserved for future use.
    OTHERSTAT_1_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_1_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_2_ID NUMBER NO Reserved for future use.
    OTHERSTAT_2_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_2_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_3_ID NUMBER NO Reserved for future use.
    OTHERSTAT_3_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_3_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_4_ID NUMBER NO Reserved for future use.
    OTHERSTAT_4_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_4_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_5_ID NUMBER NO Reserved for future use.
    OTHERSTAT_5_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_5_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_6_ID NUMBER NO Reserved for future use.
    OTHERSTAT_6_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_6_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_7_ID NUMBER NO Reserved for future use.
    OTHERSTAT_7_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_7_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_8_ID NUMBER NO Reserved for future use.
    OTHERSTAT_8_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_8_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_9_ID NUMBER NO Reserved for future use.
    OTHERSTAT_9_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_9_VALUE NUMBER NO Reserved for future use.
    OTHERSTAT_10_ID NUMBER NO Reserved for future use.
    OTHERSTAT_10_TYPE NUMBER NO Reserved for future use.
    OTHERSTAT_10_VALUE NUMBER NO Reserved for future use.
    OTHER_XML VARCHAR2(1) NO Other structured data that needs to be provided to the outside but cannot be written to the existing fields. The data in this field is parsed by external tools.
    PLAN_OPERATION_INACTIVE NUMBER NO The default value of this field is NULL.
    OUTPUT_BATCHES NUMBER(38) NO The number of times that the operator calls the get_next_batch interface in vectorized mode.
    SKIPPED_ROWS_COUNT NUMBER(38) NO The total number of rows that do not need to be calculated during operator calculation in vectorized mode. It is the total number of rows skipped.
    DB_TIME NUMBER(38) NO The CPU time consumed by the operator.
    USER_IO_WAIT_TIME NUMBER(38) NO The total amount of time spent on waiting for events of the user_io class.
    OTHER_WAIT_TIME NULL NO The total amount of time spent on waiting for other events.

    Contact Us