Oracle 视图 DBA_HIST_SEG_STAT_OBJ 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_SEG_STAT_OBJ被用来显示任意给定时段内指定segments(表空间、表或索引)的状态统计信息。它由每秒/每分钟/每小时/每天/每周/每月的统计聚集来进行空间管理。它还可以用于比较最近的时间段的不同统计信息,以检查系统的最终执行情况。
要使用Oracle视图DBA_HIST_SEG_STAT_OBJ,首先必须运行数据保留配置脚本DBMS_WORKLOAD_REPOSITORY.create_snapshot_settings,以确保数据被收集。然后,可以使用如下查询语句检索给定时期内指定segments的信息:
SELECT * FROM DBA_HIST_SEG_STAT_OBJ WHERE segment_id = ‘&discontinued_seg_id’
AND snap_id BETWEEN &snap_id1 AND &snap_id2;
其中,discontinued_seg_id是需要查询的segment ID,snap_id1是起始时期内最后一个快照的编号,snap_id2是结束时期内最后一个快照的编号。
官方英文解释
DBA_HIST_SEG_STAT_OBJ
displays all the names of the segments captured in the workload repository.
This view is used with the DBA_HIST_SEG_STAT
view.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Database ID |
|
|
|
Tablespace number |
|
|
|
Dictionary object number |
|
|
|
Data object number |
|
|
|
Owner of the object |
|
|
|
Name of the object |
|
|
Name of the subobject (for example: partition) |
|
|
|
Type of the object for example: table, tablespace) |
|
|
|
Tablespace Name for the object |
|
|
|
Partition Type, if relevant |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
“DBA_HIST_SEG_STAT”