Oracle 视图 V$SESSMETRIC 官方解释,作用,如何使用详细说明
本站中文解释
_HISTORY
Oracle视图V$SESSMETRIC_HISTORY,它用来显示会话的历史性能指标,它记录一段时间内每个活动(Acive)会话的性能指标的值的流动变化报告。通常V$SESSMETRIC_HISTORY视图中的数据是被专业的会话性能外观(Performance Analyzer,位于Enterprise Manager中)收集的。数据可以显示活动事务在给定时间点上的性能差异或者一段时间内两个不同时间上性能上的变化。
使用方法:
1. 首先查询需要查看的会话ID或者其他匹配条件:
SQL> SELECT session_id,serial# FROM V$SESSION WHERE USER_NAME = ”;
2. 运用返回的会话ID和序列号,查询V$SESSMETRIC_HISTORY视图以查看性能指标:
SQL> SELECT * FROM V$SESSMETRIC_HISTORY WHERE session_id= AND serial# = ;
官方英文解释
V$SESSMETRIC
displays the metric values for all sessions.
Column | Datatype | Description |
---|---|---|
|
|
Begin time of the interval |
|
|
End time of the interval |
|
|
Interval size (in hundredths of a second) |
|
|
Session ID |
|
|
Session serial number |
|
|
CPU usage |
|
|
Number of physical reads |
|
|
Number of logical reads |
|
|
PGA size at the end of the interval |
|
|
Number of hard parses |
|
|
Number of soft parses |
|
|
Physical read ratio |
|
|
Logical read ratio |
|
|
The ID of the container to which the data pertains. Possible values include:
|