Backup - Oracle

Topics | How To | Troubleshoot | Related Topics


Overview

Supported Backup Types

Oracle Backup Jobs

Backup Considerations

Advanced Backup Options


Overview

Plan your backup jobs for this agent by reviewing the following information:


Supported Backup Types

This agent supports the following backup types:

For Oracle On Demand backup jobs, in cases where multiple instances are backed up that are not all in the same mode, Job Manager will report the backup type as either Full (when the first instance in the backup script is in OPEN mode) or as Offline Full (when the first instance in the backup script is in MOUNTED mode).

Always ensure that the archive logs are backed up prior to deleting them.

Oracle Backup Jobs

This agent has the following unique functionality.

Oracle Selective Online Full Backups

This is a special type of backup where a full backup is taken of the Oracle database while it is online, and the backup data can be copied to a selective copy (during an auxiliary copy operation) from which it can be restored.

The advantage of this type of backup is that both data and logs use the same storage policy, which means that they reside together on the same media, and are completely self-contained for restore and long term archiving purposes. This is especially useful in disaster recovery situations by alleviating the need to locate different offsite media from various jobs to gather the necessary data and logs to recover the database. Also, the data aging rules for selective online full backups are different from regular full backups, as both data and logs are aged together under the same storage policy.

There are certain rules that pertain to this type of backup that you should keep in mind:

 

Optional Configuration for Oracle Backups

Depending upon how your Oracle server and databases are set up, you may need to perform the following addition configuration.

Allocate Command Syntax for Oracle Command Line Backups on a Unix Cluster

In order to perform Oracle Command Line backups on a Unix cluster, you need to use the following syntax for the allocate command within the RMAN script:

allocate channel ChannelName type 'sbt_tape' PARMS="ENV=(CVOraVMName=VirtualMachineName)";

where ChannelName can be chN (N is a stream number: 1, 2, ...) and VirtualMachineName should be the name of the virtual machine.

Configuring Autobackup of Control Files

The control file contains metadata about the physical structure of the database including the location of all files, the current database state and system change number (SCN), as well as information about backups performed in RMAN. Oracle 9.2 and 10g provide the capability to configure autobackup of control files in RMAN so that they are automatically backed up along with the server parameter file during backup operations. The purpose of the control file autobackup is to provide a way to restore the backup repository contained in the control file when the control file is lost and the recovery catalog is either lost or was never used. You do not need a recovery catalog or target control file to restore the control file from autobackup. If you don’t use the catalog database for Oracle backups, and the entire database and control file are lost, then a restore of the entire database with control files will fail unless you have enabled autobackup of control files in RMAN.

See Configure Autobackup of Control Files for step-by-step instructions.

Configuring the Lights Out Script to Shut Down the Database for Offline Backups

In order to perform offline backups of the Oracle database, all users must be logged out of the database and it must be completely shut down. Certain options are available in the Subclient Properties (Backup Arguments) tab that allow you to automate the graceful shutdown of the Oracle database to perform offline backups. A brief description of these options, and their role in the shutdown sequence are provided below.

  1. For Oracle on Unix, a warning message is issued to the physical node to notify users that the database will be shut down in a specified number of minutes and request that they log out of the database. This message is issued when the Warning option is enabled. Note that the Warning option is not supported for Oracle on Windows platforms.

  2. For Oracle on Unix, after the warning message has been issued to the physical node, the lights out process will wait for the period of time specified in the Delay Time (min) option while users log out, before an attempt is made to shut down the database. After waiting the specified Delay Time, the SHUTDOWN IMMEDIATE statement is issued to the server.

  3. The status of the database will be then checked to determine whether it is shutdown. If it is not shutdown, the system will retry issuing the SHUTDOWN IMMEDIATE statement, based on the following sequence of settings:
    1. Sleep Time (sec) - The lights out process will wait (i.e., sleep) for the specified number of seconds before retrying the SHUTDOWN IMMEDIATE statement and checking the status again. Because the goal is to shut down the database as quickly as possible, the Sleep Time in seconds is tried first, and must exhaust all the number of tries in the Tries Number setting located below the Sleep Time (sec) option, before switching over to the Sleep Time (min) option.

    2. Sleep Time (min) - If the number of tries limit has been reached for the Sleep Time (sec) option and the database has not been shut down yet, the lights out process will then begin waiting for the number of minutes specified in the Sleep Time (min) option before retrying the SHUTDOWN IMMEDIATE statement and rechecking the status again. The reasoning behind this approach is that once it becomes apparent to the system that it can't shut down the database quickly, it probably means that someone must be still logged in to the database in order to complete their work, and the system will retry at less frequent intervals, in this case minutes not seconds, in order to give the user time to complete and save the work. The system will keep retrying to shut down the database until it exhausts the number of tries in the Tries Number setting located below the Sleep Time (min) option. If the database is successfully shutdown, the backup will begin, otherwise the sequence continues to the next step.

  4. Once the Tries Number limit is reached for the Sleep Time (min) option, then a SHUTDOWN ABORT statement will be issued to the server. If the SHUTDOWN IMMEDIATE statement has already completed within the specified time, this has no effect. Otherwise the SHUTDOWN ABORT overrides the SHUTDOWN IMMEDIATE statement and shuts down the database.

See Configure the Lights Out Script to Shut Down the Database for Offline Backups for step-by-step instructions.

Configuring the Oracle Tag for Backups

You can configure the Oracle Tag for backups on a subclient to uniquely identify a particular backup copy. The Oracle Tag specified for a backup can be used during a restore operation to tell the system which particular backup to restore the data from. Use of the Oracle Tag backup argument provides an alternative to point-in-time restores.

See Configure Backup Arguments for step-by-step instructions.

Backup Arguments

Some database iDataAgents run backups using a system-generated script that is run behind the scenes from a command line. The CommCell Console serves as a front-end user interface for specifying various backup arguments and parameters that are passed to the backup script that is run. Depending on your agent, you can specify, for example, the application-specific Backup Level, whether the backups will be online or offline, as well as buffer and bundle sizes, among other settings. Although the backup arguments/parameters vary among iDataAgents, they all function in a similar manner. These arguments are set at the subclient level from the respective iDataAgent's Subclient Properties dialog box tab.

For step-by-step instructions, see Configure Backup Arguments.

Table Backup

You can restore and recover individual database tables from non-system tablespaces to the same database or to another database. In order to restore individual Oracle or Oracle RAC database tables, you need to select the Enable Table Browse option in the Subclient Properties dialog box for the subclient prior to a backup. Note that this option can be enabled on only one subclient. Also, ensure that this option is not enabled on the LOGS-only subclient. When this option is enabled, information such as Oracle tablespace, user ID and table name mappings are stored in the CommServe during the backup operation.

For step-by-step instructions on running a table restore, see Restore and Recover One or More Database Table(s).


Backup Considerations

Before performing any backup procedures for this agent, review the following information:

 

Back to Top