Oracle 视图 ALL_HEAT_MAP_SEG_HISTOGRAM 官方解释,作用,如何使用详细说明
本站中文解释
ALL_HEAT_MAP_SEG_HISTOGRAM是Oracle数据库中的一张视图,由SYS用户拥有,记录了与段之间的块数的热图称为索引的段的折线图。该视图中要查看的信息有:OWNER 、SEGMENT_NAME 、SEGMENT_TYPE 、EXTENTS 、EXTENTS_SIZE 、EXTENTS_PER_MAP_SEG HEAT_MAP_SEGS_COUNT 、LAST_SCN_FOR_SEG 、FIRST_SCN_FOR_SEG 、SAMPLE_TIMESTAMP_LT 、HEAT_MAP_SEG_ID 、SEGMENT_SPACE_USED 、SEGMENT_SPACE_FREE 。
使用方法:
1、使用SQL开发工具,连接Oracle数据库,查询ALL_HEAT_MAP_SEG_HISTOGRAM视图:
SELECT * FROM all_heat_map_seg_histogram;
2、查询普遍字段:
SELECT segment_name, segment_type, extents, extent_size
FROM all_heat_map_seg_histogram;
3、查询段在指定时间段内的数量:
SELECT segment_name, SUM(heat_map_segs_count)
FROM all_heat_map_seg_histogram
WHERE sample_timestamp_lt>=min_date AND sample_timestamp_lt
官方英文解释
ALL_HEAT_MAP_SEG_HISTOGRAM
displays segment access information for all segments visible to the user.
Related Views
-
DBA_HEAT_MAP_SEG_HISTOGRAM
displays segment access information for all segments. -
USER_HEAT_MAP_SEG_HISTOGRAM
displays segment access information for segments owned by the user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Table owner |
|
|
|
Name of the object |
|
|
Name of the sub-object |
|
|
|
System time when the segment access was tracked |
|
|
|
Indicates whether the segment has write access ( |
|
|
|
Indicates whether the segment has full table scan ( |
|
|
|
Indicates whether the segment has lookup scan ( |
See Also:
-
“DBA_HEAT_MAP_SEG_HISTOGRAM”
-
“USER_HEAT_MAP_SEG_HISTOGRAM”