You are on page 1of 13

Configuring Backup Specifications

Copyright 2007, Oracle. All rights reserved.

Objectives
After completing this lesson, you should be able to: Use Enterprise Manager to configure backup settings Enable control file autobackup Allocate channels to use in backing up Configure backup optimization

4-2

Copyright 2007, Oracle. All rights reserved.

Using RMAN to Create Backups


When creating a backup using RMAN, you can specify: Type: Full or incremental Files to back up: Entire database, data files, control file, server parameter file, archived redo log files Backup type: Image copy or backup set Proxy options: Pass on to the Media Management Library the responsibility of copying the files.

4-3

Copyright 2007, Oracle. All rights reserved.

Backup Destinations
Backups can be written to: Disk directory Media Management Library
Typically used for disaster recovery, when disk backups are lost Oracle Secure Backup provides one.

Flash Recovery Area


This is the disk area set aside for backup and recovery and flashback database purposes. Define the location and the size. Files are automatically named by using Oracle Managed Files. Files are automatically retained and deleted as necessary.

4-4

Copyright 2007, Oracle. All rights reserved.

Configuring Persistent Settings for RMAN


RMAN is preset with default configuration settings. Use the CONFIGURE command to:

4-5

Configure automatic channels Specify the backup retention policy Specify the number of backup copies to be created Set the default backup type to BACKUPSET or COPY Limit the size of backup pieces Exempt a tablespace from backup Enable and disable backup optimization Configure automatic backups of control files Define the archivelog deletion policy Specify the parallelism for a device Set the encryption parameters to be used for backups
Copyright 2007, Oracle. All rights reserved.

Using Enterprise Manager to Configure RMAN Settings

4-6

Copyright 2007, Oracle. All rights reserved.

Control File Autobackups

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

Best practice: Oracle recommends that you enable control file autobackup.

4-7

Copyright 2007, Oracle. All rights reserved.

Managing Persistent Settings


Use the SHOW command to list current settings:
RMAN> SHOW CONTROLFILE AUTOBACKUP FORMAT; RMAN> SHOW EXCLUDE; RMAN> SHOW ALL;

Use the CLEAR option of the CONFIGURE command to reset any persistent setting to its default value:
RMAN> CONFIGURE BACKUP OPTIMIZATION CLEAR; RMAN> CONFIGURE MAXSETSIZE CLEAR; RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR;

4-9

Copyright 2007, Oracle. All rights reserved.

Configuring Devices for Backup

RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 3;

RMAN> CONFIGURE DEVICE TYPE DISK 2> BACKUP TYPE TO COMPRESSED BACKUPSET;

RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY;

4 - 10

Copyright 2007, Oracle. All rights reserved.

Configuring and Allocating Channels for Use in Backups


Configure automatic channels with the CONFIGURE command:
RMAN> RMAN> RMAN> RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 1; CONFIGURE DEFAULT DEVICE TYPE TO sbt; CONFIGURE CHANNEL DEVICE TYPE sbt ... BACKUP DATABASE;

Allocate channels manually with the ALLOCATE CHANNEL command within a RUN block:
RMAN> RUN { ALLOCATE CHANNEL ch1 DEVICE TYPE DISK; BACKUP DATABASE PLUS ARCHIVELOG; }

4 - 12

Copyright 2007, Oracle. All rights reserved.

Configuring Backup Optimization


The BACKUP command skips backing up files when the identical files have already been backed up. It is used when the following conditions are true:
Backup optimization is enabled. BACKUP DATABASE, BACKUP ARCHIVELOG with ALL or LIKE options, or BACKUP BACKUPSET ALL commands are executed. Only one type of channel is allocated.

It can be overriden with the FORCE option. It is always used for RECOVERY AREA, DB_RECOVERY_FILE_DEST, and RECOVERY FILES BACKUP options.
RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
4 - 13

Copyright 2007, Oracle. All rights reserved.

Summary
In this lesson, you should have learned how to: Use Enterprise Manager to configure backup settings Enable control file autobackup Allocate channels to use in backing up Configure backup optimization

4 - 15

Copyright 2007, Oracle. All rights reserved.

Practice 4 Overview: Configuring Backup Specifications


This practice covers the following topics: Configuring RMAN persistent settings Configuring control file autobackup

4 - 16

Copyright 2007, Oracle. All rights reserved.

You might also like