All technological notes.
Backup Sets and Image Copies| Dynamic View | Description |
|---|---|
V$BACKUP_SET |
Backup sets created |
V$BACKUP_ PIECE |
Backup pieces that exist |
V$DATAFILE_COPY |
Copies of data files on disk |
V$BACKUP_ FILES |
Information about all files created when creating backups |
| View | Description |
|---|---|
RC_BACKUP_SET |
Backup sets created |
RC_BACKUP_ PIECE |
Backup pieces that exist |
RC_DATAFILE_COPY |
Copies of data files on disk |
RC_BACKUP_ FILES |
Information about all files created when creating backups |
backup pieces
database files.Backup sets:
backup piecesRMANRMAN can write backups to media managers such as tape drives and tape libraries.Characteristics:
backup set can contain multiple data files.
backup set consisting of a single backup piece.backup piece as output. The backup set contains only this backup piece.Advantage:
Disadvantage:
In most systems, the advantages of backup sets outweigh the advantages of image copies.
The FORMAT parameter
The FORMAT specification can also be provided through the ALLOCATE CHANNEL and CONFIGURE commands.
BACKUP AS BACKUPSET
FORMAT '/BACKUP/df_%d_%s_%p.bus'
TABLESPACE hr data;
Image copies:
data file, archived redo log, or control file.can be created 创建方式
BACKUP AS COPY commandWhen you create the image copy with the RMAN BACKUP AS COPY command, the server session validates the blocks in the file and records the copy information in the control file. 验证并记录在 cf 中
Characteristics:
can be written only to disk.只能写到磁盘.注意该处是直接写入. image copy 可以拷贝到 tape.
If files are stored on disk, they can be used immediately by using the SWITCH command in RMAN, which is equivalent to the ALTER DATABASE RENAME FILE SQL statement. 在磁盘上可以马上使用
In an image copy, all blocks are copied, whether they contain data or not, because an Oracle database process copies the file and performs additional actions such as checking for corrupt blocks and registering the copy in the control file. 复制所有块, 包括未使用的.
NOCHECKSUM parameter. By default, RMAN computes a checksum for each block backed up and stores it with the backup. When the backup is restored, the checksum is verified.作为恢复时验证项之一.默认项.full or incremental level 0 backup because a file copy always includes all blocks. You must use the level 0 option if the copy will be used in conjunction with an incremental backup set. 可以作为全备份Advantage:
Disadvantage:
Configuration:
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;
Backup
BACKUP AS COPY DATABASE PLUS ARCHIVELOG;
BACKUP AS COPY DATAFILE '/ORADATA/users_01_db0l.dbf';
BACKUP AS COPY ARCHIVELOG LIKE '/arch$';
Backup Set vs Image Copyadvantage of creating backups as image copies
image copy, only the file or files need to be retrieved from your backup location. 仅提取必须文件backup sets, the entire backup set must be retrieved from your backup location before you extract the file or files that are needed. 整体提取.the advantage of creating backups as backup sets
data blocks are empty blocks.Image copies back up every data block, even if the data block is empty.Backup sets significantly reduce the space required by the backup.Proxy copies:
media manager to manage completely the transfer of data between disk and backup media.Image copiesBackup sets