Oracle 视图 DBA_HIST_CON_SYSSTAT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HIST_CON_SYSSTAT用来显示连接系统运行统计信息,包括连接活动和每个活动的系统参数,当前会话配置和其它一些统计信息,可用来优化系统连接,检查诊断和监控各个系统资源的使用情况。
使用方法:
1、首先,确保需要监控的SYSSTAT参数是打开的,可以查看v$sysstat参数的值
2、使用如下语句查看当前连接的信息:
SELECT s.timestamp,s.sid,s.username,s.program,s.machine,s.terminal,s.osuser,s.process,g.value,g.name
FROM dba_hist_con_sysstat s,DBA_HIST_GSYSSTAT g
WHERE s.timestamp = g.timestamp
AND s.inst_id = g.inst_id
AND s.sid=g.sid
ORDER BY s.sid;
3、使用如下语句查看特定连接的信息:
SELECT * FROM dba_hist_con_sysstat WHERE sid = AND INST_ID = AND TIMESTAMP BETWEEN and ORDER BY sid;
官方英文解释
DBA_HIST_CON_SYSSTAT
displays historical system statistics information, including OLAP kernel statistics. This view contains snapshots of V$CON_SYSSTAT
.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Unique snapshot ID |
|
|
|
Database ID for the snapshot |
|
|
|
Instance number for the snapshot |
|
|
|
Statistic identifier |
|
|
|
Statistic name |
|
|
Statistic value |
|
|
|
|
The database ID for the PDB of the sampled session |
|
|
|
The ID of the container that
CON_DBID identifies. Possible values include:
|
See Also:
-
“V$CON_SYSSTAT”
-
“DBA_HIST_SYSSTAT”