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

本站中文解释

(语句缓冲池)

Oracle视图V$SQLCOMMAND以语句号为主键,记录所有正在执行、已经完成的客户端执行的SQL语句和PL/SQL块。其中包括每个语句首次在并发缓冲池中运行所消耗的磁盘读取量、缓冲区命中量等。

使用方法:

–查看活动数据库会话的SQL语句的分析情况:
SELECT sql_text, executions,
(disk_reads+buffer_gets)/executions “avg_io /exec”,
smon_timestamp
FROM v$sqlcommand
WHERE username = USER
ORDER BY executions DESC;

官方英文解释

V$SQLCOMMAND displays the mapping between SQL opcodes and names.

Column Datatype Description

COMMAND_TYPE

NUMBER

SQL command number

COMMAND_NAME

VARCHAR2(64)

SQL command name

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


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