Presentation is loading. Please wait.

Presentation is loading. Please wait.

4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.

Similar presentations


Presentation on theme: "4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications."— Presentation transcript:

1 4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications

2 Copyright © 2008, Oracle. All rights reserved. 4 - 2 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

3 Copyright © 2008, Oracle. All rights reserved. 4 - 3 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 Copyright © 2008, Oracle. All rights reserved. 4 - 4 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.

5 Copyright © 2008, Oracle. All rights reserved. 4 - 5 Configuring Persistent Settings for RMAN RMAN is preset with default configuration settings. Use the CONFIGURE command to: –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 and compression parameters to be used for backups

6 Copyright © 2008, Oracle. All rights reserved. 4 - 6 Using Enterprise Manager to Configure RMAN Settings

7 Copyright © 2008, Oracle. All rights reserved. 4 - 7 Control File Autobackups RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON; Best practice: Oracle recommends that you enable control file autobackup.

8 Copyright © 2008, Oracle. All rights reserved. 4 - 8 Control File Autobackups Full Notes Page

9 Copyright © 2008, Oracle. All rights reserved. 4 - 9 Managing Persistent Settings Use the SHOW command to list current settings: Use the CLEAR option of the CONFIGURE command to reset any persistent setting to its default value: RMAN> SHOW CONTROLFILE AUTOBACKUP FORMAT; RMAN> SHOW EXCLUDE; RMAN> SHOW ALL; RMAN> CONFIGURE BACKUP OPTIMIZATION CLEAR; RMAN> CONFIGURE MAXSETSIZE CLEAR; RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR;

10 Copyright © 2008, Oracle. All rights reserved. 4 - 10 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;

11 Copyright © 2008, Oracle. All rights reserved. 4 - 11 Configuring Devices for Backup Full Notes Page

12 Copyright © 2008, Oracle. All rights reserved. 4 - 12 Configuring and Allocating Channels for Use in Backups Configure automatic channels with the CONFIGURE command: Allocate channels manually with the ALLOCATE CHANNEL command within a RUN block: RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 1; RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt; RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt... RMAN> BACKUP DATABASE; RMAN> RUN { ALLOCATE CHANNEL ch1 DEVICE TYPE DISK; BACKUP DATABASE PLUS ARCHIVELOG; }

13 Copyright © 2008, Oracle. All rights reserved. 4 - 13 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 overridden 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;

14 Copyright © 2008, Oracle. All rights reserved. 4 - 14 Configuring Backup Optimization Full Notes Page

15 Copyright © 2008, Oracle. All rights reserved. 4 - 15 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

16 Copyright © 2008, Oracle. All rights reserved. 4 - 16 Practice 4 Overview: Configuring Backup Specifications This practice covers the following topics: Configuring RMAN persistent settings Configuring control file autobackup


Download ppt "4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications."

Similar presentations


Ads by Google