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

本站中文解释

_VIEW视图 Oracle DBA_HIST_IOSTAT_DETAIL_VIEW视图是用来存储每次实例重新启动之后,IO性能参数的历史信息。该视图包含SQL语句,像IOPS(每秒I/0操作数),数据传输量以及平均延迟等。

要使用DBA_HIST_IOSTAT_DETAIL_VIEW视图,首先必须在_io_stat_duration和_io_stat_delta初始化参数值上开启性能参数收集。然后可以使用如下查询,从DBA_HIST_IOSTAT_DETAIL_VIEW视图检索所需IO性能信息,如下:

SELECT *
FROM dba_hist_iostat_detail_view
WHERE snap_id BETWEEN &start_id AND &end_id;

上述查询将返回在指定时间(start_id和end_id之间)收集的IO性能指标和参数信息,例如IOPS,数据传输量,最大延迟等。这种查询特别有用,当用户正在监视数据库性能时,可以把IO性能参数记录到dba_hist_iostat_detail_view视图中。

官方英文解释

DBA_HIST_IOSTAT_DETAIL displays I/O statistics aggregated by combination of file type and function (component).

This view contains snapshots of V$IOSTAT_FILE and V$IOSTAT_FUNCTION.

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

FUNCTION_ID

NUMBER

NOT NULL

Function ID

FUNCTION_NAME

VARCHAR2(30)

NOT NULL

Function name

FILETYPE_ID

NUMBER

NOT NULL

Type of file (for example, log file, data file, and so on)

FILETYPE_NAME

VARCHAR2(30)

NOT NULL

Name of the file, in the case of a data file or temp file. For all other files, a corresponding string to be displayed (for example, ARCHIVELOG).

SMALL_READ_MEGABYTES

NUMBER

NOT NULL

Number of single block megabytes read

SMALL_WRITE_MEGABYTES

NUMBER

NOT NULL

Number of single block megabytes written

LARGE_READ_MEGABYTES

NUMBER

NOT NULL

Number of multiblock megabytes read

LARGE_WRITE_MEGABYTES

NUMBER

NOT NULL

Number of multiblock megabytes written

SMALL_READ_REQS

NUMBER

NOT NULL

Number of single block read requests

SMALL_WRITE_REQS

NUMBER

NOT NULL

Number of single block write requests

LARGE_READ_REQS

NUMBER

NOT NULL

Number of multiblock read requests

LARGE_WRITE_REQS

NUMBER

NOT NULL

Number of multiblock write requests

NUMBER_OF_WAITS

NUMBER

NOT NULL

Number of I/O waits by functionality

WAIT_TIME

NUMBER

NOT NULL

Total wait time (in milliseconds)

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

See Also:

  • “V$IOSTAT_FILE”

  • “V$IOSTAT_FUNCTION”


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