05-RMAN Backup and Configuration
05-RMAN Backup and Configuration
1
RMAN backup and configuration-CH5
Backup Solutions 4
Backup Optimization 14
2
RMAN backup and configuration-CH5
Key words:
RMAN, FRA, Sysbackup, RMAN backups, RMAN restore, RMAN
recovery, RMAN configuration, Retention Policy, Recovery
Window, Redundancy
Brief:
In this chapter we will introduce to Backup solutions, Rman
connections, Commands, Persistent Settings and Rman backup
features.
Objective:
In this chapter, we will explain some concepts related to RMAN
usage, persistent setting of RMAN and backup using RMAN this
includes:
▪ Backup Solutions
▪ RMAN VS User-managed backups.
▪ Connection types with RMAN.
▪ Types of RMAN Commands
▪ RMAN Persistent Settings.
▪ Specifying a Retention Policy
▪ Control File Autobackups
▪ Use RMAN to backup
▪ Using a Media Manager
▪ Backup Optimization
3
RMAN backup and configuration-CH5
Figure 1_5
4
RMAN backup and configuration-CH5
5
RMAN backup and configuration-CH5
6
RMAN backup and configuration-CH5
7
RMAN backup and configuration-CH5
Figure 2_5
6. Managing Persistent Settings:
Use multiple streams of data to and from a device:
RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 3;
8
RMAN backup and configuration-CH5
Figure 3_5
9
RMAN backup and configuration-CH5
Figure 4_5
6.3. Control File Autobackups.
To easily recover from the loss of all control file copies, you
should configure RMAN to take automatic backups of the
control file. The automatic backup of the control file occurs
independently of any backup of the current control file explicitly
requested as part of your backup command. If you are running
RMAN in NOCATALOG mode, it is highly recommended that
you activate control file autobackup. Otherwise, if you lose your
control file, your database may be unrecoverable.
To configure control file autobackup, modify the backup policy
for your database by using the following RMAN command:
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
By default, control file autobackups are disabled. If you enable
control file autobackups, then RMAN automatically backs up
the control file and the current server parameter file (if used to
start up the database) under the following circumstances:
• At the end of a run script
• When a successful backup is recorded in the RMAN
repository
• When a structural change of the database occurs the
Oracle kernel itself makes the backup (for example, after
DDL operations that affect the content of the control file)
The control file autobackup file name has a default format of
%F for all device types, so that RMAN can infer the file location
and restore it without a repository. This variable format
translates into c-IIIIIIIIII-YYYYMMDD-QQ, where:
10
RMAN backup and configuration-CH5
Figure 5_5
6.5. Specifying a Backup Destination
Backups can be written to a designated disk directory, a media
management library (MML), or the Fast Recovery Area.
Specifying a disk directory or the Fast Recovery Area means
that backups go to hard-disk media. Typically, backups are
regularly moved offline to tape via the media management
interface in order to maintain disk space availability. Any disk
directory can be specified as the destination of a backup
provided that it already exists. A media management library can
be used to copy files to tape devices, or to carry out proxy
copies. A proxy copy is where the MML is requested to make a
copy of a file to a disk or tape device. The MML must be able to
provide the proxy copy service for this to work. If you set up a
12
RMAN backup and configuration-CH5
Tape:
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO TAPE;
13
RMAN backup and configuration-CH5
14
RMAN backup and configuration-CH5
run {
SET COMPRESSION ALGORITHM
'HIGH/MEDIUM/LOW/BASIC';
..
}
15