Creating Local Backups

When you create protected database backups to local disk storage, metadata about these backups is stored in an RMAN recovery catalog. If an RMAN recovery catalog is not configured, or if you do not connect to the catalog, then the metadata is stored in the protected database control file.

To create local backups of the protected database:

  1. Connect RMAN to the protected database as TARGET and connect to an RMAN recovery catalog as CATALOG.

    The following command connects as TARGET to the protected database with service name hr_ptdb and as CATALOG to an RMAN recovery catalog database with net service name catdb. rco is the RMAN recovery catalog owner and hradm is a user with SYSBACKUP privileges on the protected database. Enter the password for the hradm and rco users when prompted.

    % rman TARGET hradm@hr_ptdb CATALOG rco@catdb
    
  2. Create local backups of the protected database.

    Depending on your backup strategy, you can create full or incremental backups. Include archived redo log files in all backups to minimize the time required to recover from a failure. Allocate an RMAN channel of device type DISK to store backups to the local disk.

    The following example allocates a disk channel and creates a level 1 incremental backup of the entire database including the archived redo log files:

    RUN
    {
       ALLOCATE CHANNEL d1 DEVICE TYPE DISK;
       BACKUP INCREMENTAL LEVEL 1
          DATABASE
          PLUS ARCHIVELOG;
    }
    

    Because no location is specified in the command, the backups are stored in the local fast recovery area that is configured for the protected database. To store backups on locally configured tape devices, allocate an SBT channel that corresponds to the legacy media management software.