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 of the interval |
|
|
End time of the interval |
|
|
Interval size (in hundredths of a second) |
|
|
File number |
|
|
Timestamp of the file creation |
|
|
Average file read time (in hundredths of a second) |
|
|
Average file write time (in hundredths of a second) |
|
|
Number of physical reads |
|
|
Number of physical writes |
|
|
Number of physical block reads |
|
|
Number of physical block writes |
|
|
The ID of the container to which the data pertains. Possible values include:
|