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

本站中文解释

V$IO_OUTLIER视图是Oracle提供的一个列出FSIO(文件系统I/O)异常的视图。它可以用来检测和诊断磁盘I/O的异常性能。

每一行记录着一次文件I/O操作,此操作的平均每秒字节数比它舍入的尺寸低了指定的阈值。通过V$IO_OUTLIER视图,DBA可以检测及时地发现应用中的一些I/O瓶颈。

使用方式:

1、首先查询V$IO_OUTLIER 视图,查看是否有异常的数据:

SELECT * FROM V$IO_OUTLIER;

2、如果查询结果存在异常的记录,可以使用下面这条SQL语句,查看这些异常数据在资料库中查找相应的文件:

SELECT *
FROM DBA_DATA_FILES
WHERE FILE_ID IN (SELECT FILE_NO FROM V$IO_OUTLIER);

3、最后,根据查询结果,可以采取相应的措施,比如优化SQL,减少磁盘I/O等,解决性能问题。

官方英文解释

V$IO_OUTLIER contains entries corresponding to I/Os that have taken a long time (more than 500 ms) to complete. Use this view to see if there any occasional delays in serving disk I/O requests by the storage subsystem.

Column Datatype Description

FUNCTION_NAME

VARCHAR2(18)

I/O function name of the delayed I/O

IO_SIZE

NUMBER

Size of the I/O in bytes

WAIT_EVENT

VARCHAR2(64)

Wait event name that was used to track the I/O

FILE_NAME

VARCHAR2(513)

Name of the file to which the I/O was targeted

IO_LATENCY

NUMBER

Time taken to complete the I/O (in milliseconds)

DISK1_NAME

VARCHAR2(255)

For Oracle ASM, the name of the first disk to which the I/O was issued

DISK1_LATENCY

NUMBER

Latency seen on the first disk (in milliseconds)

DISK2_NAME

VARCHAR2(255)

For Oracle ASM, the name of the second disk to which the I/O was issued

DISK2_LATENCY

NUMBER

Latency seen on the second disk (in milliseconds)

DISK3_NAME

VARCHAR2(255)

For Oracle ASM, the name of the third disk to which the I/O was issued

DISK3_LATENCY

NUMBER

Latency seen on the third disk (in milliseconds)

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

See Also:

  • “V$KERNEL_IO_OUTLIER”

  • “V$LGWRIO_OUTLIER”


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