Oracle 视图 V$SYSSTAT 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图V$SYSSTAT显示服务器统计信息,其中包括哪些已正确统计项:
1. 耗时项: 该视图包括了数据库特定操作执行过程中耗费的总耗时。
2. 性能项: 该视图还显示了服务器在操作过程中的性能情况,比如响应时间,查询次数等。
3. 执行项: 该视图显示了在一次操作过程中执行的数量和时间。
4. 容量变化项: 该视图还包括了系统数据库中容量变化的情况。
使用方法:
1. 使用标准SELECT语句可以查询V$SYSSTAT视图,例如:SELECT name, value FROM V$SYSSTAT;
2. 也可以使用ASM查询操作来查询V$SYSSTAT,例如:ASM SELECT name, value FROM V$SYSSTAT;
3. 如果需要查询某特定统计项,可以使用WHERE子句,例如:SELECT name, value FROM V$SYSSTAT WHERE name = ‘user commits’;
官方英文解释
V$SYSSTAT
displays system statistics. To find the name of the statistic associated with each statistic number (STATISTIC#
), query the V$STATNAME
view.
Column | Datatype | Description |
---|---|---|
|
|
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. |
|
|
Statistic name. You can get a complete listing of statistic names by querying the |
|
|
A number representing one or more statistics class. The following class numbers are additive:
|
|
|
Statistic value |
|
|
Identifier of the statistic |
|
|
The ID of the container to which the data pertains. Possible values include:
|
Note:
This view returns instance-wide data and a value of 0
in the CON_ID
column when queried from the root of a CDB.
See Also:
“V$STATNAME” and “Statistics Descriptions”