Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Backup - Backing Up Backup

Back


Backing Up Backup Sets

diagram_backup_backupset_

BACKUP BACKUPSET;
-- Prerequisite: sbt channel have been configured.

-- Backup the database and archived redo logs to disk as backup sets.
BACKUP DEVICE TYPE DISK AS BACKUPSET DATABASE PLUS ARCHIVELOG;

-- Backup all database files and archived redo logs to SBT (System Backup to Tape) storage as backup sets.
BACKUP DEVICE TYPE sbt BACKUPSET ALL;


-- Optional: Perform a backup of all database files and archived redo logs to SBT (System Backup to Tape) storage as backup sets, and delete the input files (backup pieces) after a successful backup.
BACKUP DEVICE TYPE sbt BACKUPSET ALL DELETE INPUT;

Lab: Backing up Backup Set

-- backup database and archivelog as backupset, by default,the device type is disk
BACKUP AS BACKUPSET DATABASE PLUS ARCHIVELOG;

-- Backup all backupset
BACKUP BACKUPSET ALL;
-- note that here using default device type, the disk
-- the backup of backup set is backed up to FRA

lab_backup_backupset


Backing Up Image Copies

-- backs up the latest image copy of the database to tape:
BACKUP DEVICE TYPE sbt COPY OF DATABASE;

-- backs up the latest image copy backup of a database in backup sets on tape, and then deletes the input disk backups:
BACKUP DEVICE TYPE sbt COPY OF DATABASE DELETE INPUT;

TOP