Oracle 视图 V$SQL_MONITOR_STATNAME 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图V$SQL_MONITOR_STATNAME是可用于V$SQL_MONITOR视图的必要支持视图,它主要用于检索SQL监控任务执行要检索的SQL语句活动的受影响形式和/或参数。该V$SQL_MONITOR_STATNAME视图提供监控任务运行时要检索的元信息。

V$SQL_MONITOR_STATNAME视图可以使用以下步骤查询:

使用SQL *Plus:

1. 登录到SQL *Plus。

2. 选择要查询的数据库实例(可选)。

3. 查询V$SQL_MONITOR_STATNAME视图,如:

SELECT * FROM V$SQL_MONITOR_STATNAME;

使用PL / SQL:

1. 使用PL / SQL的 dbms_sql.parse_as_user()存储过程注册一个SQL文本。

2. 使用PL / SQL的 dbms_monitor.session_trace_enable()存储过程启用SQL监控任务。

3. 查询V$SQL_MONITOR_STATNAME视图,如:

BEGIN
SELECT * FROM V$SQL_MONITOR_STATNAME;
END;

官方英文解释

V$SQL_MONITOR_STATNAME provides information about the plan line statistics exposed in V$SQL_PLAN_MONITOR. A plan line statistic is identified by its group ID (column GROUP_ID) and its ID (column ID).

Column Datatype Description

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

ID

NUMBER

Plan line statistic ID

GROUP_ID

NUMBER

Plan line statistic group ID

NAME

VARCHAR2(40)

Short name for the statistic

DESCRIPTION

VARCHAR2(200)

Short description for the statistic

TYPE

NUMBER

Reserved for internal use

FLAGS

NUMBER

Reserved for internal use

See Also:

“V$SQL_PLAN_MONITOR”


数据运维技术 » Oracle 视图 V$SQL_MONITOR_STATNAME 官方解释,作用,如何使用详细说明