Oracle 视图 V$SERVICEMETRIC_HISTORY 官方解释,作用,如何使用详细说明
本站中文解释
V$SERVICEMETRIC_HISTORY视图存储有关汇总的记录,时间戳与上一次采样持续的时间之间的每个服务的性能指标。这里的性能指标有CPU_TIME,ELAPSED_TIME,IO_INTERCONNECT_BYTES,LAUNCHES,DB_TIME等。
使用V$SERVICEMETRIC_HISTORY视图需要指定开始时间与结束时间的系统参数。请参考以下示例来查询受服务影响的性能指标:
SQL> SELECT * FROM v$servicemetric_history
WHERE start_time
AND end_time
AND service_name = ‘ServiceName’;
官方英文解释
V$SERVICEMETRIC_HISTORY
displays a recent history of the metric values measured in predefined time interval periods for services executing inside the database. Service metrics are measured in 5-second and 1-minute intervals.
Column | Datatype | Description |
---|---|---|
|
|
Begin timestamp for the interval period |
|
|
End timestamp for the interval period |
|
|
Interval size (in hundredths of a second) |
|
|
Group ID for the service metric group |
|
|
Service name hash |
|
|
Service name |
|
|
Service create timestamp hash value |
|
|
Elapsed time per call (in microseconds). This column is deprecated in favor of the |
|
|
CPU time per call (in microseconds) |
|
|
Elapsed time per call (in microseconds) |
|
|
Number of user calls per second |
|
|
Database time per second |
|
|
The ID of the container to which the data pertains. Possible values include:
|