Lessoon 04 Config Bu

download Lessoon 04 Config Bu

of 13

Transcript of Lessoon 04 Config Bu

  • 8/12/2019 Lessoon 04 Config Bu

    1/13

    Copyright 2007, Oracle. All rights reserved.

    Configuring Backup Specifications

  • 8/12/2019 Lessoon 04 Config Bu

    2/13

    Copyright 2007, 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

  • 8/12/2019 Lessoon 04 Config Bu

    3/13

    Copyright 2007, 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.

  • 8/12/2019 Lessoon 04 Config Bu

    4/13

    Copyright 2007, 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.

  • 8/12/2019 Lessoon 04 Config Bu

    5/13

    Copyright 2007, Oracle. All rights reserved.4 - 5

    Configuring Persistent Settings for RMAN

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

    Configure automatic channels

    Specify the backup retention policy

    Specify the number of backup copies to be created Set the default backup type to BACKUPSETor 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

  • 8/12/2019 Lessoon 04 Config Bu

    6/13

    Copyright 2007, Oracle. All rights reserved.4 - 6

    Using Enterprise Manager to Configure

    RMAN Settings

  • 8/12/2019 Lessoon 04 Config Bu

    7/13Copyright 2007, 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/12/2019 Lessoon 04 Config Bu

    8/13Copyright 2007, Oracle. All rights reserved.4 - 9

    Managing Persistent Settings

    Use the SHOWcommand to list current settings:

    Use the CLEARoption of the CONFIGUREcommand 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;

  • 8/12/2019 Lessoon 04 Config Bu

    9/13Copyright 2007, 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;

  • 8/12/2019 Lessoon 04 Config Bu

    10/13Copyright 2007, Oracle. All rights reserved.4 - 12

    Configuring and Allocating Channels for

    Use in Backups

    Configure automatic channels with the CONFIGUREcommand:

    Allocate channels manually with the ALLOCATE CHANNEL

    command within a RUNblock:

    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;

    }

  • 8/12/2019 Lessoon 04 Config Bu

    11/13Copyright 2007, Oracle. All rights reserved.4 - 13

    Configuring Backup Optimization

    The BACKUPcommand skips backing up files when theidentical files have already been backed up.

    It is used when the following conditions are true:

    Backup optimization is enabled.

    BACKUP DATABASE, BACKUP ARCHIVELOGwith ALLorLIKEoptions, or BACKUP BACKUPSET ALLcommands are

    executed.

    Only one type of channel is allocated.

    It can be overriden with the FORCEoption.

    It is always used for RECOVERY AREA,DB_RECOVERY_FILE_DEST, and RECOVERY FILES

    BACKUPoptions.

    RMAN> CONFIGURE BACKUP OPTIMIZATION ON;

  • 8/12/2019 Lessoon 04 Config Bu

    12/13Copyright 2007, 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

  • 8/12/2019 Lessoon 04 Config Bu

    13/13Copyright 2007 Oracle All rights reserved4 16

    Practice 4 Overview:

    Configuring Backup Specifications

    This practice covers the following topics: Configuring RMAN persistent settings

    Configuring control file autobackup