Veritas NetBackup™ for SAP Administrator's Guide
- Introduction to NetBackup for SAP
- Introduction to NetBackup SAP HANA
- Installing NetBackup for SAP
- Installing NetBackup for SAP HANA
- Configuring NetBackup for SAP
- About configuring a backup policy for an SAP database
- NetBackup for SAP backup scripts
- About SAP configuration files
- Configuring NetBackup for SAP HANA
- Performing backups and restores of SAP
- Using BRTools to start an SAP backup (for Oracle database only)
- Performing an SAP archive
- Restarting failed NetBackup for SAP backups and restores
- Performing backups and restores of SAP HANA
- NetBackup for SAP with Snapshot Client
- How the NetBackup for SAP Snapshot Client works
- About configuring Snapshot Client with NetBackup for SAP
- About configuring NetBackup for SAP block-level incremental backups on UNIX
- Configuring policies for BLI backups with NetBackup for SAP
- About NetBackup for SAP restores of volumes and file systems using snapshot rollback
- NetBackup for SAP on MaxDB databases
- Troubleshooting NetBackup for SAP and SAP HANA
- NetBackup debug logs and reports
- sapdba logs and messages (Oracle-based SAP environments only)
- About troubleshooting NetBackup for SAP HANA
- Appendix A. backint command line interface
- Appendix B. Input and output files for SAP HANA
- Appendix C. backint -i in_file contents
- Appendix D. backint -o out_file contents
- Appendix E. NetBackup for SAP environment variables for backint
- Appendix F. NetBackup for SAP configuration or bp.conf file settings
- Appendix G. Parameters used in initSID.utl
- sort_backup_type <value>
- sort_restore_type <value>
- Appendix H. Configuring split mirror backups
- Appendix I. Register authorized locations
Example: Restarting a failed NetBackup for SAP backup job (UNIX or Linux)
This example shows how to restart a failed backup job on UNIX or Linux. In this example, assume the following:
The backup job was deliberately cancelled from the activity manager. In a real user case, a job might fail for different reasons.
You enabled checkpoint (the
option in the policy).You ran the backup according to the following brbackup command:
brbackup -d util_file -t offline -m all -c force
The following is an excerpt from the output log:
BR0280I BRBACKUP time stamp: 2006-02-28 21.07.59 BR0057I Backup of database: SUD BR0058I BRBACKUP action ID: bdsbecnl BR0059I BRBACKUP function ID: aff BR0110I Backup mode: ALL BR0077I Database files for backup:
/oracle/SUD/origlogA/log1_m1.dbf /oracle/SUD/origlogB/log2_m1.dbf /oracle/SUD/origlogA/log3_m1.dbf /oracle/SUD/origlogB/log4_m1.dbf /oracle/SUD/saparch/cntrl/cntrlSUD.dbf
BR0061I 29 files found for backup, total size 853.604 MB
The previous output log shows the 29 files for backup. brbackup calls the NetBackup SAP agent for backup.
In this example, we have configured the checkpoint frequency for 5 minutes. By the time first checkpoint was taken (that is, in the first 5 minutes), 13 files were backed up. The user killed the job from the NetBackup activity monitor after NetBackup took the first checkpoint. backint returned #SUCCESS messages to brbackup for 13 files that were backed up. For the files that were yet to be backed up, backint retuned #ERROR. The following are the output messages from the brbackup log:
BR0280I BRBACKUP time stamp: 2006-02-28 21.08.04 BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of '/usr/sap/SUD/SYS/exe/run/backint -u SUD -f backup -I /oracle/ SUD/sapbackup/.bdsbecnl.lst -t file -p /home1/orasap/ora920/dbs/initSUD.utl -c':
*******************************************************************
Program: /usr/sap/SUD/SYS/exe/run/backint 6.5 Input File: /oracle/SUD/sapbackup/.bdsbecnl.lst Profile: /home1/orasap/ora920/dbs/initSUD.utl
Program: backint 6.5 Input File: C:\oracle\SUD\sapbackup\.bdsbedhj.lst Profile: C:\oracle\ora920\dbs\initSUD.utl
Function: BACKUP Backup Type: BACKUP_FILE ******************************************************************* BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
#FILE..... /oracle/SUD/sapdata1/btabd_1/btabd.data1
#SAVED.... VXF1141141105 BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
#FILE..... /oracle/SUD/sapdata2/btabi_1/btabi.data1
#SAVED.... VXF1141141105 …. …. BR0233E Backup utility has reported an error while saving file
/oracle/SUD/saparch/cntrl/cntrlSUD.dbf
******************************************************************* BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
BR0279E Return code from '/usr/sap/SUD/SYS/exe/run/backint -u SUD -f backup -I /oracle/ SUD/sapbackup/.bdsbecnl.lst -t file -p /home1/orasap/ora920/dbs/initSUD.utl -c': 2
BR0232E 13 of 29 files saved by backup utility BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50 BR0231E Backup utility call failed BR0280I BRBACKUP time stamp: 2006-02-28 21.15.52 BR0304I Starting and opening database instance SUD ... BR0280I BRBACKUP time stamp: 2006-02-28 21.16.00 BR0305I Start and open of database instance SUD successful BR0056I End of database backup: bdsbecnl.aff 2006-02-28 21.15.50 BR0280I BRBACKUP time stamp: 2006-02-28 21.16.00 BR0054I BRBACKUP terminated with errors
You can then restart the preceding job with following command:
brbackup -d util_file -t offline -m all -f last -c force
The brbackup command examined the last backup log and found that the backup failed for some files. It writes following messages in the beginning of output log for this session:
BR0051I BRBACKUP 6.40 (22) BR0055I Start of database backup: bdsbedhj.aff 2006-02-28 21.16.35
BR0453W Error message found in /oracle/SUD/sapbackup/bdsbecnl.aff:
'BR0233E Backup utility has reported an error while saving file /oracle/SUD/sapraw/rawDev4' BR0453W Error message found in /oracle/SUD/sapbackup/bdsbecnl.aff: 'BR0233E Backup utility has reported an error while saving file /oracle/SUD/sapraw/rawDev5'
…. ….
BR0453W Error message found in /oracle/SUD/sapbackup/bdsbecnl.aff: 'BR0279E Return code from '/usr/sap/SUD/SYS/exe/run/backint -u SUD -f backup -I /oracle/SUD/sapbackup/.bdsbecnl.lst -t file -p /home1/orasap/ora920/dbs/initSUD.utl -c': 2'
BR0453W Error message found in /oracle/SUD/sapbackup/bdsbecnl.aff:
'BR0232E 13 of 29 files saved by backup utility'
BR0453W Error message found in /oracle/SUD/sapbackup/bdsbecnl.aff:
'BR0231E Backup utility call failed'
BR0459W Backup /oracle/SUD/sapbackup/bdsbecnl.aff terminated with errors
…. …. BR0280I BRBACKUP time stamp: 2006-02-28 21.16.36 BR0057I Backup of database: SUD BR0058I BRBACKUP action ID: bdsbedhj BR0059I BRBACKUP function ID: aff BR0110I Backup mode: ALL BR0077I Database files for backup:
/oracle/SUD/origlogA/log1_m1.dbf /oracle/SUD/origlogB/log2_m1.dbf /oracle/SUD/origlogA/log3_m1.dbf /oracle/SUD/origlogB/log4_m1.dbf /oracle/SUD/saparch/cntrl/cntrlSUD.dbf
BR0061I 16 files found for backup, total size 283.502 MB BR0091I 13 files were already saved in: bdsbecnl.aff
As the preceding output log shows, 13 files were already backed up. The following is the output of a successful brbackup restart job. This job is the one that backed up the remaining 16 files:
BR0280I BRBACKUP time stamp: 2006-02-28 21.16.41 BR0229I Calling backup utility with function 'backup'...
BR0278I Command output of '/usr/sap/SUD/SYS/exe/run/backint -u SUD -f backup -I /oracle/SUD/sapbackup/.bdsbedhj.lst -t file -p /home1/orasap/ora920/dbs/initSUD.utl
-c': *******************************************************************
Program: /usr/sap/SUD/SYS/exe/run/backint 6.5 Input File: /oracle/SUD/sapbackup/.bdsbedhj.lst Profile: home1/orasap/ora920/dbs/initSUD.utl
Function: BACKUP Backup Type: BACKUP_FILE ******************************************************************* BR0280I BRBACKUP time stamp: 2006-02-28 21.21.38
#FILE..... /oracle/SUD/sapraw/rawDev4
#SAVED.... VXF1141141607 …. …. BR0280I BRBACKUP time stamp: 2006-02-28 21.21.38
#FILE..... /oracle/SUD/saparch/cntrl/cntrlSUD.dbf
#SAVED.... VXF1141141607 ******************************************************************* BR0280I BRBACKUP time stamp: 2006-02-28 21.21.38 BR0232I 16 of 16 files saved by backup utility BR0230I Backup utility called successfully