Oracle 视图 V$ROLLSTAT 官方解释,作用,如何使用详细说明

本站中文解释

V$ROLLSTAT 视图提供了表面查看逻辑恢复日志这个重要组件的信息,包括日志从上次检查点到现在被应用的情况,是否存在未激活的更改,打开的日志数量,你可以用它来分析你的恢复链是否有效,足够安全,还可以用它来确定你归档和重做日志长度,把它们锁定在合理长度以满足你的业务需求。

使用方法:

1.查询当前逻辑恢复日志中应用和未激活的更改:

SELECT * FROM V$ROLLSTAT;

2.查询当前逻辑恢复日志中开放日志的文件数:

SELECT COUNT(*) FROM V$ROLLSTAT WHERE STATUS=’OPENED’;

官方英文解释

V$ROLLSTAT contains rollback segment statistics.

Column Datatype Description

USN

NUMBER

Rollback segment number

LATCH

NUMBER

Latch for the rollback segment

EXTENTS

NUMBER

Number of extents in the rollback segment

RSSIZE

NUMBER

Size (in bytes) of the rollback segment. This value differs by the number of bytes in one database block from the value of the BYTES column of the *_SEGMENTS view.

See Also: Oracle Database
Administrator’s Guide
for more information about space management for rollback segments

WRITES

NUMBER

Number of bytes written to the rollback segment

XACTS

NUMBER

Number of active transactions

GETS

NUMBER

Number of header gets

WAITS

NUMBER

Number of header waits

OPTSIZE

NUMBER

Optimal size of the rollback segment

HWMSIZE

NUMBER

High watermark of the rollback segment size

SHRINKS

NUMBER

Number of times the size of a rollback segment decreases

WRAPS

NUMBER

Number of times rollback segment is wrapped

EXTENDS

NUMBER

Number of times rollback segment size is extended

AVESHRINK

NUMBER

Average shrink size

AVEACTIVE

NUMBER

Current size of active extents, averaged over time.

STATUS

VARCHAR2(15)

Rollback segment status:

  • ONLINE

  • PENDING OFFLINE

  • OFFLINE

  • FULL

CUREXT

NUMBER

Current extent

CURBLK

NUMBER

Current block

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


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