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

本站中文解释

Oracle 视图 DBA_HIST_FILEMETRIC_HISTORY 用于查询和测量仪表盘文件的历史度量标准。它提供对历史文件特定度量按时间顺序排序的快速访问。

使用 DBA_HIST_FILEMETRIC_HISTORY 视图时,需要指定 PASSWORD_VERSIONS、PRODUCT_ID 或 FILE_TYPE 来限制 SQL查询的范围,以获取相应的度量值。例如,要查询所有 TM_XML 文件的所有度量标准的历史值,可以运行以下 SQL 语句:

SELECT *
FROM DBA_HIST_FILEMETRIC_HISTORY
WHERE PASSWORD_VERSION = ‘TM_XML’
ORDER BY TIMESTAMP;

官方英文解释

DBA_HIST_FILEMETRIC_HISTORY displays the history of file metrics collected in the Workload Repository.

Column Datatype NULL Description

SNAP_ID

NUMBER

NOT NULL

Unique snapshot ID

DBID

NUMBER

NOT NULL

Database ID for the snapshot

INSTANCE_NUMBER

NUMBER

NOT NULL

Instance number for the snapshot

FILEID

NUMBER

NOT NULL

File number

CREATIONTIME

NUMBER

NOT NULL

File creation time

BEGIN_TIME

DATE

NOT NULL

Begin time of the interval

END_TIME

DATE

NOT NULL

End time of the interval

INTSIZE

NUMBER

NOT NULL

Interval size (in hundredths of a second)

GROUP_ID

NUMBER

NOT NULL

ID of the group to which the file belongs

AVGREADTIME

NUMBER

NOT NULL

Average file read time

AVGWRITETIME

NUMBER

NOT NULL

Average file write time

PHYSICALREAD

NUMBER

NOT NULL

Number of physical reads

PHYSICALWRITE

NUMBER

NOT NULL

Number of physical writes

PHYBLKREAD

NUMBER

NOT NULL

Number of physical block reads

PHYBLKWRITE

NUMBER

NOT NULL

Number of physical block writes

CON_DBID

NUMBER

The database ID of the PDB for the sampled session

CON_ID

NUMBER

The ID of the container that CON_DBID identifies. 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 视图 DBA_HIST_FILEMETRIC_HISTORY 官方解释,作用,如何使用详细说明