Oracle 视图 DBA_HIST_SEG_STAT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_SEG_STAT用于报告记录在AWR(自自动工作负荷重构)收集的所有数据段的性能统计信息。它显示各种时间段(秒,分,小时,天等)及其属性的数据段的性能统计信息,如平均I / O等待时间,平均活动会话数等。
使用DBA_HIST_SEG_STAT视图的方法:
1.首先,收集现有性能数据,使用以下查询查看视图的数据:
SELECT * FROM DBA_HIST_SEG_STAT;
2.选择所需字段,例如:
SELECT avg_wait_time, avg_act_sess FROM DBA_HIST_SEG_STAT;
3.对查询结果添加约束以缩小数据段:
SELECT avg_wait_time, avg_act_sess FROM DBA_HIST_SEG_STAT WHERE snap_id BETWEEN 1000 AND 1010;
4.可以按需添加筛选条件,例如OBJECT_NAME:
SELECT avg_wait_time, avg_act_sess FROM DBA_HIST_SEG_STAT WHERE snap_id BETWEEN 1000 AND 1010 AND object_name = ‘MY_TABLE’;
官方英文解释
DBA_HIST_SEG_STAT
displays historical information about segment-level statistics.
This view captures the top segments based on a set of criteria and captures information from V$SEGSTAT
. The total value is the value of the statistics since instance startup. The delta value is the value of the statistics from the BEGIN_INTERVAL_TIME
to the END_INTERVAL_TIME
in the DBA_HIST_SNAPSHOT
view.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Tablespace number |
|
|
|
Dictionary object number |
|
|
|
Data object number |
|
|
Cumulative value for logical reads |
|
|
|
Delta value for logical reads |
|
|
|
Cumulative value for buffer busy waits |
|
|
|
Delta value for buffer busy waits |
|
|
|
Cumulative value for db block changes (in blocks) |
|
|
|
Delta value for db block changes (in blocks) |
|
|
|
Cumulative value for physical reads (in blocks) |
|
|
|
Delta value for physical reads (in blocks) |
|
|
|
Cumulative value for physical writes (in blocks) |
|
|
|
Delta value for physical writes (in blocks) |
|
|
|
Cumulative value for physical reads direct (in blocks) |
|
|
|
Delta value for physical reads direct (in blocks) |
|
|
|
Cumulative value for physical writes direct (in blocks) |
|
|
|
Delta value for physical writes direct (in blocks) |
|
|
|
Cumulative value for ITL waits |
|
|
|
Delta value for ITL waits |
|
|
|
Cumulative value for row lock waits |
|
|
|
Delta value for row lock waits |
|
|
|
Cumulative value for global cache CR blocks served |
|
|
|
Delta value for global cache CR blocks served |
|
|
|
Cumulative value for global cache current blocks served |
|
|
|
Delta value for global cache current blocks served |
|
|
|
Cumulative value for global cache buffer busy |
|
|
|
Delta value for global cache buffer busy |
|
|
|
Cumulative value for global cache CR blocks received |
|
|
|
Delta value for global cache CR blocks received |
|
|
|
Cumulative value for global cache current blocks received |
|
|
|
Delta value for global cache current blocks received |
|
|
|
Number of bytes used by user data |
|
|
|
Delta value for space used by user data (in bytes). A negative value indicates the number of bytes deleted in the segment. |
|
|
|
The number of bytes that are allocated |
|
|
|
Delta value for the space allocated (in bytes). A negative value indicates the number of bytes deallocated to the tablespace. |
|
|
|
Cumulative value for table scans |
|
|
|
Delta value for table scans |
|
|
|
Cumulative value of number of chained row pieces that can be eliminated by table reorganization |
|
|
|
Delta value of number of chained row pieces that can be eliminated by table reorganization |
|
|
|
Cumulative value of number of physical read I/O requests issued for the monitored segment |
|
|
|
Delta value of number of physical read I/O requests issued for the monitored segment |
|
|
|
Cumulative value of number of physical write I/O requests issued for the monitored segment |
|
|
|
Delta value of number of physical write I/O requests issued for the monitored segment |
|
|
|
Cumulative value of number of physical reads from Database Smart Flash Cache for the monitored segment |
|
|
|
Delta value of number of physical reads from Database Smart Flash Cache for the monitored segment |
|
|
|
Count of segment statistics |
|
|
|
Delta values for in-memory scans |
|
|
|
Count of compression units (CUs) populated per segment |
|
|
|
Delta value for compression unit (CU) populate operations |
|
|
|
Count of CUs repopulated per segment |
|
|
|
Delta value for compression unit (CU) repopulate operations |
|
|
|
The total number of changes that were part of an update or delete operation that were made to segment blocks |
|
|
|
Delta value for database block changes |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
-
“V$SEGSTAT”
-
“DBA_HIST_SNAPSHOT”