About NetBackup for SAP sample backup scripts (Windows)
NetBackup for SAP installs sample scripts in the following location:
install_path\NetBackup\DbExt\SAP\samples
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.cmd
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.cmd
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%" EQU "1" @set CMD_LINE=%BRBACKUP% -u internal/ -c -d rman_util -t online -m full @if "%SAP_CINC%" EQU "1" @set CMD_LINE=%BRBACKUP% -u internal/ -c -d rman_util -t online -m incr
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'"