Oracle 视图 V$BACKUP_PIECE 官方解释,作用,如何使用详细说明
本站中文解释
及V$MEDIA_PIECE
Oracle 视图V$BACKUP_PIECE及V$MEDIA_PIECE提供有关在Oracle备份中已经存在的备份块的信息,可用于检查备份进度或重新加载备份组件的独立备份块等。
V$BACKUP_PIECE:主要可以查看该控制文件中相应备份块的信息,内容包括备份块的路径,大小,创建时间,备份类型等。
V$MEDIA_PIECE:可以查看已备份控制文件中所有卷或块的信息,其中包括每个卷或块的类型,大小,保存状态等。
使用方法:
1、查询出现在归档日志中曾备份过的文件和控制文件:
SELECT distinct b.PIECE#,b.LOGICAL_MAX_BUF,b.STATUS,
b.CREATION_TIME,b.DEVICE_TYPE,b.WHERE_PATH,
FROM v$backup_piece b,
v$backup_set_details d
WHERE b.set#=d.group#
AND d.COMPLETION_TIME >= trunc(sysdate)-1;
2、查询出归档日志中某个特定的备份文件的详情:
SELECT b.PIECE#,b.STATUS,b.DEVICE_TYPE,b.WHERE_PATH,
b.CHECKSUM,b.TAG,b.CREATION_TIME,
FROM v$backup_piece b
WHERE PIECE_NAME like ‘&filename’;
官方英文解释
V$BACKUP_PIECE
displays information about backup pieces from the control file. Each backup set consists of one or more backup pieces.
Column | Datatype | Description |
---|---|---|
|
| Backup piece record ID |
|
| Backup piece record stamp |
|
| Backup set stamp |
|
| Backup set count |
|
| Backup piece number (1-N) |
|
| Indicates the copy number for backup pieces created with duplex enabled. 1 if the backup piece is not duplexed. |
|
| Type of the device on which the backup piece resides. Set to DISK for backup sets on disk. See Also: |
|
| Backup piece handle identifies the backup piece on restore |
|
| Comment returned by the operating system or storage subsystem. Set to NULL for backup pieces on disk. This value is informational only; not needed for restore. |
|
| Name of the media on which the backup piece resides. This value is informational only; not needed for restore. |
|
| The media pool in which the copy resides. This is the same value that was entered in the |
|
| ( |
|
| Backup piece tag. The tag is specified at backup set level, but stored at piece level. |
|
| Indicates the status of the piece: |
|
| Starting time |
|
| Completion time |
|
| Number of elapsed seconds |
|
| ( |
|
| Size of the backup piece (in bytes) |
|
| Indicates whether the file was created in the fast recovery area ( |
|
| Owning |
|
| Owning |
|
| Indicates whether the backup piece is compressed ( |
|
| Whether or not the file has been backed up by Volume Shadow Copy Service (VSS). This column is reserved for internal use. |
|
| A value of |
|
| A value of |
|
| Indicates whether this is a cross platform backup piece:
|
|
| If the value of |
|
| The ID of the container to which the data pertains. Possible values include:
|
|
| The GUID of the PDB to which the backup belongs. This is useful after the PDB is dropped to identify which PDB the backup belongs to. |
编辑:一起学习网
标签:备份,文件,可以查看,信息,大小