Topics | How To | Troubleshoot | Related Topics
Plan your backup jobs for this agent by reviewing the following information:
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. |
This agent has the following unique functionality.
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:
During selective online full backups, if the data streams (defined at the subclient level) is less than the archive log streams (defined at the instance level), then both the data phase and the archive log phase will use the same number of streams defined for the data in the subclient, and will ignore the number of streams set for the archive logs.
Depending upon how your Oracle server and databases are set up, you may need to perform the following addition configuration.
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.
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 dont 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.
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.
See Configure the Lights Out Script to Shut Down the Database for Offline Backups for step-by-step instructions.
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.
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.
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).
Before performing any backup procedures for this agent, review the following information:
If you have created subclients for either online or offline databases, and have included the archived log files and control files in these subclients, you can create a complete backup of the database by backing up these subclients. If you have created a group of online subset subclients for the database, you must backup all of these subclients to create a complete backup. If you have created separate subclients for archive logs and control files, and if they are not included with the subclients defined for online databases, offline databases or subsets, then the subclients for archive logs and control files must also be backed up to create a complete backup.
You can preview the backup and restore scripts that will be submitted to RMAN to back up or restore data on a client. Previewing the script before running a backup or restore is useful for identifying whether the selected backup or restore options will yield the desired result in the script. The script text can be previewed from the Backup Options and Restore Options dialogs, and provides the capability for you to copy the text from the display window for manual submission in RMAN, if desired.
See Preview a Script for step-by-step instructions.
You can run a validate job to ensure the integrity of the data and availability of the media before actually running a backup or restore job. When the validate option is selected on the Subclient Properties (Backup Arguments) tab or Advanced Restore Options (Options) tab, this will cause the system to simulate either a backup or restore job without using any media or over-writing the Oracle database. After the validate job completes, you can view the log file for the job to identify and correct any validation issues prior to running the backup or restore.
For step-by-step instructions, see Validate a Backup or Restore.
Review Performance Tuning - Oracle or Performance Tuning - Oracle RAC for details on setting configuration parameters to optimize backup and restore operations for your site.
Multiple streams are supported for data protection and recovery operations with this agent; however, before utilizing multiple streams, you should understand how their use affects operations. For more information, see Streams.
When creating/modifying an instance for Oracle or Oracle RAC iDataAgent, make sure that you do not enter a / at the end of the string for Oracle Home path. Due to limitations in the Oracle application, having a / at the end of the string for Oracle Home path can cause backups to fail occasionally.
For Oracle and Oracle RAC iDataAgent, when you resume a backup job, if the subclient content includes the SP file, the backup job gets restarted from the beginning and all the data that was backed up previously gets backed up again. This causes an incorrect display of data transferred count in job details.
If the Oracle offline backup with lights out option fails when you use the default value for Tries Number in the Subclient Properties (Backup Arguments) window, then increase the value to a number greater than or equal to 5.
When you configure the Oracle database using RMAN, determine how long you need to retain the backup and recovery records in the control file and set the retention value using the database parameter CONTROL_FILE_RECORD_KEEP_TIME. By default, the value for this parameter is set to 7. This means that Oracle will maintain the backup and recovery information in the control file for a period of 7 days. Now, if you perform a point in time recovery to a period greater than 7 days, the restore operation fails. You can view the current setting of the CONTROL_FILE_RECORD_KEEP_TIME parameter as follows:
SQL> show parameter CONTROL_FILE_RECORD_KEEP_TIME;
It is always recommended that you set the CONTROL_FILE_RECORD_KEEP_TIME parameter to a value greater than the RMAN retention period. Otherwise, you will have backups available in the backup media without any related backup information in the control file. For more information, refer Oracle documentation.
For Oracle and Oracle RAC iDataAgents, if the Oracle Instance (SID) name is different from the database name or if the Oracle Instance (SID) name configured in the CommCell is different from the actual instance name (case sensitive), then Oracle offline backups with lights out script may fail. In such cases, you need to select the Use SQL Connect option in the Subclient Properties (Backup Arguments) tab in order to connect to the database using the Connect String value configured for the instance in the Instance Properties (Details) tab. Also, make sure that the Connect String value does not include "/" when used with the Use SQL Connect option.
When Oracle and DB2 iDataAgents are installed on the same client, make sure that both Oracle and DB2 users are part of the primary user groups.