Topics | How To | Troubleshoot | Related Topics
Backup Considerations for This Agent
SAP for Oracle backups can be run from both the CommCell Console and the SAP command line. However, SAP for MAXDB backups can be run only from the SAP command line.
Plan your backup jobs for this agent by reviewing the following information:
This agent supports the following backup types:
For an overview of the supported backup types, see Full Backups and Incremental Backups. |
Before you run SAP for Oracle or SAP for MAXDB backups, ensure that the appropriate parameter file containing information regarding the instance and the client is in place. Be sure to include at least the CVInstanceName parameter name followed by the name of the instance and also the CVClientName parameter name followed by the name of the client.
For any SAP for Oracle version, if your backups and restores will be using the SAP utility and you want to use the UTIL_FILE option, be sure to modify the init<SID>.utl file by adding values for the following parameters. Note that some parameters are optional.
NOTES:
- Ensure that you modify the storage policy as appropriate.
NOTES:
- Ensure that the SAP for Oracle iDataAgent is installed on both the source computer and the target computer, and run the restore on the target computer.
For example:
CvInstanceName
Instance001
CvClientName
bumblebee
numstreams
1
CV_restCopyPrec
1
srcCrossClient
hotdog
SelectiveOnlineFull
1
For SAP for Oracle on Unix, if your backups will be using the RMAN utility, be sure to do the following before you run any backups:
RMAN_PARMS="SBT_LIBRARY=/<install path>/<Base directory version>/libobk.<xx>,ENV=(CvClientName=<client name>,CvInstanceName=<instance name>"
For example:
RMAN_PARMS="SBT_LIBRARY=/opt/hds/Base64/libobk.so,ENV=(CvClientName=aha,CvInstanceName=Instance001)"
When performing backups using RMAN utility on a Solaris client, ensure that you set the following parameter on the client computer:
crle -64 -c /var/ld/64/ld.config -l/opt/calypso/Base64:/lib/64:/usr/lib/64
For SAP for Oracle on Windows, if your backups will be using the RMAN utility, be sure to modify the SAP database init file (init<SID>.sap) by adding the following:
RMAN_PARMS="ENV=(CvClientName=<client name>,CvInstanceName=<instance name>"
For example:
RMAN_PARMS="ENV=(CvClientName=bumblebe,CvInstanceName=Instance001)"
This agent has the following unique functionality.
Full and partial full backups are supported by the SAP for Oracle iDataAgent. Full backups are supported by the SAP for MAXDB iDataAgent. A full backup contains an entire database, and a partial full backup can contain one or more tablespaces or datafiles. For the SAP for Oracle iDataAgent, full and partial full backups are supported using either the util_file or rman_util option. The full backup or partial full backup becomes a baseline to which subsequent incremental backups are applied should data restoration be requested. For more information on full backups, see the appropriate SAP documentation.
For SAP for MAXDB, an online full backup job is copied to a selective copy if the full backup job cycle completes successfully and if the selective copy feature is enabled. In fact, for a successful cycle, all of the jobs within the cycle are copied to a selective copy. If the cycle is not successful, none of the jobs are copied to a selective copy.
To enable backups using selective copy for SAP for MAXDB from the CommCell Console, execute the following command in the CommServe SQL database:
insert into gxglobalparam values ('ForceSAP_longRetention', '1')
To disable the selective copy feature, execute the following command:
delete from gxglobalparam where name = 'ForceSAP_longRetention'
Keep in mind that selective copies can be time-based. For an overview, see Time Based Selective Copies. |
To enable backups using selective copy from the client, include the SelectiveOnlineFull parameter in the param file and set the parameter value to 1. See Parameter File for more information.
Successful completion of a online full backup cycle requires the successful completion of a full data backup job and a corresponding configuration job followed eventually by a full log backup job and a corresponding configuration job. (Configuration jobs are secondary jobs that are automatically spawned.) As such, the shortest successful cycle can be illustrated as follows:
DATA, FULL (pass), CONFIG, FULL (pass)
LOG, FULL (pass), CONFIG, FULL (pass)
In this example, each required job has completed successfully within the full backup cycle. Therefore, the full data backup job (along with all the other jobs in the cycle) will be copied to a selective copy.
A full backup cycle can include other backup job types (e.g., incremental backup jobs). If the full backup cycle is successful, these jobs are also copied to a selective copy. The next example includes incremental backup jobs within the cycle:
DATA, FULL (pass), CONFIG, FULL (pass)
DATA, INCR (pass), CONFIG, INCR (pass)
LOG, FULL (pass), CONFIG, FULL (fail)
DATA, INCR (pass), CONFIG, INCR (pass)
LOG, FULL (pass), CONFIG, FULL (pass)
In this case, the first attempt at running the configuration job for the full log backup job failed; however, the second attempt succeeded and therefore completed a successful cycle. As a result, each job (total of 10) within the cycle will be copied to a selective copy. This includes the one configuration job that failed.
In the next example, a full backup cycle is started before the cycle before it completes:
DATA, FULL (pass), CONFIG, FULL (pass)
DATA, INCR (pass), CONFIG, INCR (pass)
DATA, FULL (pass), CONFIG, FULL (pass)
As such, none of the four backup jobs in the first cycle can be copied to a selective copy.
|
When a full backup is taken of the SAP for Oracle database while it is online, you can use the CommCell Console to copy the backup data to a selective copy (during an Auxiliary Copy operation) from which it can be restored.
To enable backups using selective copy from the client, include the SelectiveOnlineFull parameter in the param file and set the parameter value to 1. See Parameter File for more information.
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.
Incremental backups are supported by the SAP for Oracle iDataAgent and the SAP for MAXDB iDataAgent. For the SAP for Oracle iDataAgent, incremental backups are supported only when you are using the rman_util (Oracle Recovery Manager) option. For more information on incremental backups, see the appropriate SAP documentation.
Note the following:
Before performing any backup procedures for this agent, review the following information:
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.
For SAP for Oracle, multistream log backups are not supported from the CommCell Console. Such backups are supported from the Command Line Interface.