Oracle 视图 DBA_HIST_FILESTATXS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_FILESTATXS是基于AWR收集的统计信息,使用它可以跟踪在特定时间范围内数据文件的使用情况,它会显示磁盘I/O活动以及文件访问类型。
主要用途:
1. 查看表空间和数据文件的文件I/O的使用情况,以及如果调整缓存参数对I/O负载的影响。
2. 识别哪些数据文件出现了偏斜的I/O负载,并作出行动来改善该现状,比如创建多个数据文件,或者添加额外的表空间,来改善负载不均衡的问题。
3. 通过识别更新型的Busy Buffer中的文件,来解决一些对少数数据文件的过度访问的问题。
使用方法:
1. 首先启动相应的监控,这可以通过AWR报告或者DBMS_WORKLOAD_REPOSITORY.START_SNAPSHOT来完成。
2. 然后执行查询:SELECT * FROM DBA_HIST_FILESTATXS;
3. 最后结束监控,也可以使用AWR报告或者DBMS_WORKLOAD_REPOSITORY.STOP_SNAPSHOT完成。
官方英文解释
DBA_HIST_FILESTATXS
displays information about file read/write statistics.
This view contains snapshots of V$FILESTAT
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
File identification number |
|
|
|
Change number at which the data file was created |
|
|
|
Name of the data file |
|
|
|
Tablespace number |
|
|
Name of the tablespace |
|
|
|
Block size of the data file |
|
|
|
Number of physical reads done |
|
|
|
Number of times DBWR is required to write |
|
|
|
Number of single block reads |
|
|
|
Time (in hundredths of a second) spent doing reads if the |
|
|
|
Time (in hundredths of a second) spent doing writes if the |
|
|
|
Cumulative single block read time (in hundredths of a second) |
|
|
|
Number of physical blocks read |
|
|
|
Number of blocks written to disk, which may be the same as |
|
|
|
Shows the number of waits at the file level for contended buffers. This value includes the individual wait events that are included in the buffer busy waits wait event. See Also: “buffer busy waits” |
|
|
|
Time spent waiting for the wait events in the |
|
|
|
Number of physical reads from Database Smart Flash Cache blocks |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“V$FILESTAT”