Oracle 视图 DBA_HIST_RSRC_METRIC 官方解释,作用,如何使用详细说明
本站中文解释
_HISTORY
DBA_HIST_RSRC_METRIC_HISTORY 是一个视图,用于查询 Oracle 11g 以上版本的资源管理历史信息。该视图提供了一种查看系统资源管理器(SRM)参数设置和监控资源使用趋势的有效方法。字段定义和用法如下 :
BEGIN_INTERVAL_TIME – 记录开始时间,这会与其他相关视图对应。
END_INTERVAL_TIME – 记录结束时间,且与其他相关视图对应。
RESOURCE_NAME – SRM资源名称。
METRIC_NAME – 测量名称。
CURRENT_VALUE – 监控指定时间段内的度量值。
TREND – 表示度量值是上升还是下降。
USAGE – 用于确定读取/写入等操作的度量值。
使用DBA_HIST_RSRC_METRIC_HISTORY视图的方法如下:
1.查询最后一小时或者改变的所有SRM度量值。
使用以下示例查询:
SELECT RESOURCE_NAME, METRIC_NAME, CURRENT_VALUE, TREND, USAGE
FROM DBA_HIST_RSRC_METRIC_HISTORY
WHERE BEGIN_INTERVAL_TIME > SYSDATE -1/24
and END_INTERVAL_TIME = TO_TIMESTAMP(‘2019-04-01′,’YYYY-MM-DD’)
AND END_INTERVAL_TIME
官方英文解释
DBA_HIST_RSRC_METRIC
displays information about historical Resource Manager metrics for the past hour.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Begin time of the interval |
|
|
|
End time of the interval |
|
|
|
Interval size (in hundredths of a second) |
|
|
|
A sequential counter that uniquely describes the |
|
|
|
Consumer group object ID (a unique number, consistent across database shutdowns and startups) |
|
|
|
Cumulative amount of CPU time consumed by all sessions in the consumer group, in milliseconds |
|
|
|
Cumulative amount of time that sessions waited for CPU because of resource management, in milliseconds. This does not include waits due to latch or enqueue contention, I/O waits, and so on. When CPU resources are not being actively managed, this value is set to zero. |
|
|
Average number of sessions in the consumer group that are currently running |
|
|
|
Average number of sessions in the consumer group that are waiting for CPU due to resource management. When CPU resources are not being actively managed, this value is set to zero. |
|
|
|
Maximum number of sessions in the consumer group that can run simultaneously. The value of this column is |
|
|
|
Average percentage CPU consumed by the consumer group |
|
|
|
|
I/O requests |
|
|
|
I/O megabytes |
|
|
I/O operations per second during the previous minute for this PDB |
|
|
|
I/O megabytes per second during the previous minute for this PDB |
|
|
|
The average number of parallel statements that were running during the 1-minute metric window |
|
|
|
The average number of parallel statements that were queued during the 1-minute metric window |
|
|
|
The average number of parallel servers that were actively running as part of a parallel statement during the 1-minute metric window |
|
|
|
The average number of parallel servers that were requested by queued parallel statements during the 1-minute metric window |
|
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|