📜  oracle 会话统计 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:21.731000             🧑  作者: Mango

代码示例1
SELECT sn.NAME, ss.VALUE
FROM V$SESSTAT ss,
     V$STATNAME sn,
     V$SESSION s
WHERE ss.STATISTIC# = sn.STATISTIC#
  AND s.SID = ss.SID
  AND s.AUDSID = sys_context('USERENV', 'SESSIONID');