Oracle 视图 DBA_HIST_IOSTAT_FUNCTION 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_IOSTAT_FUNCTION是数据库管理员用于查看I/O统计历史信息的视图,主要用于记录数据库中某段时间内每个节点的I/O状态、每种I/O状态的时间长度,以及每种I/O状态的总时长。数据库管理员可以通过这个视图分析I/O状态情况,早期发现系统中的I/O性能瓶颈,并采取相应的措施调优。
使用DBA_HIST_IOSTAT_FUNCTION视图的方法:
1. 查询当前节点上某段时间内每一种I/O状态的详细信息:
SELECT * FROM DBA_HIST_IOSTAT_FUNCTION WHERE NODE_NUMBER = ‘当前节点编号’ AND SNAP_ID BETWEEN ‘开始时间’ AND ‘结束时间’;
2. 查询某段时间内,每个节点总的I/O时间:
SELECT NODE_NUMBER, SUM(CON_DB_TIME)AS TOTAL_IO_TIME FROM DBA_HIST_IOSTAT_FUNCTION WHERE SNAP_ID BETWEEN ‘开始时间’ AND ‘结束时间’ GROUP BY NODE_NUMBER;
3. 查询某段时间内每一节点,每一种I/O状态的时间比例:
SELECT NODE_NUMBER, FUNCTION_STATUS, SUM(CON_DB_TIME)AS TOTAL_IO_TIME, ROUND(SUM(CON_DB_TIME)/ SUM(OVER(FUNCTION_STATUS)) * 100, 2 )AS IO_STATUS_RATIO FROM DBA_HIST_IOSTAT_FUNCTION WHERE SNAP_ID BETWEEN ‘开始时间’ AND ‘结束时间’ GROUP BY NODE_NUMBER, FUNCTION_STATUS;
官方英文解释
DBA_HIST_IOSTAT_FUNCTION
displays historical I/O statistics by function.
This view contains snapshots of V$IOSTAT_FUNCTION
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Function ID |
|
|
|
Function name |
|
|
|
Number of single block megabytes read |
|
|
|
Number of single block megabytes written |
|
|
|
Number of multiblock megabytes read |
|
|
|
Number of multiblock megabytes written |
|
|
|
Number of single block read requests |
|
|
|
Number of single block write requests |
|
|
|
Number of multiblock read requests |
|
|
|
Number of multiblock write requests |
|
|
|
Number of I/O waits by functionality |
|
|
|
Total wait time (in milliseconds) |
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“V$IOSTAT_FUNCTION”