ITPub博客

首页 > Linux操作系统 > Linux操作系统 > v$mystat, v$statname

v$mystat, v$statname

原创 Linux操作系统 作者:lys198311 时间:2012-11-18 19:01:56 0 删除 编辑
v$mystat
 
by which we can select current session id and performance consume.
 
v$sessstat is for sessions sid of instance
 
v$sysstat is for all session of database.
 
v$statname:
 
Column Datatype Description
STATISTIC# NUMBER Statistic number

Note: Statistics numbers are not guaranteed to remain constant from one release to another. Therefore, you should rely on the statistics name rather than its number in your applications.

NAME VARCHAR2(64) Statistic name
CLASS NUMBER A number representing one or more statistics classes. The following class numbers are additive:
  • 1 - User

  • 2 - Redo

  • 4 - Enqueue

  • 8 - Cache

  • 16 - OS

  • 32 - Real Application Clusters

  • 64 - SQL

  • 128 - Debug

STAT_ID NUMBER Identifier of the statistic

SELECT t.*, s.*

FROM v$mystat t, v$statname s

WHERE s.statistic# = t.statistic#;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22936840/viewspace-749432/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: v$session
请登录后发表评论 登录
全部评论

注册时间:2009-11-27

  • 博文量
    23
  • 访问量
    12046