一起学习网 一起学习网

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

本站中文解释

Oracle 视图V$BACKUP_DATAFILE_SUMMARY提供了一个总结在备份过程中每个数据文件上涉及的备份块数和重新映射块数的视图。

V$BACKUP_DATAFILE_SUMMARY 的用途:
1. 检查每个文件被备份了多少块。
2. 检查有多少个重新映射块在备份过程中出现。
3. 检查某个文件是否在数据库备份过程中被备份。

如何使用:

可以使用查询如下来查询V$BACKUP_DATAFILE_SUMMARY 视图:
SELECT FILE#,BLOCKS,REMAP_BLKS
FROM V$BACKUP_DATAFILE_SUMMARY;

官方英文解释

V$BACKUP_DATAFILE_SUMMARY provides summary information for a specific criteria set, based on a backup job, a time range applicable to jobs, or a specific data file).

ColumnDatatypeDescription

NUM_FILES_BACKED

NUMBER

Number of files backed up for specified criteria

NUM_DISTINCT_FILES_BACKED

NUMBER

Number of distinct files backed up

NUM_DISTINCT_TS_BACKED

NUMBER

Number of distinct tablespaces backed up

MIN_CHECKPOINT_CHANGE#

NUMBER

Minimum checkpoint change number of the data file for specified criteria

MAX_CHECKPOINT_CHANGE#

NUMBER

Maximum checkpoint change number of the data file for specified criteria

MIN_CHECKPOINT_TIME

DATE

Minimum checkpoint time of the data file for specified criteria

MAX_CHECKPOINT_TIME

DATE

Maximum checkpoint time of the data file for specified criteria

INPUT_BYTES

NUMBER

Total input bytes of files read

OUTPUT_BYTES

NUMBER

Total output bytes written

COMPRESSION_RATIO

NUMBER

The ratio between the total blocks in the datafile and the blocks that RMAN backed up. This is not the the ratio from the AS COMPRESSED BACKUPSET clause of the BACKUP command.

INPUT_BYTES_DISPLAY

VARCHAR2(4000)

Displayable format for input bytes

OUTPUT_BYTES_DISPLAY

VARCHAR2(4000)

Displayable format for output bytes

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