欢迎光临
我们一直在努力

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

本站中文解释

本视图显示进行数据库恢复所需的文件,它集中了数据库文件名、文件ID号、恢复锁定状态和所属的数据库。

使用:

1、查看需要恢复的文件:

SELECT file#, file_name, online_status
FROM V$recover_file
where online_status= ‘OFFLINE’;

2、查看需要恢复的数据库:

SELECT file#, file_name, online_status, across_db_name
FROM V$recover_file
WHERE online_status=’OFFLINE’
AND across_db_name IS NOT NULL;

官方英文解释

V$RECOVER_FILE displays the status of files needing media recovery.

Column Datatype Description

FILE#

NUMBER

File identifier number

ONLINE

VARCHAR2(7)

This column is obsolete and maintained for backward compatibility. The value of this column is always equal to the value in ONLINE_STATUS.

ONLINE_STATUS

VARCHAR2(7)

Online status (ONLINE, OFFLINE)

ERROR

VARCHAR2(18)

Why the file must be recovered: NULL if reason unknown, or OFFLINE NORMAL if recovery not needed

CHANGE#

NUMBER

SCN where recovery must start

TIME

DATE

Time of SCN when recovery must start

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

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。