Oracle 视图 DBA_HIST_SESSMETRIC_HISTORY 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图 DBA_HIST_SESSMETRIC_HISTORY 是一个AWR视图,用于收集当前和历史会话的当前指标和性能数据。它统计会话信息,但它不保存任何SQL出现次数,执行时间,语句文本等细节。
使用 Oracle 视图 DBA_HIST_SESSMETRIC_HISTORY 的方法:
1、使用以下表格查询指标历史数据:
SELECT DISTINCT sesmetric_name, instance_number, metric_name
FROM dba_hist_sessmetric_history
ORDER BY sesmetric_name;
2、通过以下表达式查询某个监视器指标的历史数据:
SELECT snap_id, value
FROM dba_hist_sessmetric_history
WHERE sesmetric_name = ‘value’
ORDER BY snap_id
/
官方英文解释
DBA_HIST_SESSMETRIC_HISTORY
displays the history of several important session metrics.
Note:
This view is populated only if a session metric exceeds a server metric threshold that was configured using the DBMS_SERVER_ALERT
package.
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 |
|
|
|
Session ID |
|
|
|
Session serial number |
|
|
|
Interval size (in hundredths of a second) |
|
|
|
Group ID |
|
|
|
Metric ID |
|
|
|
Metric name |
|
|
|
Metric Value |
|
|
|
Unit of measurement |
|
|
The database ID of the PDB for the sampled session |
|
|
|
The ID of the container that
|
See Also:
The DBMS_SERVER_ALERT
package in Oracle Database PL/SQL
Packages and Types Reference