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

本站中文解释

Oracle视图V$DIAG_APP_TRACE_FILE用于查询系统中当前正在使用的应用程序跟踪文件。可以对用于跟踪应用程序的信息进行检查,检查在应用程序中的哪些功能正在被跟踪。

V$DIAG_APP_TRACE_FILE视图用于跟踪应用程序活动,其中包括:

* SERVICE_NAME:用于跟踪应用程序活动所在实例的服务名称。
* TRACE_NAME:当前跟踪文件的名称。
* DIRECTORY:存储当前跟踪文件的路径名。
* ENABLED_FLAG:表示应用程序跟踪被启用或停用,有三种可能值‘Y’、‘N’和‘PARTIALLY’,分别表示全部启用,全部停用,和部分功能启用。
* START_TIME:表示跟踪文件的开始时间。

使用V$DIAG_APP_TRACE_FILE视图,我们可以查询当前系统正在使用的应用程序跟踪文件,我们也可以对应用程序跟踪被启用或停用进行检查。

语句如下:
SELECT * FROM V$DIAG_APP_TRACE_FILE;

官方英文解释

V$DIAG_APP_TRACE_FILE contains information about all trace files present in the Automatic Diagnostic Repository (ADR) for the current container (PDB) which contain application trace data (SQL_TRACE or OPTIMIZER_TRACE event data). This view also supports GV$ global views.

Column Datatype Description

ADR_HOME

VARCHAR2(444)

Path to the current ADR home

TRACE_FILENAME

VARCHAR2(68)

Displays the name of the process trace file

CHANGE_TIME

TIMESTAMP(3) WITH TIME ZONE

Displays the change time timestamp of the process trace fiile

MODIFY_TIME

TIMESTAMP(3) WITH TIME ZONE

Displays the last modification timestamp of the process trace file

SQL_TRACE

VARCHAR2(1)

Identifies if the process trace file contains SQL_TRACE data. Possible values include:

  • Y: This value is used when the process trace file contains SQL_TRACE event data

  • N: This value indicates that the process trace does not contain SQL_TRACE data

OPTIMIZER_TRACE

VARCHAR2(1)

Identifies if the process trace file contains OPTIMIZER_TRACE data. Possible values include:

  • Y: This value is used when the process trace file contains OPTIMIZER_TRACE event data

  • N: This value indicates that the process trace does not contain OPTIMIZER_TRACE data

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$DIAG_APP_TRACE_FILE 官方解释,作用,如何使用详细说明