Professional Documents
Culture Documents
RMAN Backup Concepts
RMAN Backup Concepts
RMAN Backup Concepts
multisection backup :
backup set >> Multiple backup pieces >> one file section per piece.
The FILESPERSET parameter of the BACKUP command determines how many datafiles to put
in each backup set.
(the channel simultaneously writes blocks from 8 datafiles into each backup piece.)
The control file autobackup file name has a default format of %F for all device types, so that
RMAN can determine the file location and restore it without a repository. You can specify a
different format with the CONFIGURE CONTROLFILE AUTOBACKUP FORMAT command, but
all autobackup formats must include the %F variable. If you do not use the default format, then
during disaster recovery you must specify the format that was used to generate the
autobackups. Otherwise, RMAN cannot restore the autobackup.
Backup Output options :
1- Device Type :
BACKUP DATABASE DEVICE TYPE DISK;
3- Format :
BACKUP DATABASE FORMAT "/disk1/backup_%U"; # specifies a location on the file
system.
You can distribute backups in this manner by default in the future, by configuring
channels as follows:
4- Backup Tags.
BACKUP AS BACKUPSET COPIES 1 DATAFILE 7 TAG mondaybkp;
Backing Up a Whole Database with RMAN :
1. Start RMAN and connect to a target database and a recovery catalog (if used). 2. Ensure the
database is mounted or open. 3. Issue the BACKUP DATABASE command at the RMAN
prompt. The simplest form of the command requires no options or parameters:
BACKUP DATABASE;
The following example backs up the database, switches the online redo logs, and includes
archived logs in the backup:
1. Start RMAN and connect to a target database and a recovery catalog (if used). 2. If the
database instance is not started, then either mount or open the database. 3. Run the BACKUP
TABLESPACE command or BACKUP DATAFILE command at the RMAN prompt. The following
example backs up the users and tools tablespaces to tape:
The following example uses an SBT channel to back up data files 1 through 4 and a data file
copy stored at /tmp/system01.dbf to tape:
Manual Backup :
1. Start RMAN and connect to a target database and a recovery catalog (if used). 2. Ensure the
target database is mounted or open. 3. Execute the BACKUP command with the desired control
file clause. The following example backs up tablespace users to tape and includes the current
control file in the backup:
The following example backs up the current control file to the default disk device:
The following example backs up the control file copy created in the previous example to tape:
1. Start RMAN and connect to a target database and a recovery catalog (if used). 2. Ensure the
target database is mounted or open. The database must have been started with a server
parameter file. If the instance is started with a client-side initialization parameter file, then RMAN
issues an error if you execute BACKUP ... SPFILE. 3. Execute the BACKUP ... SPFILE
command. The following example backs up the server parameter file to tape:
An effective way of backing up archived redo logs is the BACKUP ... PLUS ARCHIVELOG
command, which causes RMAN to do the following:
2. Runs BACKUP ARCHIVELOG ALL. If backup optimization is enabled, then RMAN skips logs
that it has already backed up to the specified device.
1. Start RMAN and connect to a target database and a recovery catalog (if used).
3. Run the BACKUP command with the DELETE INPUT clause. Assume that you run the
following BACKUP command:
In this case, RMAN backs up only one copy of each log sequence number in these archiving
locations. RMAN deletes all copies of any log that it backed up from both the fast recovery area
and the other archiving destinations. If you had specified DELETE INPUT rather than DELETE
ALL INPUT, then RMAN would have only deleted the specific archived redo log files that it
backed up. For example, RMAN would delete the logs in /arc_dest1 if these files were used as
the source of the backup, but leave the contents of the /arc_dest2 intact