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

本站中文解释

V$FILEMETRIC视图提供实时文件I/O统计信息。属于动态性能视图,可以用来检测控制文件的I/O活动,比如档案的读写狀態、受到的I/O有效负载以及档案的I/O操作次数等。

使用方法:

1、查看一个档案的I/O信息:

SELECT * FROM V$FILEMETRIC WHERE file_name=’&filename’;

2、查看一个档案的总体I/O信息:

SELECT SUM(ontimig)*100 / SUM(total) AS “TOTAL I/O%”
FROM v$FILEMETRIC WHERE file_name=’&filename’;

3、查看几个档案的总体I/O信息:

SELECT SUM(ontimig)*100 / SUM(total) AS “TOTAL I/O%”
FROM v$FILEMETRIC WHERE file_name IN (‘file1′,’file2′,’file3’);

官方英文解释

V$FILEMETRIC displays values of file metrics for the most recent 10-minute interval. A history of the last one hour will be kept in the system.

Column Datatype Description

BEGIN_TIME

DATE

Begin time of the interval

END_TIME

DATE

End time of the interval

INTSIZE_CSEC

NUMBER

Interval size (in hundredths of a second)

FILE_ID

NUMBER

File number

CREATION_TIME

NUMBER

Timestamp of the file creation

AVERAGE_READ_TIME

NUMBER

Average file read time (in hundredths of a second)

AVERAGE_WRITE_TIME

NUMBER

Average file write time (in hundredths of a second)

PHYSICAL_READS

NUMBER

Number of physical reads

PHYSICAL_WRITES

NUMBER

Number of physical writes

PHYSICAL_BLOCK_READS

NUMBER

Number of physical block reads

PHYSICAL_BLOCK_WRITES

NUMBER

Number of physical block writes

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