About NetBackup for SAP sample backup scripts (UNIX or Linux)
NetBackup for SAP installs sample scripts in the following location:
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle
You can use some of the sample scripts as they are, or with a little modification. You can use them to perform snapshot backups.
The scripts are as follows:
sap_online_backup
This script sets environment variables and calls brbackup with the appropriate options to perform online backups of the Oracle database through backint.
sap_rman_backup
By default, this script performs offline backups of the Oracle database through RMAN.
You can use this script to perform online snapshot backups of Oracle through RMAN proxy. Change the brbackup commands in this script to read as follows:
if [ $SAP_FULL -eq 1 ]; then CMD_LINE="$SAP_ENV brbackup -d rman_util -t online -m full -c" elif [ $SAP_CINC -eq 1 ]; then CMD_LINE="$SAP_ENV brbackup -d rman_util -t online -m incr -c" fi
If you want to perform backups by using the brbackup command through RMAN proxy, add following lines in the initSID.sap file:
rman_proxy = yes
rman_send = "'NB_ORA_PC_SCHED=auto_sched_name'"