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

本站中文解释

视图

V$RECOVERY_FILE_STATUS视图是Oracle中提供的一个用于查看归档日志文件的状态的视图。通过这个视图,可以看到哪些归档日志已经被应用,哪些归档日志正在被应用,哪些归档日志已经失效或者未被应用。该视图还能查看哪些归档日志已经由于某些原因无法应用,以及哪些归档日志附有了SBT备份句柄。

使用视图V$RECOVERY_FILE_STATUS,可以通过以下查询访问其内容:

SELECT * FROM V$RECOVERY_FILE_STATUS;

通过上述查询,可以显示出归档日志文件的完整状态信息,以及每个文件应用于哪些redo log之后的块号范围,以及它也许被应用到哪些数据文件的块号范围。

此外,V$RECOVERY_FILE_STATUS 视图还可以用于确定归档日志文件的可用性,在实际恢复操作中确定哪些归档日志文件需要恢复,以及在更改可用空间管理策略时,检查系统需要多少归档日志文件来满足安全性要求。

官方英文解释

V$RECOVERY_FILE_STATUS contains one row for each datafile for each RECOVER statement. This view contains useful information only for the Oracle process doing the recovery. When Recovery Manager directs a server process to perform recovery, only Recovery Manager can view the relevant information in this view. V$RECOVERY_FILE_STATUS will be empty to all other Oracle users.
Column Datatype Description

FILENUM

NUMBER

Number of the file being recovered

FILENAME

VARCHAR2(513)

Filename of the datafile being recovered

STATUS

VARCHAR2(13)

Status of the recovery:

  • IN RECOVERY

  • CURRENT

  • NOT RECOVERED

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

See Also:

Oracle Database Backup and
Recovery User’s Guide


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