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

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. You can get a complete listing of statistic names by querying the V$STATNAME view.

CLASS

NUMBER

A number representing one or more statistics class. The following class numbers are additive:

  • 1 – User

  • 2 – Redo

  • 4 – Enqueue

  • 8 – Cache

  • 16 – OS

  • 32 – Real Application Clusters

  • 64 – SQL

  • 128 – Debug

  • 256 – Instance level

VALUE

NUMBER

Statistic value

STAT_ID

NUMBER

Identifier of the statistic

CON_ID

NUMBER

The ID of the container to which the data pertains. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

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”


数据运维技术 » Oracle 视图 V$SYSSTAT 官方解释,作用,如何使用详细说明