Backing Up the Protected Database Using the Command Line
Use regular RMAN commands to create backups of your protected database. To schedule protected database backups, create a script that contains the required backup commands and then use any scheduling utility to schedule backups. You can create full backups, incremental backups, archived redo log backups, control file backups, or backups of specific data files and tablespaces. To implement the incremental-forever backup strategy, you need one level 0 incremental database backup and successive periodic level 1 incremental backups.
Because multiple protected databases are backed up to the same Recovery Appliance, backup piece names must be unique across all protected databases. Use the substitution variables %d_%U
in the FORMAT
string of BACKUP
commands to ensure that backup piece names are unique.
See Also:
Oracle Database Backup and Recovery Reference for information about the substitution variables
To implement the incremental-forever backup strategy using the command line:
- Create a full backup of the protected database that will form the basis of the incremental-forever backup strategy as described in "Creating the Initial Full Backup of the Protected Database".
- Create and schedule regular level 1 incremental backups that include archived redo logs as described in "Creating Incremental Backups of the Protected Database".
Creating the Initial Full Backup of the Protected Database
This section describes how to create a one-time full backup of the whole protected database that includes archived redo logs. Assume that the protected database is in ARCHIVELOG
mode and is configured to automatically back up the control file and server parameter file.
To create a full backup of the whole protected database:
Creating Incremental Backups of the Protected Database
This section describes how to create a script that performs level 1 incremental backups of the whole protected database and schedule this script to be run at 1 am every day. The backup includes archived redo log files. You can use any job scheduler, including adding your customized RMAN script in an RMAN job in Cloud Control, to schedule the RMAN script to be run at a specified time every day.
To create and schedule a level 1 incremental backup that includes archived redo log files: