NetBackup102 AdminGuide SAP
NetBackup102 AdminGuide SAP
Administrator's Guide
Release 10.2
NetBackup™ for SAP Administrator's Guide
Last updated: 2023-03-17
Legal Notice
Copyright © 2023 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, Veritas Alta, and NetBackup are trademarks or registered trademarks
of Veritas Technologies LLC or its affiliates in the U.S. and other countries. Other names may
be trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas and its
licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
Veritas
2625 Augustine Drive
Santa Clara, CA 95054
http://www.veritas.com
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
Backing up files mounted with LOFS with NetBackup for SAP (UNIX
or Linux) ............................................................................... 63
About permissions for NetBackup for SAP log files (UNIX) .................... 63
Reviewing the auto-discovered mappings in Host Management ............. 63
Configuring the Maximum jobs per client for NetBackup for SAP ............ 67
Performing a manual backup .......................................................... 68
Testing multiple concurrent backup jobs for NetBackup for SAP for
Oracle (without RMAN) ............................................................ 68
Appendix B Input and output files for SAP HANA ......................... 188
About input and output files for SAP HANA ...................................... 188
Note: When necessary, differences are explained between using SAP on an Oracle
database and SAP on a MaxDB database. For most tasks, NetBackup for SAP
operates the same way in each environment.
Feature Description
Media and device All the devices supported by Media Manager are available to
management NetBackup for SAP.
Scheduling facilities NetBackup scheduling facilities on the primary server can be used
to schedule automatic and unattended SAP backups.
This feature also lets you choose the times when these operations
can occur. For example, to prevent interference with normal daytime
operations, you can schedule your database backups to occur only
at night.
Multiplexed backups NetBackup for SAP lets you take advantage of NetBackup’s
and restores multiplexing capabilities. Multiplexing directs multiple data streams
to one backup device, thereby reducing the time necessary to
complete the operation.
Transparent SAP and All backups and restores run simultaneously and transparently
regular file system without any action from the NetBackup administrator.
backup and restore
The database administrator can run database backup and restore
operations
operations through NetBackup. An administrator or any other
authorized user can use NetBackup to run database backups and
restores.
Sharing the same It is possible to share the same devices and media that is used for
storage units that are other backups or to give SAP exclusive use of certain devices and
used for other file media. NetBackup for SAP can use Media Manager, disk, and
backups Media Server Deduplication Pool (MSDP) storage units.
Introduction to NetBackup for SAP 14
Technical overview of NetBackup for SAP
Feature Description
Centralized and From the NetBackup primary server, you can schedule database
networked backup backups or start them manually for any client. The SAP databases
operations can also reside on hosts that are different from the devices on which
NetBackup stores the backups.
■ NetBackup web UI
■ Backup, Archive, and Restore user interface
Parallel backup and NetBackup for SAP supports the parallel backup and restore
restore operations capabilities of SAP Tools. For example, this permits the user to run
more than one tape device at a time for a single SAP backup or
restore, thereby reducing the time necessary to complete the
operation.
Network (TCP/IP)
NetBackup software:
– NetBackup master server
– NetBackup media server
(if system is a media server)
■ In a MaxDB environment, you initiate backups and restores through the MaxDB
administrative interface. This interface can be the database manager graphical
user interface (DBM GUI), the database manager command line interface (DBM
CLI), and the Web database manager (Web DBM).
Introduction to NetBackup for SAP 16
Sequence of operation for NetBackup for SAP
NetBackup
For a backup, brbackup calls the NetBackup for SAP backint interface. The
backint interface calls the XBSA API to interface with NetBackup.
A restore works in a similar way as a backup. Except that the NetBackup for SAP
backint interface calls the XBSA API. Therefore causes NetBackup to retrieve the
data from secondary storage and send it to the client.
SAP environment
Oracle
database
brbackup
sapdba brrestore
backint interface XBSA API
brarchive
brconnect
SAP tools
Phase 2 Phase 1
libobk (liborasap)
(NetBackup for Oracle)
Storage unit
Local disk
If you are in a NetBackup for SAP on Oracle database environment with RMAN,
the backup consists of the following phases:
■ Phase 1 backs up the Oracle database files.
■ Phase 2 backs up the SAP control, log, and configuration files.
Component Function
brbackup This command brings database servers online or offline, checks the
status of SAP files, and places database tablespaces into BACKUP
mode to guarantee their data consistency. The brbackup command
provides online and offline backups. It also keeps a profile and log of
each backup.
brbackup uses the NetBackup software, through NetBackup for SAP,
for the following actions:
brarchive This command archives Oracle offline redo log files by communicating
with the NetBackup for SAP backint interface. These files are copied
by Oracle in its archiving directory. The brarchive command ensures
that duplicates of these logs are available and that original files are not
deleted prematurely. This command also keeps a profile and log of
each archive.
brrestore This command recovers database data files, control files, and online
redo log files through the NetBackup for SAP backint interface. The
brrestore command ensures that sufficient space is available before
restoring these files, and it removes the files that are overwritten during
the recovery. This command also provides a query mode.
SAP script This script is a small script that contains SAP commands such as
brbackup and brrestore.
MaxDB server
MaxDB instance
Named pipes
NetBackup
Chapter 2
Introduction to NetBackup
SAP HANA
This chapter includes the following topics:
■ Requirements for using for SAP MaxDB, SAP Oracle, and SAP HANA in a
cluster
■ Configuration and licensing requirements for NetBackup for SAP with Snapshot
Client
■ Copying the SAP binary file (Windows Oracle databases without RMAN only)
■ Linking NetBackup for SAP with backint (UNIX or Linux Oracle databases without
RMAN only)
■ Linking the Oracle instances with the SBT library (UNIX or Linux Oracle
databases with RMAN only)
Step 1 Verify the installation prerequisites. See “Verifying the operating system and platform
compatibility” on page 24.
http://www.netbackup.com/compatibility
Step 2 Verify that the primary server has a valid See “License for NetBackup for SAP” on page 26.
license for NetBackup for SAP and any
NetBackup options or add-ons.
Step 3 Perform the appropriate linking See “Linking NetBackup for SAP with backint (UNIX or Linux
procedure. Oracle databases without RMAN only)” on page 27.
OR See “Linking the Oracle instances with the SBT library (UNIX
or Linux Oracle databases with RMAN only)” on page 28.
Copy the NetBackup for SAP binary file.
See “Copying the SAP binary file (Windows Oracle databases
without RMAN only)” on page 27.
server requirements
Verify that the following requirements are met for the NetBackup server:
■ The NetBackup server software is installed and operational on the NetBackup
server.
See the NetBackup Installation Guide.
■ Make sure that you configure any backup media that the storage unit uses. The
number of media volumes that are required depends on several things:
■ The devices that are used and storage capacity of the media.
■ The sizes of the databases that you want to back up.
■ The amount of data that you want to archive.
■ The size of your backups.
■ The frequency of backups or archives.
■ The length of retention of the backup images.
See the NetBackup Administrator’s Guide, Volume I.
client requirements
Verify that the following requirements are met for the NetBackup clients:
■ The NetBackup client software is installed on the computer that has the
databases you want to back up.
If the database is clustered, you must use the same version of NetBackup on
each node in the cluster.
■ To use the new features that are included in NetBackup for SAP in , you must
upgrade your NetBackup for SAP clients to . The media server must use the
same version as the NetBackup for SAP client or a higher version than the client.
where SID is the unique name for an Oracle database instance. SID is also known
as the System ID.
The directory should contain the following commands:
■ brarchive
■ brbackup
■ brconnect
■ brrestore
■ brtools
■ sapdba
To copy the NetBackup for SAP binary file (Windows Oracle databases without
RMAN only)
◆ Copy backint.exe from the NetBackup install directory to the SAP tools
directory.
For example, if the Oracle instance name is CER, enter the following command:
copy install_path\NetBackup\bin\backint.exe
c:\usr\sap\CER\sys\exe\run
where SID is the unique name for an Oracle database instance. SID is also known
as the System ID.
The directory should contain the following commands:
■ brarchive
■ brbackup
■ brconnect
■ brrestore
■ brtools
■ sapdba
To link the NetBackup for SAP binary file (UNIX or Linux Oracle databases
without RMAN only)
◆ Link backint from the NetBackup install directory to the SAP tools directory.
ln -s /usr/openv/netbackup/bin/backint \
/usr/sap/CER/SYS/exe/run/backint
Note: Never copy the file from one directory to another. Whenever NetBackup is
upgraded it replaces/usr/openv/netbackup/bin/backint with a new version.
SAP automatically uses the updated file by the symbolic link. Copying a file can
give errors.
Note: You must link Oracle with the SBT library for all Oracle instances on the host
that are planned to be backed up through NetBackup for SAP using RMAN.
Whenever a new Oracle instance is added it must also be similarly linked.
■ Adding a new SAP instance that should be backed up with NetBackup for SAP
with RMAN.
To link the NetBackup for SAP binary file on AIX (64-bit) and 64-bit Oracle9i
R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.a64 \
$ORACLE_HOME/lib/libobk.a
To link the NetBackup for SAP binary file on HP-Itanium and 64-bit Oracle9i
R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.so \
$ORACLE_HOME/lib/libobk.so
To link the NetBackup for SAP binary file on HP PA-RISC (64-bit) and 64-bit
Oracle9i R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.sl64 \
$ORACLE_HOME/lib/libobk.sl
To link the NetBackup for SAP binary file on Linux IBMpSeries or Linux Itanium
and 64-bit Oracle9i R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.so \
$ORACLE_HOME/lib/libobk.so
To link the NetBackup for SAP binary file on Linux (64-bit) and 64-bit Oracle9i
R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.so64 \
$ORACLE_HOME/lib/libobk.so
Installing NetBackup for SAP 30
Linking the Oracle instances with the SBT library (UNIX or Linux Oracle databases with RMAN only)
To link the NetBackup for SAP binary file on Solaris SPARC (64-bit) and 64-bit
Oracle 9i R2 or later software
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.so64.1 \
$ORACLE_HOME/lib/libobk.so
To link the NetBackup for SAP binary file on Solaris Opteron and 64-bit Oracle
10g R2 or later supported versions
◆ Enter the following command to link the Oracle database and the SBT library
to NetBackup:
ln -s /usr/openv/netbackup/bin/libsapora.so.1 \
$ORACLE_HOME/lib/libobk.so
Chapter 4
Installing NetBackup for
SAP HANA
This chapter includes the following topics:
■ Verifying the operating system and platform compatibility for NetBackup for SAP
HANA
■ NetBackup server and client requirements for NetBackup for SAP HANA
Step 2 Add the license key for NetBackup for See “License for NetBackup for
SAP. SAP” on page 26.
■ The devices that are used and storage capacity of the media
■ The sizes of the databases that you want to back up
■ The amount of data that you want to archive
■ The size of your backups
■ The length of retention of the backup images.
■ The frequency of backups or archives
See the NetBackup Administrator’s Guide, Volume I.
Verify that the following requirements are met for the NetBackup clients:
■ The NetBackup client software is installed on the computer that has the
databases you want to back up.
■ Check that libelf.so.0 is symbolically linked to the libelf.so.0.8.12 file.
These files are located in /usr/lib64/.
■ Configuring the logon account for the NetBackup Client Service for NetBackup
for SAP
■ Backing up files mounted with LOFS with NetBackup for SAP (UNIX or Linux)
■ Configuring the Maximum jobs per client for NetBackup for SAP
■ Testing multiple concurrent backup jobs for NetBackup for SAP for Oracle
(without RMAN)
After you complete the installation, follow the procedures in to configure your
environment.
Note: If you use NetBackup for SAP on an Oracle database, all the configuration
topics apply. If you use NetBackup for SAP on a MaxDB database, differences are
noted in these topics. Also see the information on how to use NetBackup for SAP
on MaxDB databases.
See “About NetBackup for SAP on MaxDB databases” on page 165.
Step 2 Create backup scripts. See “NetBackup for SAP backup scripts”
on page 44.
Step 3 (Windows) Configure the logon account See “Configuring the logon account for
for the NetBackup Client Service the NetBackup Client Service for
NetBackup for SAP ” on page 53.
Step 4 Edit SAP configuration files. See “About SAP configuration files”
on page 53.
Step 5 (UNIX or Linux) Configure the backups See “Backing up files mounted with
of files that are mounted with LOFS. LOFS with NetBackup for SAP (UNIX
or Linux)” on page 63.
Step 6 (UNIX and Linux) Configure the See “About permissions for NetBackup
permissions for log files. for SAP log files (UNIX)” on page 63.
See “Adding NetBackup for SAP scripts to the backup selections list”
on page 42.
8 When you have added all the schedules, clients, and backup selections you
need, click OK.
Attribute Description
Policy type Determines the types of clients that can be backed up with the policy. For SAP databases,
select the policy type SAP.
Follow NFS This option is available for SAP policies on UNIX. Select this attribute to back up the files
from NFS-mounted file systems. If this option is not selected, NetBackup cannot perform a
backup of NFS-mounted files.
See “Backing up files mounted with LOFS with NetBackup for SAP (UNIX or Linux)”
on page 63.
Keyword phrase For NetBackup for SAP, the Keyword phrase entry is ignored.
Snapshot Client and This group contains the options that enable backups with Snapshot Client.
Replication Director
Automatic Full An automatic full backup schedule specifies the dates and times for
Backup NetBackup to automatically start backups. NetBackup runs the scripts
in the order that they appear in the file list. If there is more than one
client in the policy, the scripts are run on each client. The schedule
name and type are passed to the scripts so they can distinguish initiation
from a full vs incremental schedule and operate appropriately.
Note: Some types of SAP backups allow for multiple application backup
schedules, so that storage and retention attributes can be set appropriately.
In that case, additional application schedules can be created. Specify the
application backup schedule name in the initSID.utl file on the client.
Table 5-4 Example settings for a NetBackup for SAP application backup
schedule
Retention 2 weeks
00:08:00 - 22:00:00
Table 5-5 Example settings for a NetBackup for SAP automatic backup
schedule
Retention 2 weeks
Property Description
Type of backup Specifies the type of backup that this schedule can control. The selection list shows only
the backup types that apply to the policy you want to configure.
Property Description
Schedule type You can schedule an automatic backup in one of the following ways:
■ Frequency
Frequency specifies the period of time that can elapse until the next backup operation
begins on this schedule. For example, assume that the frequency is 7 days and a
successful backup occurs on Wednesday. The next full backup does not occur until the
following Wednesday. Typically, incremental backups have a shorter frequency than full
backups.
■ Calendar
The Calendar option lets you schedule the backup operations that are based on specific
dates, recurring week days, or recurring days of the month.
Multiple copies If you want to specify multiple copies of a backup for the policy, configure Multiple copies
on the application backup schedule. If using Snapshot Client, also specify Multiple copies
on the automatic schedule.
3 Type the name of the client and select the hardware and operating system of
the client.
If SAP is installed in a cluster, specify the virtual name of the SAP server as
the client name.
Note: If you installed NetBackup on more than one node in the SAP cluster,
you must perform additional configuration.
See “Reviewing the auto-discovered mappings in Host Management”
on page 63.
5 In the Script box, type the full path name of a script on the client.
For example:
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle/my_sap_<SID>_offline_backup
6 Click Add.
7 Choose one of the following:
■ To add another script, repeat step 5 and step 6.
■ If this client is the last script you want to add, click OK.
8 Click OK.
To browse for scripts to add to the backup selections list
1 Ensure that the script resides on the client.
See “Registering authorized locations used by a NetBackup database
script-based policy” on page 231.
2 In the Policy dialog box, click the Backup Selections tab.
To access the Policy dialog box, double-click the policy name in the policies
list in the NetBackup web UI.
3 Click New.
4 Click Browse.
5 Navigate to and select the script file, then click OK.
6 Choose one of the following:
■ To add another script, repeat step 4 and step 5.
■ If this client is the last script you want to add, click OK.
7 Click OK.
install_path\NetBackup\DbExt\SAP\samples
UNIX or Linux:
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_maxdb
sap_redo_log_backup Oracle without RMAN Issues the brarchive command and backs
up the offline redo log files.
sap_redo_log_backup.cmd
If you decide to use these scripts, customize them for your environment.
Note: Always specify the correct script when configuring automatic backups or
when starting operations through NetBackup. NetBackup for SAP does not generate
an error if a restore script is used for a backup operation or a backup script is used
for a restore operation.
Configuring NetBackup for SAP 46
NetBackup for SAP backup scripts
Note: All scripts must be stored and run locally. One recommendation is that scripts
should not be world-writable. Scripts are not allowed to be run from network or
remote locations. Any script that is created and saved in the NetBackup db_ext
(UNIX) or dbext (Windows) location needs to be protected during a NetBackup
uninstall.
See “Registering authorized locations used by a NetBackup database script-based
policy” on page 231.
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_maxdb
Windows:
install_path\NetBackup\DbExt\SAP\samples
The SAP scripts must reside in an authorized location on the client. Do not
store your scripts in the sample directory because your modifications are lost
if you upgrade or reinstall. Always relocate your scripts to a safe location. If
the client is clustered, this location must be available after a failover.
See “Registering authorized locations used by a NetBackup database
script-based policy” on page 231.
2 Enable proper permissions on the script files so NetBackup can run the scripts.
On UNIX or Linux, set the access permissions of these scripts to 775.
3 Modify the script according to the instructions in the file.
On UNIX or Linux, remember to edit the lines that starts with su. If you do not
include su - user in your script, it does not run with the proper account and
environment variables. (user is the SAP administrator account.) This situation
can lead to problems with database backups and restores.
See “Example NetBackup for SAP backup script (Windows)” on page 48.
See “Example NetBackup for SAP backup script (UNIX)” on page 50.
Configuring NetBackup for SAP 47
NetBackup for SAP backup scripts
■ Linux:
/usr/openv/netbackup/bin/nbsapcustomsort -u <oracle_username>
-p <custom_sort_file_path>
■ Windows:
install_path\NetBackup\bin\nbsapcustomsort.exe
-p <path_for_custom_sort_file_path>
Note: Ensure that path for -p is allowed listed and it should not contain
any spaces.
UNIX or Linux:
<custom_sort_file_path>/sap_custom_sort_file
Windows:
<custom_sort_file_path>/sap_custom_sort_file
Linux:
/usr/openv/netbackup/bin/nbsapcustomsort
Windows:
install_path\NetBackup\bin\nbsapcustomsort.exe
@REM
@REM $Header: sap_offline_backup.cmd,v 1.2 2002/11/20 00:47:59 $
@REM
@echo off
REM ---------------------------------------------------------------------------
REM Replace cer below with the Oracle SID of the target database.
REM ---------------------------------------------------------------------------
set ORACLE_SID=cer
REM ---------------------------------------------------------------------------
REM Replace c:\oracle below with the Oracle home path.
REM ---------------------------------------------------------------------------
set ORACLE_HOME=c:\oracle
REM ---------------------------------------------------------------------------
REM Replace C:\oracle\CER with SAPData Home Path
REM ---------------------------------------------------------------------------
Configuring NetBackup for SAP 49
NetBackup for SAP backup scripts
set SAPDATA_HOME=C:\oracle\CER
REM ---------------------------------------------------------------------------
REM Replace path with the correct sap archive path.
REM ---------------------------------------------------------------------------
set SAPARCH=%SAPDATA_HOME%\saparch
REM ---------------------------------------------------------------------------
REM Replace path with the correct sap backup path.
REM ---------------------------------------------------------------------------
set SAPBACKUP=%SAPDATA_HOME%\sapbackup
REM ---------------------------------------------------------------------------
REM Replace path with the correct sap reorg path.
REM ---------------------------------------------------------------------------
set SAPREORG=%SAPDATA_HOME%\sapreorg
REM ---------------------------------------------------------------------------
REM Replace path with the correct Path to Brtools
REM ---------------------------------------------------------------------------
set SAPEXE=C:\usr\sap\%ORACLE_SID%\sys\exe\run
REM ---------------------------------------------------------------------------
REM Replace path with the correct BRBACKUP path.
REM ---------------------------------------------------------------------------
set BRBACKUP=c:\usr\sap\%ORACLE_SID%\sys\exe\run\brbackup
REM ---------------------------------------------------------------------------
REM To communicate with NetBackup's job monitor for an automatic schedule
REM a "STATUS_FILE" variable is created by NetBackup (bphdb) that contains
REM a path to a file. This file is check by NetBackup to determine if the
REM automatic schedule was successful. It is up to the script to write
REM a 0 (passed) or 1 (failure) to the status file to communicate to NetBackup
Configuring NetBackup for SAP 50
NetBackup for SAP backup scripts
REM the status of the execution of the script. The following code echo a 0
REM to %STATUS_FILE% if succcessful and echo a 1 to %STATUS_FILE% for a
REM failure.
REM ---------------------------------------------------------------------------
:errormsg
echo Execution of BRBACKUP command failed - exiting
if "%STATUS_FILE%" == "" goto end
if exist "%STATUS_FILE%" echo 1 > "%STATUS_FILE%"
:end
#!/bin/sh
#
#NOTE:IF your SAP user (in this script orasap) runs in C shell, environmental
#variables can not be exported. In that case, you should modify this script to
#work in your environment. For example:
# SAP_SERVER=$SAP_SERVER; export SAP_SERVER; (Correct for Bourne and Korn shells)
# can change into
# setenv SAP_SERVER $SAP_SERVER; (Correct for C shell)
#
#
#This environment variable are created by NetBackup (bphdb)
#
RETURN_STATUS=0
Configuring NetBackup for SAP 51
NetBackup for SAP backup scripts
SAP_ENV=""
#
# If SAP_SERVER exists then export it to make it available to backint
#
if [ -n "$SAP_SERVER" ]
then
SAP_ENV="$SAP_ENV SAP_SERVER=$SAP_SERVER; export SAP_SERVER;"
#if Oracle DBA account( orasap user) uses C Shell, comment the above line and
#uncomment next line
# SAP_ENV="$SAP_ENV setenv SAP_SERVER $SAP_SERVER;"
fi
#
# If SAP_POLICY exists then export it to make it available to backint
#
if [ -n "$SAP_POLICY" ]
then
SAP_ENV="$SAP_ENV SAP_POLICY=$SAP_POLICY;export SAP_POLICY;"
#if Oracle DBA account( orasap user) uses C Shell, comment the above line and
#uncomment next line
# SAP_ENV="$SAP_ENV setenv SAP_POLICY $SAP_POLICY;"
fi
#
# Full offline backup
#
#
# The username on the "su" command needs to be replaced with the correct
# user name.
#
echo "Execute $CMD_LINE"
su - orasap -c "$CMD_LINE"
RETURN_STATUS=$?
exit $RETURN_STATUS
Configuring NetBackup for SAP 52
NetBackup for SAP backup scripts
SAP_CLIENT Names the NetBackup for SAP client from the policy, if
initiated from an automatic schedule. If set, specifies the
client name which the application backup job will use
initSID.utl Oracle and MaxDB SAP parameter file. This file specifies policy,
schedule, client, and other information to the
backint interface.
%ORACLE_HOME%\database
UNIX or Linux:
$ORACLE_HOME/dbs
For example, if the Oracle instance is SAP, copy the NetBackup example .utl
file to initSAP.utl, as follows:
Windows:
copy install_path\NetBackup\dbext\sap\scripts\initSAP.utl
%ORACLE_HOME%\database\initSAP.utl
UNIX or Linux:
cp /usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle/initSAP.utl \
$ORACLE_HOME/dbs/initSAP.utl
3 Modify initSID.utl file with a text editor to set the parameters to values that
are appropriate to your site.
The following parameters are required: client, switch_list, switch_log,
switch_sem.
You can set the following additional parameters depending on whether or not
you use RMAN:
■ If you use RMAN, set policy, schedule, and server.
■ If you do not use RMAN, set drives, policy, schedule, and server.
UNIX or Linux:
policy sap_policy_1
schedule Default-Application-Backup
client puffin
server puffin
drives 2
switch_list /oracle/sap/sapbackup/.switch.lis
switch_sem /oracle/sap/sapbackup/.switch.sem
switch_log /oracle/sap/sapbackup/.switch.log
Windows:
policy sap_policy_1
schedule Default-Application-Backup
client puffin
server puffin
drives 2
switch_list F:\oracle\SID\SAPBackup\.switch.lis
switch_sem F:\oracle\SID\SAPBackup\.switch.sem
switch_log F:\oracle\SID\SAPBackup\.switch.log
Note: The question mark (?) and ampersand (&) Oracle substitution characters and
the $ORACLE_HOME (%ORACLE_HOME%) environment variable are not allowed in the
initSID.utl file. They are not allowed in the par_file that the backint -p parfile
option identifies.
cp /usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle/initSAP.sap \
$ORACLE_HOME/dbs/initSAP.sap
Windows:
copy install_path\NetBackup\dbext\sap\scripts\initSAP.sap
%ORACLE_HOME%\database\initSAP.sap
3 Modify the initSID.sap file with a text editor to set the backup_dev_type and
util_par_file parameters to values that are appropriate to your site.
Configuring NetBackup for SAP 58
About SAP configuration files
rman_parms = "ENV=(NB_ORA_SAP=file)"
where file specifies the full path to the initSID.utl file. Do not use substitution
in the file specification.
For example, this parameter might look like the following:
Unix or Linux:
rman_parms = "ENV=(NB_ORA_SAP=/apps/oracle/dbs/initCER.utl)"
Windows:
rman_parms = "ENV=(NB_ORA_SAP=C:\apps\oracle\database\initCER.utl)"
Depending on your site practices, you might want to specify the following
additional NetBackup environment variables and their values as arguments to
the rman_parms parameter: NB_ORA_POLICY, NB_ORA_SCHED, NB_ORA_CLIENT,
and NB_ORA_SERV. You can also specify values for these environment variables
in the initSID.utl file. If you specify differing values, the ones in initSID.sap
override those in initSID.utl.
For example, consider that you want to use one policy and schedule for the
first part of a backup (data files). You want a different policy and schedule for
the second part of a backup (the control file backup). You can set the
NB_ORA_POLICY and NB_ORA_SCHED variables in initSID.sap to pertain to the
first part of the backup. Then, you can set these variables to the different values
that pertain to the second part of the backup in initSID.utl. NetBackup for
SAP checks only initSID.utl when backing up the control files; it does not
check initSID.sap.
You can include other RMAN parameters in this file. For more information on
other parameters, see your SAP documentation.
5 Save and close the initSID.sap file.
To edit the initSID.sap file (NetBackup for SAP on Oracle databases only)
1 Use a text editor to open the initSAP.sap file.
2 Find the following line:
backup_dev_type = tape
backup_dev_type = tape
backup_dev_type = tape
#backup_dev_type = tape
backup_dev_type = tape
#backup_dev_type = tape
backup_dev_type = util_file
util_par_file = file_path
util_par_file = file_path
util_par_file = file_path
Configuring NetBackup for SAP 60
About SAP configuration files
#util_par_file = file_path
util_par_file = file_path
#util_par_file = file_path
util_par_file = ?/dbs/[email protected]
Windows:
#util_par_file = file_path
util_par_file = ?\database\[email protected]
This example file uses environment variable settings and Oracle substitution
characters. When the SAP tools interpret the initSID.sap profile file, they
replace the question mark (?) and at sign (@) characters.
These characters are replaced with the values assigned to the $ORACLE_HOME
(%ORACLE_HOME%) and $ORACLE_SID (%ORACLE_SID%) environment variables,
respectively.
Parameter Description
BACKINT /usr/openv/netbackup/bin/backint Specifies the absolute path and file name of the backint
for MaxDB program.
BACKINT <install_path>\Veritas\NetBackup
\bin\backint.exe
INPUT absolute_path/file_name The INPUT parameter specifies the absolute path and file
name of the standard input file. The OUTPUT parameter
INPUT absolute_path\file_name
specifies the absolute path and file name of the standard
OUTPUT absolute_path/file_name output file. The ERROROUTPUT file specifies the absolute
path and file name of the standard error output file.
OUTPUT absolute_path\file_name
The database manager creates these files temporarily
ERROROUTPUT absolute_path/file_name and uses them for standard input, output, and error output
for backint for MaxDB.
ERROROUTPUT absolute_path\file_name
PARAMETERFILE absolute_path/file_name Specifies the absolute path and file name of the
configuration file for the backint for MaxDB program,
PARAMETERFILE absolute_path\file_name initSAP.utl.
TIMEOUT_SUCCESS seconds The number of seconds after which the backup tool exits
and after the database kernel has copied all data
successfully. Default is 300.
This value is the period of time after which the database
manager terminates the backup tool if all data has been
copied to the pipes. Note that the backup tool always exits
after this defined period. This exit occurs whether all the
data is copied from the database kernel is backed up by
the backup tool or not.
TIMEOUT_FAILURE seconds This parameter is effective only if the database kernel has
stopped the backup due to an error. In such a case,
seconds specifies the number of seconds after which the
backup tool exits. Default is 300.
Allow enough time for the backup tool to save all the data
that the database kernel copies. The backup tool always
exits when this timeout is reached, even if not all of the
copied data has been saved yet. However, do not specify
too much time. You risk a situation in which a backup that
is stopped by the database kernel blocks other backups,
such as automatic nightly backups, from being started.
Configuring NetBackup for SAP 62
About SAP configuration files
Parameter Description
ORIGINAL_RUNDIRECTORY absolute_path Specifies the absolute path of the run directory of the
source database. The default value is the run directory of
the current database instance. This value is
case-sensitive.
BACKINT /usr/openv/netbackup/bin/backint
INPUT /export/home/sapdb/logs/backint.in
OUTPUT /export/home/sapdb/logs/backint.out
ERROROUTPUT /export/home/sapdb/logs/backint.err
PARAMETERFILE /export/home/sapdb/indep_data/wrk/initSAP.utl
Windows:
BACKINT install_path\NetBackup\bin\backint
INPUT C:\sapdb\logs\backint.in
OUTPUT C:\sapdb\logs\backint.out
ERROROUTPUT C:\sapdb\logs\backint.err
PARAMETERFILE C:\sapdb\indep_data\wrk\initSAP.utl
Configuring NetBackup for SAP 63
Backing up files mounted with LOFS with NetBackup for SAP (UNIX or Linux)
If you have a local file system mounted as an LOFS, you do not need to select
Follow NFS.
Select the “Follow NFS” option for backups of an LOFS if the actual file system (for
example, /oracle) is either of the following:
■ An NFS mount
■ A Solaris global zone file system and mounted with LOFS onto a non-global
zone.
See the section called “Approve the auto-discovered mappings for a cluster”
on page 65.
See the section called “Manually map host names” on page 66.
Examples of the configurations that have multiple host names include:
■ A host is associated with its fully qualified domain name (FQDN) and its short
name or its IP address.
■ If the SAP server is clustered, the host is associated with its node name and
the virtual name of the cluster.
These mappings appear in the Host Management properties on the primary server.
You can also use the nbhostmgmt command to manage the mappings. See the
NetBackup Administrator's Guide, Volume I for more details on Host Management
properties.
client01.lab04.com client01
client01.lab04.com clustername
client01.lab04.com clustername.lab04.com
client02.lab04.com client02
client02.lab04.com clustername
client02.lab04.com clustername.lab04.com
4 When you finish approving the valid mappings for the hosts, click on the Hosts
tab at the bottom of the Hosts pane.
For hosts client01.lab04.com and client02.lab04.com, you see Mapped
Host Names/IP Addresses that are similar to the following:
5 If you need to add a mapping that NetBackup did not automatically discover,
you can add it manually.
Table 5-11 Example mapped host names for a SAP cluster environment
Cluster with two nodes Physical name of Node 1 Virtual name of SAP server
■ For SAP without RMAN, this is based on the keywords in the initSID.utl
file; sort_backup_type and drives.
■ For MaxDB, this is the count of backup medium that is used for the backup.
Typically one unless a parallel medium group is used.
■ Check if the policy specifies a lower concurrent job limit.
■ Check if the settings for the storage units or storage servers that are used by
the policies specify lower maximum numbers of concurrent jobs.
■ For tape storage units, the number of tape drives may provide a lower limit.
Check the MPX settings in the storage unit and policy; the lower MPX setting,
times the number of tape drives, limits the number of jobs.
Note: Enter a large enough value for the Maximum jobs per client attribute to
meet the number of jobs that SAP runs. You may need to experiment with different
values at your site.
Configuring NetBackup for SAP 68
Performing a manual backup
%ORACLE_HOME%\database\initSAP.utl
UNIX or Linux:
$ORACLE_HOME/dbs/initSAP.utl
Change the value of this parameter to the number jobs the storage unit can
accept concurrently.
See “About parameters used in initSID.utl” on page 201.
When you perform a backup, you should see two or more backups running.
The NetBackup for SAP backint interface waits for all backups to complete
before it reports success or failure to brbackup.
Chapter 6
Configuring NetBackup for
SAP HANA
This chapter includes the following topics:
Note: Before beginning the NetBackup configuration for each HANA appliance,
check that libelf.so.0 is linked to the libelf.so.0.8.12 file in each HANA box
Operating System. The location of the library is /usr/lib64/.
If the libelf.so.0.8.12 file is not present at the /usr/lib64/ location then copy
the libelf.so.0.8.12 file from installable of SUSE SLES 11 SP1 to /usr/lib64/.
Run the following commands:
■ cd /usr/lib64/
■ ln -s libelf.so.0.8.12 libelf.so.0
For more details about the libelf.so.0.8.12 file error, see the following article:
http://www.veritas.com/docs/100009886
See “Configuring the media server for NetBackup SAP HANA” on page 70.
See “Configuring the master server for NetBackup SAP HANA” on page 70.
default setting is one job and the job count can range from 0 to 256. For SAP
policy type, configured for HANA, set this value to a value greater than 64.
For SAP policy type (specifically for HANA), when the storage unit is Advanced
Disk type, or MSDP, set the Maximum Jobs Per Client setting to a value in
accordance to the value of the Maximum Streams Per Drive * number of drives.
Set the Maximum Jobs Per Policy setting to a value higher than the value of
Maximum Streams Per Drive * number of drives. For example, if you have 2
drives and Maximum Streams Per Drive is set to 3, the total expected jobs to
that storage unit is 6.
■ Set the logging level.
See “Setting the logging level” on page 71.
■ Set value of the maximum jobs per client.
See “Setting maximum jobs per client” on page 71.
■ Create a SAP HANA-specific backup policy.
See “Creating a backup policy for SAP HANA” on page 71.
Note: When you use media server deduplication pools, PureDisk deduplication
pool, or a virtual tape library as the storage unit, do not select Compress and
Encrypt options.
10 After you complete adding the required clients and scripts, click OK.
install_path\NetBackup\db\altnames\HostB
■ On UNIX
/usr/openv/netbackup/db/altnames/HostB
2. In the altnames file, add the names of the client(s) whose files the requesting
client wants to restore.
For example, if you want HostB to have permissions to redirect restores from
HostA, add HostA to the HostB file.
For the SAP HANA software, you must change the name of the policy in the
configuration file. Uncomment the policy keyword and specify the correct policy
name that is configured on NetBackup Master Server to take an SAP HANA backup.
The SAP HANA admin should update this file whenever a new node is added
or removed from the appliance.
Using the root user, give +r permissions to the newly created file
node_names.txt on every client (appliance node).
The HANA DB Master node triggers the backups on all the nodes.
■ The parameter file (initSAP.utl) must be specified for data in the SAP HANA
database instance configuration. To specify the parameter file, go to
Instance->Configuration-> global.ini > data_backup_parameter_file.
Configuring NetBackup for SAP HANA 75
Configuring the SAP HANA Agent
■ The parameter file (initSAP.utl) must be specified for logs in the SAP HANA
database instance configuration. To specify backup using the parameter file,
go to Instance->Configuration->global.ini-> log_backup_parameter_file.
To specify backup using the backint file, go to
Instance->Configuration->global.ini-> log_backup_using_backint->SYSTEM
= true.
Configuring NetBackup for SAP HANA 76
Configuring SAP HANA instance for redirected restore
Note: While restoring from the HANA studio, locate log backups if the log backups
were written to the file system and subsequently moved. You need to specify their
current location. If you do not specify an alternative location for the log backups,
the system uses the location where the log backups were first saved. The directory
that is specified is searched recursively.
For more details on node-level cofiguration, see See “Configuring the SAP
HANA Agent” on page 73.
3 Follow the steps in the Copying a Database Using Third-Party Backup Tools
topic in the SAP HANA Administration Guide. This topic describes the
requirements to use the $(SAPSYSTEMNAME) in the SAP HANA configuration.
Chapter 7
Performing backups and
restores of SAP
This chapter includes the following topics:
■ Performing SAP restores using the SAPDBA utility (SAP on Oracle databases
only)
The most convenient way to back up your database is to set up schedules for
automatic backups. When the NetBackup scheduler invokes a schedule for an
automatic backup, the SAP scripts start the database backup.
The SAP scripts run as follows:
■ In the same order as they appear in the file list
■ On all clients that have them (that is, matching path names)
There are instructions that explain how to create and configure a policy that
uses the SAP scripts to back up your database automatically according to the
schedules you specify.
■ Client-initiated SAP backup
The SAP tools on the SAP host can, either manually or via a
non-NetBackupscheduler, initiate a backup to the NetBackup backint or
libsapora/orasbt APIs.
■ After all files are backed up, the full file list is displayed. The file list is displayed
in the format that the NetBackup for SAP backint interface specification requires
as to success or failure. This format includes a backup ID (BID) to be used for
later restores. The SAP tools maintain a log of the backup session to keep track
of the BID. This allows cross-referencing by brrestore.
backup_type = online
backup_dev_type = util_file_online
This backup method allows sapdba or brbackup to use the switch files with the
NetBackup for SAP backint interface. This method provides a better online backup
for very large files because only the necessary tablespaces are placed in backup
mode. When NetBackup is ready to process another file, it notifies brbackup to
take the completed file out of backup mode and put the next file into backup mode.
To perform brbackup online SAP backups
1 Verify that you have completely configured NetBackup, NetBackup for SAP,
and the SAP tools.
See “About configuring NetBackup for SAP” on page 34.
2 Verify that you are user sapadm.
3 Enter the brbackup command.
■ To initiate an online backup, enter the following command:
■ To initiate a full backup when you use RMAN, enter the following command:
■ To initiate an incremental backup when you use RMAN, enter the following
command:
brarchive -d util_file -s
Performing backups and restores of SAP 81
Performing an SAP archive
Example 2 To restore the first available copy of an archive log file, issue the
following command:
To create the backup To create the first backup copy, issue the following commands:
copies
SAP_SCHED=To-DSU ; export SAP_SCHED
brarchive -d util_file -s
SET SAP_SCHED=To-DSU
To restore the archived To restore from the first backup copy, issue the following
log files command:
brrestore -a 77
brrestore -a2 77
2 In Oracle-based environments with RMAN, use the command with the following
options:
Note: In some situations, you can restore from lower to higher release levels of
Oracle. For more information, see your Oracle documentation.
3 To allow any client to restore the backups of any other client, create the
following file on the NetBackup master server:
Windows:
install_path\NetBackup\db\altnames\No.Restrictions
UNIX or Linux:
/usr/openv/netbackup/db/altnames/No.Restrictions
install_path\NetBackup\db\altnames\client_name
UNIX or Linux:
/usr/openv/netbackup/db/altnames/client_name
SAP_CLIENT=source_client
export SAP_CLIENT
The SAP_CLIENT variable has higher priority than the value in the initSID.utl
file.
2 (Windows) On the destination client, create a file path like the one on the source
client.
For example:
■ Source client actual path is:
C:\Oracle\SAP
C:\Oracle\SAP
3 (UNIX or Linux) Create a symbolic link on the destination client that resembles
the actual path of the source client. Point it to the directory that points to the
SAP files.
To copy the configuration and the control files (UNIX or Linux)
◆ Copy configuration and control files from the NetBackup for SAP source client
to the NetBackup for SAP destination client.
■ Copy the following files from the source client, usually $ORACLE_HOME/dbs,
to the same location on the destination client:
initSID.sap
initSID.utl
initSID.ora
initSID.dba
initSID.sap
initSID.utl
initSID.ora
initSID.dba
Do not use the -m dest_dir option with brrestore. This option restores the
files to the directory you specify, rather than to the original directories.
■ Destination client
■ Actual path is /home2/sap
■ Also has soft link /oracle/SAP, which points to /home2/sap.
■ Make soft link /home_db/oracle/sap, which points to /home2/sap
In the restore_filter script, substitute the path that was provided in the input file
list of the destination client with the actual path of the source client. The resulting
script sample might look like the following:
#!/bin/sh
# this shell is used to change some logically linked files
Performing backups and restores of SAP 87
Disaster recovery using BRRECOVER
# during a restore
sed -e 's#/oracle/SAP/#/home_db/oracle/sap/#' $1 > $2
When the backup starts, the file list contains the file path with the following soft link:
/oracle/SAP/sapdata1/btabd_1/btabd.data1
/home_db/oracle/sap/sapdata1/btab_d/btabd.data
When the request for a restore is issued, the input file list contains file paths with
soft links. These are converted to the actual path of the destination client. Because
this path is different from the source client path, the restore would fail in the inquire
phase. To prevent this kind of failure, use the restore_filter script.
Caution: Attempts to restart a backup or restore from the Activity Monitor will fail.
Note: SAP tools use backint to restart failed backups and restores of Oracle
databases.
Sap tools do not support the use of RMAN to restart failed backups and restores
of Oracle databases. MaxDB also cannot restart failed backups or restores.
For each SAVED ... message that brbackup receives, brbackup writes the
following information to its log file:
UNIX or Linux:
#FILE..... /home1/orasap/inp/file1
#SAVED.... VXF1134574401
Windows:
#FILE..... C:\oracle\SUD\sapdata1\file1.dbf
#SAVED.... VXF1134574401
#ERROR filename
For each ERROR ... message that brbackup receives, brbackup writes the
following message to its log file:
UNIX or Linux:
Performing backups and restores of SAP 89
Restarting failed NetBackup for SAP backups and restores
file /home/orasap/inp/filename
Windows:
file C:\oracle\SUD\sapdata1\file1.dbf
A backup can fail for several reasons that are unrelated to NetBackup operations:
■ The tape library ran out of tapes
■ A network connection problem occurred
■ The user killed the backup but wants to restart it sometime later
For situations like these, NetBackup for SAP saves the partial image for the files
that have been already backed up.
Catalog entries in the NetBackup catalog are also saved. It returns the following
messages:
■ #SUCCESS BID filename - For the files that were backed up
If a backup has terminated because of any problems that are not related to
NetBackup, you do not have to repeat a complete backup again. Use the brbackup
command and the -f logfile parameter. The brbackup command automatically
determines the files that still need to be backed up. The next section describes how
to use the -f parameter to restart a 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
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:
*******************************************************************
Function: BACKUP
Backup Type: BACKUP_FILE
Performing backups and restores of SAP 92
Restarting failed NetBackup for SAP backups and restores
*******************************************************************
BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
#FILE..... /oracle/SUD/sapdata1/btabd_1/btabd.data1
#SAVED.... VXF1141141105
#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
You can then restart the preceding job with following command:
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:
Performing backups and restores of SAP 93
Restarting failed NetBackup for SAP backups and restores
….
….
….
….
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
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:
-c':
*******************************************************************
Function: BACKUP
Backup Type: BACKUP_FILE
*******************************************************************
#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
*******************************************************************
■ 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 Take Checkpoints Every option in the policy).
■ You ran the backup according to the following brbackup command:
C:\oracle\SUD\origlogA\log1_m1.dbf
C:\oracle\SUD\origlogB\log2_m1.dbf
C:\oracle\SUD\origlogA\log3_m1.dbf
C:\oracle\SUD\origlogB\log4_m1.dbf
C:\oracle\SUD\saparch\cntrl\cntrlSUD.dbf
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:
*******************************************************************
Performing backups and restores of SAP 96
Restarting failed NetBackup for SAP backups and restores
Function: BACKUP
Backup Type: BACKUP_FILE
*******************************************************************
BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
#FILE..... C:\oracle\SUD\sapdata1\btabd_1\btabd.data1
#SAVED.... VXF1141141105
#FILE..... C:\oracle\SUD\sapdata2\btabi_1\btabi.data1
#SAVED.... VXF1141141105
….
….
BR0233E Backup utility has reported an error while saving file
C:\oracle\SUD\saparch\cntrl\cntrlSUD.dbf
*******************************************************************
BR0280I BRBACKUP time stamp: 2006-02-28 21.15.50
You can then restart the preceding job with following command:
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:
….
….
….
….
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:
C:\oracle\SUD\origlogA\log1_m1.dbf
C:\oracle\SUD\origlogB\log2_m1.dbf
Performing backups and restores of SAP 98
Restarting failed NetBackup for SAP backups and restores
C:\oracle\SUD\origlogA\log3_m1.dbf
C:\oracle\SUD\origlogB\log4_m1.dbf
C:\oracle\SUD\saparch\cntrl\cntrlSUD.dbf
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:
-c':
*******************************************************************
Function: BACKUP
Backup Type: BACKUP_FILE
*******************************************************************
#FILE..... C:\oracle\SUD\sapdata5\datafile.4
#SAVED.... VXF1141141607
….
….
BR0280I BRBACKUP time stamp: 2006-02-28 21.21.38
#FILE..... C:\oracle\SUD\saparch\cntrl\cntrlSUD.dbf
#SAVED.... VXF1141141607
*******************************************************************
#FILE..... filename
#RESTORED BID
#ERROR filename
#FILE..... /oracle/CER/sapdata1/btabd_1/btabd.data1
#RESTORED. VXF1147974254
Windows:
#RESTORED. VXF1147974254
brrestore does not write any messages if backint reports #ERROR filename.
If the restore job fails after restoring some files, the NetBackup for SAP agent
(backint) reports #RESTORED for the files it restored. It reports #ERROR for the
files that it did not restore.
■ The log file name of the failed job. When the log file is specified, brrestore
checks it for the files that were not restored successfully.
■ The keyword last. When this keyword is specified, brbackup checks the
status of the last restore job for the files that were not restored successfully.
The brrestore command examines the specified file. It determines the files that
were restored successfully and the files that were not restored successfully.
brrestore sends backint the list of files that still need to be restored. brrestore
starts a new job only for the files that still need to be restored.
The following command specifies a log file:
The following are excerpts from the corresponding brrestore log file:
******************************************************************************
Function: RESTORE
******************************************************************************
BR0280I BRRESTORE time stamp: 2006-05-18 23.18.57
#FILE..... /oracle/CER/sapdata1/btabd_1/btabd.data1
#RESTORED. VXF1147974254
….
….
BR0280I BRRESTORE time stamp: 2006-05-18 23.18.57
#FILE..... /oracle/CER/sapdata1/el46bi_1/el46bi.data1
#RESTORED. VXF1147974254
***********************************************************************
After you start the brrestore command, you cancel the restore job from the activity
monitor. As the preceding log indicates, brrestore restored 7 out of the 19 files.
You can restore the remaining files as part of a new brrestore session. In a
production situation, you should identify and correct the cause of failure before
restarting brrestore.
Enter the following command with the -f option to start brrestore:
The following output is an excerpt from the corresponding brrestore log file:
brrestore checks the previous log file and finds that 12 files need to be restored
and that 7 files are already restored. brrestore directs backint to restore the 12
files. The log file is as follows:
***********************************************************************
Program:/usr/sap/CER/SYS/exe/run/backint 6.5
Input File:/oracle/CER/sapbackup/.rdsqcxfs.lst
Profile:/home/orasap/Ora920/dbs/initCER.utl
Function:RESTORE
***********************************************************************
BR0280I BRRESTORE time stamp: 2006-05-18 23.20.09
#FILE..... /oracle/CER/sapdata6/es46bd_1/es46bd.data1
#RESTORED. VXF1147974254
….
….
BR0280I BRRESTORE time stamp: 2006-05-18 23.20.09
#FILE..... /oracle/CER/sapdata1/system_1/system.data1
Performing backups and restores of SAP 103
Restarting failed NetBackup for SAP backups and restores
#RESTORED. VXF1147974254
***********************************************************************
As the preceding log shows, the remaining 12 files are restored successfully.
The following are excerpts from the corresponding brrestore log file:
******************************************************************************
Function: RESTORE
******************************************************************************
BR0280I BRRESTORE time stamp: 2006-05-18 23.18.57
#FILE..... C:\oracle\SUD\sapdata1\btabd_1\btabd.data1
#RESTORED. VXF1147974254
….
….
BR0280I BRRESTORE time stamp: 2006-05-18 23.18.57
#FILE..... C:\oracle\SUD\sapdata1\el46bi_1\el46bi.data1
#RESTORED. VXF1147974254
***********************************************************************
After you start the brrestore command, you cancel the restore job from the activity
monitor. As the preceding log indicates, brrestore restored 7 out of the 19 files.
You can restore the remaining files as part of a new brrestore session. In a
production situation, you should identify and correct the cause of failure before
restarting brrestore.
Enter the following command with the -f option to start brrestore:
The following output is an excerpt from the corresponding brrestore log file:
brrestore checks the previous log file and finds that 12 files need to be restored
and that 7 files are already restored. brrestore directs backint to restore the 12
files. The log file is as follows:
***********************************************************************
Program:/usr/sap/CER/SYS/exe/run/backint 6.5
Input File:C:\oracle\SUD\\sapbackup\.rdsqcxfs.lst
Profile:C:\oracle\Ora920\dbs\initCER.utl
Function:RESTORE
***********************************************************************
BR0280I BRRESTORE time stamp: 2006-05-18 23.20.09
#FILE..... C:\oracle\SUD\sapdata6\es46bd_1\es46bd.data1
#RESTORED. VXF1147974254
….
….
BR0280I BRRESTORE time stamp: 2006-05-18 23.20.09
#FILE..... C:\oracle\SUD\sapdata1\pooli_1\pooli.data1
#RESTORED. VXF1147974254
***********************************************************************
As the preceding log shows, the remaining 12 files are restored successfully.
Chapter 8
Performing backups and
restores of SAP HANA
This chapter includes the following topics:
■ Using SAP HANA studio for SAP HANA instance redirected restore
3 The Backup of System screen is displayed. Select the Backint option. Specify
the Backup Destination and Backup Prefix as shown and click Next.
Note: If you are using SAP HANA SPS 10, you can also select Differential
Data Backup or Incremental Data Backup as the Backup Type. Enter a
Backup Prefix that indicates if the backup type is incremental or differential.
For example, for an incremental data backup, the backup prefix could be
INCRE_DATA_BACKUP.
Performing backups and restores of SAP HANA 108
Using the SAP HANA studio for backup
4 Confirm the settings under Review Backup Settings as shown and click
Finish.
Performing backups and restores of SAP HANA 109
Using the SAP HANA studio for backup
5 Check the Activity Monitor of the NetBackup web UI to get the backup
information. On a successful backup, the following results are displayed:
Performing backups and restores of SAP HANA 110
Using the SAP HANA studio for restore
3 For a recovery, the system must be offline. Select OK on the System Shutdown
screen as shown.
4 The Logon to SAP System Host screen displays. Specify the user name and
password as shown and click OK.
Performing backups and restores of SAP HANA 112
Using the SAP HANA studio for restore
5 In the Recovery of System screen, select the Recover the database to its
most recent state option and click Next.
6 Check the details under Recovery of the Log Backups and click Next.
Performing backups and restores of SAP HANA 113
Using the SAP HANA studio for restore
7 Under Select Data Backup, select the data backup to recover the SAP HANA
database and click Next.
Performing backups and restores of SAP HANA 114
Using the SAP HANA studio for restore
8 In the Other Settings screen, in the Check Availability of Delta and Log
Backups section, select the Third-Party Backup Tool (Backint) check box.
Note: If you are using SAP HANA SPS 10 or later, then ensure that in the
Use Delta Backups section, the Use Delta Backups check box is selected.
9 Confirm the recovery details under Review Recovery Settings and click
Finish.
Performing backups and restores of SAP HANA 115
Using the SAP HANA studio for restore
10 Check the Activity Monitor of the NetBackup web UI to get the recovery
information. On a successful recovery the following results are displayed:
Performing backups and restores of SAP HANA 116
Using the SAP HANA studio for restore
4 In the Recovery of System <system name> screen, select one of the following
options, and click Next.
■ Recover the database to its most recent state - If you select this option,
see step 5 for further steps.
■ Recover the database to the following point in time - If you select this
option, see step 5 for further steps.
■ Recover the database to a specific data backup or storage snapshot
– Select this option when you want to restore only the data backup and not
the log backups. If you select this option, see step 10 for further steps.
Performing backups and restores of SAP HANA 119
Using SAP HANA studio for SAP HANA instance redirected restore
5 Specify the source instance name in the Source System field, and click Next.
Note: By default, the Source System field is prepopulated with the destination
SAP HANA instance name.
In SAP HANA SPS 10 and later, you must select the Backint System Copy
check box to enable the Source System field.
Performing backups and restores of SAP HANA 120
Using SAP HANA studio for SAP HANA instance redirected restore
Performing backups and restores of SAP HANA 121
Using SAP HANA studio for SAP HANA instance redirected restore
6 In the Select a Backup screen, select a data backup to recover the SAP HANA
database, and click Next.
Performing backups and restores of SAP HANA 122
Using SAP HANA studio for SAP HANA instance redirected restore
7 In the Check Availability of Log Backups section, clear the File System
check box and select the Third-Party Backup Tool (Backint) check box. In
the Initialize Log Area section, select the Initialize Log Area check box, and
then click Next.
Note: If you use SAP HANA SPS 10 and later, ensure that the Use Delta
Backups check box is selected.
Performing backups and restores of SAP HANA 123
Using SAP HANA studio for SAP HANA instance redirected restore
Performing backups and restores of SAP HANA 124
Using SAP HANA studio for SAP HANA instance redirected restore
8 In the Review Recovery Settings screen, confirm the recovery details, and
click Finish.
Performing backups and restores of SAP HANA 125
Using SAP HANA studio for SAP HANA instance redirected restore
11 Specify the source instance name in the Source System field, and click Next.
Note: By default, the Source System field is prepopulated with the destination
SAP HANA instance name.
If you use SAP HANA SPS 10 and later, you must select the Backint System
Copy check box to enable the Source System field.
12 In the Selecta Backup screen, select a data backup to recover the SAP
HANA database, and click Next.
Performing backups and restores of SAP HANA 127
Using SAP HANA studio for SAP HANA instance redirected restore
13 In the Other Settings screen, the Initialize Log Area check box is selected
by default. Click Next.
Note: If you use SAP HANA SPS 10 and later, ensure that the Use Delta
Backups check box is selected.
14 In the Review Recovery Settings screen, confirm the recovery details, and
click Finish.
15 Check the Activity Monitor of the NetBackupweb UI to view the recovery
information.
16 Specify the source instance name in the Source System field, and click Next.
Note: By default, the Source System field is prepopulated with the destination
SAP HANA instance name.
If you use SAP HANA SPS 10 and later, you must select the Backint System
Copy check box to enable the Source System field.
Performing backups and restores of SAP HANA 128
Using SAP HANA studio for SAP HANA instance redirected restore
17 In the Specify the Backup to Recover screen, specify the Destination Type
as Backint and in the Backup Prefix field, specify the backup prefix. Click
Next.
Performing backups and restores of SAP HANA 129
Using SAP HANA studio for SAP HANA instance redirected restore
18 In the Other Settings screen, the Initialize Log Area check box is selected
by default. Click Next.
Note: If you use SAP HANA SPS 10 and later, ensure that the Use Delta
Backups check box is selected.
19 In the Review Recovery Settings screen, confirm the recovery details, and
click Finish.
20 Check the Activity Monitor of the NetBackupweb UI to view the recovery
information.
Chapter 9
NetBackup for SAP with
Snapshot Client
This chapter includes the following topics:
■ Using NetBackup for SAP with Snapshot Client to back up large databases
■ About restoring individual files from a NetBackup for SAP snapshot backup
■ About NetBackup for SAP restores of volumes and file systems using snapshot
rollback
■ Mixing RMAN stream and RMAN proxy NetBackup for SAP backups
NetBackup for SAP is used with Snapshot Client, the environments that are based
on Oracle are supported.
Note: Environments that are based on MaxDB databases are not supported.
The ability to restore your environment quickly depends on your ability to back up
business-critical data quickly. Backups enable you to restore your environment in
the event of logical database errors or physical errors such as hardware failures or
disasters. Snapshot backups enable you to minimize the length of time that a
database is in backup mode or offline. Veritas recommends that customers perform
online backups at least daily and offline backups once a week. Since periods of
low SAP system activity are few and far between because customers tend to run
long batch jobs on weekends or during night hours, snapshots make it possible to
protect the data with minimal delay.
Table 9-1 describes the Snapshot Client features.
Array and software snapshot Supports a variety of array and software snapshots and
integration provides a base for all Snapshot Client solutions.
Table 9-1 NetBackup for SAP with Snapshot Client features (continued)
Instant recovery backups This feature makes backups available for instant recovery
from disk. Instant recovery combines snapshot technology
with the ability to do rapid disk-based restores. NetBackup
creates the image without interrupting user access to data.
The snapshot can optionally be backed up to tape or other
storage long-term storage, but is retained for recovery in the
short term. Instant recovery makes it possible to perform file
promotion and rollback without accessing the long-term
storage. Additionally for UNIX and Linux, instant recovery
makes it possible to perform block-level restores.
Off-host backups An off-host backup shifts the burden of the backup process
onto a separate backup agent, such as an alternate client or
data mover. An off-host backup reduces the effect on the
client's resources that a local backup ordinarily causes. The
backup agent reads the data from the client disk and writes
it to storage. You can perform off-host backups by using
thebackint command or by using RMAN proxy.
Block-level incremental This feature is available for UNIX and Linux. Less data leads
backup and recovery to high performance data protection. A Block-Level
Incremental (BLI) Backup uses the change tracking
capabilities of the Veritas File System (VxFS) Storage
Checkpoint feature. In a BLI backup, only the changed blocks
of data are backed up, not the entire file or file system. A BLI
backup saves time, decreases the amount of backup media
that is required, and significantly reduces CPU and network
overhead during backups.
Table 9-1 NetBackup for SAP with Snapshot Client features (continued)
RMAN stream-based backups RMAN stream-based operations are the standard way by
which NetBackup for SAP implements conventional RMAN
backups and restores. In a stream-based backup, NetBackup
moves the data that the Oracle server process provides.
RMAN proxy and RMAN RMAN Proxy backups can be used to perform off-host
stream-based backups snapshot-based split mirror full backups. For example, you
intermixed can use RMAN proxy for weekly full backups.
volume controllers become saturated. As a result, online use of the SAP system
is limited and system performance is unpredictable during the backup.
■ System availability. Traditionally, backup activities were carried out when there
was little or no system activity. This time window usually occurred at night. In
today’s production environments, which require little or no system downtime,
this window is small, if one even exists.
■ Network performance. Instability and further performance loss may be
experienced with a backup of large databases from the production host and
over the network.
NetBackup for SAP with Snapshot Client supports split mirror backups. Split mirror
backups are the recommended backup method for large databases because these
backups overcome the preceding concerns.
Constant
copy Local
(split) copy
Mirror1 Mirror2
Live data
In SAP environments, the Snapshot Client technology supports the following major
backup strategies:
■ Off-host backup, which offers more performance. It offloads database backup
activity and CPU cycles from the production host to the backup host. Thus, it
improves the performance of the production environment.
■ Snapshot backup, which requires no downtime of your production system. SAP
supports both offline split mirror and online split mirror backups. In an online
NetBackup for SAP with Snapshot Client 135
How the NetBackup for SAP Snapshot Client works
split mirror backup, the production database remains available for user
transactions. The need for backup windows is eliminated and 24/7 uptime
functionality is provided for continuous business transactions.
■ (UNIX or Linux) Block-Level Incremental (BLI) Backup. BLI backups decrease
the amount of backup media that is required for incremental backups and to
significantly reduce CPU and network overhead during backups. BLI, may not
be used for incremental backups with SAP with RMAN.
■ Split mirror backups. Because the mirrors are split from their standard devices
and mounted on the backup server, the backup does not overload the network.
The backup is run on the backup server without affecting the network.
How NetBackup for SAP performs a split mirror backup using backint
Figure 9-2 lists the sequence of operations when you use backint to perform a
backup.
Figure 9-2 SAP Oracle online and offline backups by using the brbackup
command and backint command
5. Snapshot taken
When NetBackup for SAP performs a backup by using the backint, the following
occurs:
2 NetBackup for SAP queries the policy to check whether the Snapshot Client policy
attributes are specified.
NetBackup for SAP with Snapshot Client 137
How the NetBackup for SAP Snapshot Client works
When NetBackup for SAP is ready to back up the files, it sends a request to brbackup
to put the data files into backup mode
Depending on the parameters with which the brbackup command was invoked, brbackup
either shuts down the database or puts the database in backup mode.
■ If brbackup is invoked with following command, brbackup shuts down the
database:
4 NetBackup for SAP quickly creates a snapshot of the files to back up. This operation
typically takes a few seconds or minutes.
5 NetBackup for SAP notifies brbackup that the snapshot has been taken and that the
database can be either started or taken out of backup mode.
6 brbackup either starts the database or takes the database out of backup mode.
See “The util_file parameter incompatible with Snapshot Client” on page 139.
See “How the NetBackup for SAP Snapshot Client works” on page 135.
How NetBackup for SAP performs a split mirror backup using RMAN
Figure 9-3 lists sequence of operations when you use RMAN proxy to perform a
backup.
NetBackup for SAP with Snapshot Client 138
How the NetBackup for SAP Snapshot Client works
Figure 9-3 SAP Oracle online and offline backups by using RMAN proxy
brbackup
2. Check policy for Snapshot Client attributes
3. Shut down or put database in backup mode
NetBackup
5. Snapshot taken
When NetBackup for SAP performs a backup by using RMAN, the following occurs:
2 NetBackup for SAP queries the policy to check whether the Snapshot Client policy
attributes are specified.
3 When NetBackup for SAP is ready to back up the files, it sends a request to
RMAN. The RMAN puts the data files into backup mode or shuts down. NetBackup
sends this request by using an SBT API.
4 Depending on the parameters with which the brbackup command was invoked,
RMAN either shuts down the database or puts the database in backup mode.
■ If brbackup is invoked with following command, RMAN shuts down the
database:
5 NetBackup for SAP quickly creates a snapshot of the files to back up. This
operation typically takes a few seconds or minutes.
6 NetBackup for SAP notifies RMAN that the snapshot has been taken and that the
database can be either started or taken out of backup mode.
7 RMAN either starts the database or takes the database out of backup mode.
-d util_file
When you specify this parameter, brbackup either shuts down the database or puts
the database in backup mode. Then brpbackup calls the NetBackup for SAP Agent.
The database remains in backup mode for the duration of entire backup.
Doing snapshot-based backups in this scenario is not useful. The snapshot
technology adds no value because the database is either offline or in backup mode
for several hours. If you initiate backups with this parameter in effect, NetBackup
for SAP performs only standard backups directly to the storage unit. NetBackup for
SAP ignores any snapshot-related configuration in the policy
For profile and configuration files, the NetBackup for SAP backint command
performs standard backups directly to the configured storage unit. NetBackup for
SAP uses advanced methods only when it moves Oracle data files.
The following is additional information on special file types for UNIX or Linux:
■ Symbolic links and raw data files. NetBackup for SAP with Snapshot Client
backs up and restores the data files that consist of symbolic links and regular
files. NetBackup for SAP backs up and restores both the symbolic link and the
file. If you select Retain snapshots for Instant Recovery or SLP management,
the symbolic link must reside on the same file system as the data file. When
you use instant recovery, if the symbolic link resides on a different file system
than the data file it points to, the restore fails.
NetBackup for SAP with Snapshot Client backs up and restores the data.
Files that are created on raw partitions:
■ Quick I/O data files. NetBackup for SAP with Snapshot Client backs up and
restores Quick I/O Oracle data files. A Quick I/O file consists of two components:
A hidden file with space allocated for it and a link that point to the Quick I/O
interface of the hidden file.
■ On the backup, NetBackup for SAP with Snapshot Client follows the symbolic
link and backs up both components of the Quick I/O file: The symbolic link
and the hidden file.
■ On the restore, NetBackup for SAP with Snapshot Client restores both
components from the backup image. If one or both of the components are
missing, NetBackup for SAP with Snapshot Client creates the missing
component(s).
backups. This configuration ensures that the entire database can be restored
successfully.
■ On UNIX, the user identification and group identification numbers (UIDs and
GIDs) associated with the files to be backed up must be available. The UID and
GID must be available to both the primary client and the alternate backup client.
The UID on the primary client and the alternate backup client must be the same.
Similarly, the GID on the primary client and the alternate backup client must be
the same.
■ Ensure that the data files reside on a volume or a file system that does not
contain archive logs, control files, or executables.
■ The hardware and software that is required for the appropriate snapshot method
must be installed and configured correctly.
■ NetBackup Snapshot Client must be installed and configured correctly, and the
primary server must have a valid license for this option.
■ To perform off-host backups, specify the off-host in the backup policy and ensure
that host has the software and permissions to mount the snapshot.
■ To perform Snapshot Client backups or restores, you need brtools version
6.40, patch level 36 or greater.
Use Alternate If you select Alternate client, also specify the name of the client
client (UNIX and to perform the backup. This option may require additional
Windows clients) configuration. The alternate client must be a client that shares the
disk array.
Use Data mover See “Configuring a NAS snapshot policy for NetBackup for SAP
(UNIX clients only). on UNIX/Linux” on page 151.
Automatic Full Backup An Automatic Full Backup schedule specifies the dates and times
on which NetBackup is to start backups. Backups commence by
running the SAP scripts automatically in the order they appear in
the file list. If there is more than one client in the SAP policy,
NetBackup for SAP runs the SAP scripts on each client. You must
configure the Automatic Full Backup schedule in order for Snapshot
Client methods to back up Oracle data files.
3 Create multiple disk volumes and mount the disk volumes in their respective
directories under /EPP.
Create as many volumes as there are data file directories. For example, if you
had data file directories named sapdata1, sapdata2, and sapdata3, create
and mount the following new data file directories:
■ /EPP/sapdata1
NetBackup for SAP with Snapshot Client 147
About configuring Snapshot Client with NetBackup for SAP
■ /EPP/sapdata2
■ /EPP/sapdata3
5 Copy the data files from the temporary location to their respective directories.
That is, copy the data files you moved in step 2 to the directories you created
in step 3.
6 Start the database.
Use Alternate If you select Alternate client, also specify the name of the client
client (UNIX and to perform the backup. This option may require additional
Windows clients) configuration. The alternate client must be a client that shares the
disk array.
Use Data mover See “Configuring a NAS snapshot policy for NetBackup for SAP
(UNIX clients only). on UNIX/Linux” on page 151.
RMAN proxy backups with NAS Keep all database data files on the NAS.
Other database files should be located
on the local file system. (These files
include the online redo logs, control files,
archive redo logs, Oracle executables,
and the configuration files.)
BACKINT backups with NAS Keep all database data files, online redo
logs and all copies of control files on the
NAS. Other database files including
Oracle executables, configuration files
(e.g. SAPBACKUP directory,
initCER.utl) and the archive redo
logs should be under the local file
system.
NetBackup for SAP with Snapshot Client 151
About configuring Snapshot Client with NetBackup for SAP
phase 2). You can override this storage unit in the Application Backup
schedule.
Note that restoring a file rewrites all blocks in that file. The first subsequent
differential incremental backup and or all subsequent cumulative incremental
backups back up all the blocks in the restored file. After an entire database is
restored, the first subsequent backup results in a full backup.
The restore destination can be a VxFS, UFS (Solaris), JFS (AIX), or HFS (HP-UX)
file system. The destination VxFS file system does not need to support the Storage
Checkpoint feature to restore files. However, a VxFS file system with the Storage
Checkpoint feature is needed to perform BLI backups of the restored data.
This topic uses the following terms to describe BLI backups:
■ Full Backup.
A backup in which NetBackup backs up each database file completely, not just
data blocks that have changed since the last full or incremental backup.
■ Cumulative BLI Backup.
This type of backup is a backup of all the changed blocks in the database files
since the last full backup. A cumulative BLI backup image contains only the data
blocks of database files that changed since the last full backup. A cumulative
BLI backup can reduce the number of incremental backup images that must be
applied during a restore operation. This speeds up the restore process.
■ Differential BLI backup.
A backup in which NetBackup performs a backup of only those data blocks
(within the database files) that changed since the last backup. The previous
backup can be of type full, cumulative incremental, or differential incremental.
When NetBackup initiates BLI backups, it creates, manages, and uses the
appropriate Storage Checkpoints of the filesystem(s) hosting the Oracle data file
systems. These Storage Checkpoints identify and maintain a list of modified blocks.
Note: The default option that NetBackup uses for backups is Fulldata Storage
Checkpoint. With this option, the NetBackup for SAP keeps the Oracle data files in
backup mode only for the time that is needed to create a Storage Checkpoint.
/usr/openv/netbackup/ext/db_ext/NODATA_CKPT_PROXY
If the agent finds this file during run time, it uses Nodata Storage Checkpoint, and
it keeps the data files in backup mode. The data files are kept in backup mode for
the duration of the backup.
■ An Application Backup schedule type to back up the control files and archive
logs and phase 2 profile and configuration files.
BLIB with RMAN proxy is not a valid use case. Perform BLIB
through backint.
NetBackup for SAP checks that a full backup was performed before it proceeds
with an incremental backup. If the NetBackup scheduler or user initiates an
incremental backup, and NetBackup for SAP finds no record of a full backup using
the same policy, it performs a full backup.
To ensure that it has a proper set of images to restore, NetBackup performs a full
backup when it encounters the following situations:
■ If NetBackup does not have a valid full backup image for the same policy in its
database. For example, this situation can occur if images were expired.
■ If a new file was added to or deleted from the list of files for an incremental
backup.
■ If the number of backup streams that is specified has changed from the previous
backup.
NetBackup for SAP always initiates a full backup under these conditions, even if
you want to perform an incremental backup.
Use this procedure for the files that were backed up with, or without, instant recovery
enabled. In all cases, SAP determines the files that were backed up, and it initiates
a corresponding restore request to the database agent.
If instant recovery is enabled, NetBackup attempts to restore the file by using the
unique restore methods available with the instant recovery feature. The type of
restore method that NetBackup uses depends on your environment and the type
of backup performed. If NetBackup is unable to use any of the instant recovery
methods, it restores the file in the typical manner. Data is copied from the snapshot
to the primary file system. Information on the instant recovery methods that
NetBackup uses is available.
See the NetBackup Snapshot Client Administrator’s Guide.
■ For the backups that are performed with RMAN, add the following entry in the
initSID.sap file:
rman_send = “'NB_ORA_PC_RESTORE=rollback'”
…/saparch/cntrl/cntrlSID.dbf
…/sapdata1/cntrl/cntrlSID.dbf
…/sapdata2/cntrl/cntrlSID.dbf
Windows:
…\saparch\cntrl\cntrlSID.dbf
…\sapdata1\cntrl\cntrlSID.dbf
…\sapdata2\cntrl\cntrlSID.dbf
If the data files in sapdata1 and sapdata2 directories are on one volume, a snapshot
of this volume contains these control files. However, at the time of the restore,
brrestore provides only data files for restore and not control files. Therefore, the
instant recovery with rollback method fails. For the rollback method, the files in the
snapshot and the files in the restore file list should match. In this case, the files do
not match, so instant recovery rollback restores method fail.
To avoid this problem, move the control files under locations sapdata1 and sapdata2
to some other location after you install your SAP database instance. First stop the
database, then move the control files to different locations, adapt the profile file or
spfile accordingly, and restart the database.
NetBackup for SAP with Snapshot Client 161
About NetBackup for SAP sample backup scripts (UNIX or Linux)
/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 you want to perform backups by using the brbackup command through RMAN
proxy, add following lines in the initSID.sap file:
NetBackup for SAP with Snapshot Client 162
About NetBackup for SAP sample backup scripts (Windows)
rman_proxy = yes
rman_send = "'NB_ORA_PC_SCHED=auto_sched_name'"
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 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'"
then use RMAN stream-based incremental backups for daily backups. To mix
backup methods, perform the following additional configuration procedure.
To mix RMAN stream and RMAN proxy NetBackup for SAP backups
1 Copy initSID.sap to the initFullSID.sap and initIIncrSID.sap files.
2 Edit the init_fullSID.sap and initI_incrSID.sap.
Edit the files as follows:
■ Specify the rman_parms parameter.
■ Set the NB_ORA_SAP environment variable to the initSID.utl path.
rman_send = "'NB_ORA_PC_SCHED=auto_sched'"
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle/sap_rman_backup
on Windows:
install_path\NetBackup\DbExt\SAP\samples\sap_rman_backup.cmd
if [ $SAP_FULL -eq 1 ]
then CMD_LINE="$SAP_ENV brbackup -d rman_util -t offline -p initFullSID.sap -m full -c"
elif [ $SAP_CINC -eq 1 ]
then CMD_LINE="$SAP_ENV brbackup -d rman_util -t offline -p initIncrSID.sap -m incr -c"
7 Specify the script from step 4 in the backup selection of your NetBackup for
SAP policy
NetBackup for SAP with Snapshot Client 164
Performing user-directed snapshot backups with NetBackup for SAP
SAP_SNC_SCHED=schedule_name_of_backup_type_to_perform
See “Mixing RMAN stream and RMAN proxy NetBackup for SAP backups”
on page 162.
See “About NetBackup for SAP sample backup scripts (UNIX or Linux)” on page 161.
See “About NetBackup for SAP backup types ” on page 145.
Chapter 10
NetBackup for SAP on
MaxDB databases
This chapter includes the following topics:
where
passwd password.
medium_name Name of the backup medium. The first four characters must be
BACK. The medium_name must be in format BACKname. For
example, BACKData.
/export/home/medium1
or
\\.\PIPE\medium1
To perform a backup
1 Make sure that you have modified the proper configuration files and created a
backup medium.
2 Type the following command to start a utility session:
dbmcli> util_connect
where:
where:
To perform a restore
1 To obtain the external backup identification information, perform a query.
See “Performing a MaxDB database query” on page 168.
2 Type the following command to initiate the restore:
dbmcli> recover_start medium_name backup_type ExternalBackupId
"database_name BID medium_path"
where:
For example,
/export/home/medium1 or
\\.\PIPE\medium1.
Note: Parallel backups can only be used with backup_type data, not PAGES, or
log.
■ You can combine individual backup mediums to form parallel mediums. When
parallel mediums are used for backup, the MaxDB database passes two or more
named pipes to NetBackup for SAP. NetBackup for SAP starts as many backup
streams as there are named pipes. It processes each named pipe independently
from the rest of the named pipes in the backup job. If the policy and the storage
NetBackup for SAP on MaxDB databases 170
Using NetBackup for SAP on a MaxDB database to perform backups and restores
unit are configured for multiplexing, the streams can be interleaved on the same
tape.
■ Even if a backup is done in parallel, you can perform a restore of that data in
either the parallel or sequential mode. In other words, parallel backups do not
require parallel restores.
When the MaxDB database requests a parallel restore by listing multiple named
pipes in an input file, NetBackup for SAP processes each pipe independently
from the rest of the named pipes. Note that the MaxDB database requires that
the number of media in a group of parallel media equal the number of media
used during backup.
Chapter 11
Troubleshooting
NetBackup for SAP and
SAP HANA
This chapter includes the following topics:
You can enable debug logging by running a batch file that creates each log directory.
To create all log file directories automatically, run the following:
install_path\NetBackup\logs\mklogdir.bat
Troubleshooting NetBackup for SAP and SAP HANA 173
NetBackup debug logs and reports
Creating the NetBackup for SAP for Windows database agent logs manually
1 Create the following directories on the client in a DOS window:
install_path\NetBackup\logs\bpbackup
install_path\NetBackup\logs\bpbkar32
install_path\NetBackup\logs\bphdb
install_path\NetBackup\logs\bprestore
install_path\NetBackup\logs\tar32
install_path\NetBackup\logs\backint
For example:
cd install_path\NetBackup\logs
mkdir bphdb
2 Enable logging for the nbpem, nbjm, and nbrb scheduling processes, which
use unified logging.
NetBackup writes unified logs to install_path\NetBackup\logs.
You do not need to create log directories for processes that use unified logging.
For information on how to use logs and reports, see the NetBackup
Troubleshooting Guide.
Troubleshooting NetBackup for SAP and SAP HANA 174
NetBackup debug logs and reports
/usr/openv/netbackup/logs/bpbackup
/usr/openv/netbackup/logs/bpbkar
/usr/openv/netbackup/logs/bphdb
/usr/openv/netbackup/logs/bprestore
/usr/openv/netbackup/logs/tar
/usr/openv/netbackup/logs/backint
For example:
cd /usr/openv/netbackup/logs
mkdir bphdb
2 (Conditional) If you run NetBackup for SAP on Oracle with RMAN, create the
following additional directory:
/usr/openv/netbackup/logs/dbclient
3 Verify that the user_ops directory, each of the log directories, and any
subdirectories exist and are accessible for all applications to operate correctly.
See “About permissions for NetBackup for SAP log files (UNIX)” on page 63.
4 Enable logging for the nbpem, nbjm, and nbrb scheduling processes that use
unified logging.
NetBackup writes unified logs to /usr/openv/logs.
You do not need to create log directories for the processes that use unified
logging.
Information on how to use logs and reports is available.
See the NetBackup Troubleshooting Guide.
This log contains debugging information for the bphdb process. bphdb is the
NetBackup database backup binary. It is invoked when an automatic backup
schedule is run. NetBackup for SAP uses this client process for SAP script
execution.
To control the amount of information that is written to the debug logs, change the
Database debug level. Typically, the default value of 0 is sufficient. However,
technical support may ask you to set the value higher to analyze a problem.
1 Open the Backup, Archive, and Restore interface.
2 Select File > NetBackup Client Properties.
3 Click the Troubleshooting tab.
4 Set the General debug level.
5 Set the Verbose debug level.
6 Set the Database debug level.
7 Click OK to save your changes.
VERBOSE = X
■ Through the following sapdba menu options: Show>Cleanup and Show log
files>profiles.
■ In the directories for brbackup and brrestore log information and brarchive
log information.
%SAPDATA_HOME%\sapbackup
UNIX or Linux:
$SAPDATA_HOME/sapbackup
The files in this directory are named according to the following pattern:
■ The summary log file is named backSID.log, where SID is the unique name
for the Oracle database instance.
■ The detail log files are named encoded_timestamp.xyz, where:
Windows:
%SAPDATA_HOME%\saparch
UNIX or Linux:
$SAPDATA_HOME/saparch
The files in this directory are named according to a pattern. The encoded_timestamp
is a timestamp used in each detail log name that guarantees a unique file name.
Table 11-1 lists the suffixes that differentiate the different types of archive logs.
■ In the NetBackup web UI, under Settings > Global security, select the Enable
insecure communication with NetBackup 8.0 and earlier hosts check box.
■ Upgrade the media server or client to use NetBackup 8.1 or later versions.
Note: This change may delay detecting problems during subsequent backups.
Consider putting the original value back in place once any restore that requires a
change is complete.
The default Client read timeout is 300 seconds. For tape backups, change the
Client connect timeout and Client read timeout to 3000 seconds. The following
procedure helps you to change the timeout period.
Changing the timeout period
1 In the NetBackup web UI, expand Hosts > Host Properties > Master Servers.
Expand Actions > Edit primary server.
2 Select Timeouts. Set the Client connect timeout and the Client read timeout
property to the required (3000 here) value.
See the NetBackup Administrator’s Guide, Volume 1.
3 Click OK for each client.
Note: This issue is not seen in case of disk recovery. Hence no change is required
for max_recovery_backint_channels in case of disk recovery.
When a recovery job is initiated, the SAP HANA Studio forces a shutdown of the
system and the backup jobs fail. To avoid the shutdown and subsequent backup
failure, stop the system. You can then start the recovery job.
Note: Veritas recommends that you use the backint command only with guidance
from a technical support staff member.
interface through the in_file parameter and out_file parameter. The in_file
parameter includes a list of files to be restored through NetBackup. It also
includes the BID assigned during the backup function. The out_file parameter
contains the status of the restore for each file. When the NetBackup restore
operation is complete, the restore function lists successfully restored files. It
also lists BIDs used during the operation.
During the backup function, NetBackup assigns the BID. It can identify one or
more backup runs, a single file backup, or a group of files. During a backup
function, the BID is submitted to the out_file parameter. During the restore and
the inquiry functions, the BID can only be set in the in_file parameter.
If the BID is not set, the restore function uses the BID of the last backup. As an
option, this function can also include a list of directories into which files are
restored.
■ The inquiry function. The inquiry function supports and defines the sapdba tool
to NetBackup. sapdba uses the in_file parameter and the out_file parameter to
collect backup information. The in_file parameter contains optional BIDs and
file names.
If only a #NULL is received on the in_file parameter, a list of BIDs is generated
to the out_file parameter. If a BID is received, a list of files belonging to the BID
is generated. If a file name is entered along with the #NULL, a list of BIDs
containing that file is listed.
The backint command line uses the following syntax:
backint -u user_id -f function [-t type] -p par_file [-i in_file] [-o out_file]
on UNIX or Linux:
/usr/openv/netbackup/ext/db_ext/sap/scripts/sap_oracle
initSAP.utl
on Windows:
install_path\NetBackup\dbext\sap\samples\initSAP.utl
-i in_file Optional. Specifies a text file, the contents of which list the
files to backup, inquire, or restore. The format can vary. If
this option is not specified, the content of this file is data from
standard input.
-o out_file Optional. Specifies a text file that contains each file that is
processed and associated status. May also contain other
process messages. If this option is not specified, the output
is written to standard output.
Note: The SAP HANA database does not rely on any action that is related to the
parameters that are passed with options –s, -c, or –l. These are for informational
purposes only.
The SAP HANA database never calls the options –v and –V. They are for diagnosis
only. The implementation of –V is optional.
Appendix B
Input and output files for
SAP HANA
This appendix includes the following topics:
The input files with multiple lines handling objects by pipe like #PIPE in function
BACKUP or #EBID and #NULL in function RESTORE must be processed in sequential
order starting from top to bottom. One backint may handle multiple pipes in parallel.
However, it should not skip entries for later processing or pause processing of
entries depending on events in subsequent entries.
The input and the output files are provided to backint by the SAP HANA database.
Appendix C
backint -i in_file contents
This appendix includes the following topics:
file Oracle
Table C-2 lists the variables that you need to specify in the in_file:
Variable Specification
file The full path name of the file that you want to back up, restore, or inquire
about.
pipe A named pipe. Specify the keyword #PIPE after the pipe name.
If you use the #NULL keyword, backint uses the most recent version of the file or
pipe.
Appendix D
backint -o out_file contents
This appendix includes the following topics:
Output Description
Information returned for a If a backup completes successfully, the output file includes
backup the following:
If a backup function fails, the output file lists the files or pipes
that it could not back up.
backint -o out_file contents 193
About backint -o out_file contents
Output Description
Information returned for a If a restore completes successfully, the output file entry
restore includes the following:
■ The BID.
■ The files or pipes restored.
If a restore function fails, the output file lists the files and
pipes not found. It also lists the files and pipes that were not
successfully restored.
Information returned for an If an inquiry completes successfully, the output file entry
inquiry includes the following:
■ The BID.
■ The files or pipes that are backed up.
Appendix E
NetBackup for SAP
environment variables for
backint
This appendix includes the following topics:
Note: These environment variables apply only to the backint interface and are not
applicable to the phase 1 backup that SAP performs with RMAN. The initSID.sap
settings are applicable to the phase 2 backup.
Sets the name of the NetBackup policy. Used to define which policy
$SAP_POLICY %SAP_POLICY% to use for different types of database backup or inquiry functions.
You can use one policy to perform offline database backups and
another policy to perform archive log backups. This environment
variable overrides as the policy parameter in the initSID.utl
file.
Sets the name of the SAP backup policy schedule. This schedule
$SAP_SCHED %SAP_SCHED% provides an easy way to switch to a different schedule for each SAP
database backup. This environment variable overrides the schedule
parameter in the initSID.utl file.
Sets the name of the SAP backup policy schedule. This schedule
$SAP_SNC_SCHED %SAP_SNC_SCHED% is used to perform file-based snapshot and off-host backups of the
data file in brbackup phase 1. The following types of schedules
can be used for this type of backup: Automatic Full, Automatic
Differential Incremental, or Automatic Cumulative Incremental.
NetBackup for SAP environment variables for backint 196
NetBackup for SAP backint interface environment variables
Setting Precedence
Setting Precedence
Table F-2 lists the variable names and definitions you can use in the bp.conf file
(UNIX or Linux) or the registry (Windows).
Table F-2 NetBackup for SAP variable names and definitions (continued)
For more information, see the NetBackup Administrator’s Guide, Volume II.
Appendix G
Parameters used in
initSID.utl
This appendix includes the following topics:
■ backup_stream_buffersize <size>
■ client <client_name>
■ custom_sort_file <file_path>
■ drives <number_of_drives>
■ inquiry_query_period <months>
■ multistream_restore
■ policy <policy_name>
■ policy2 <policy_name>
■ restore_stream_buffersize <size>
■ retry_backup <number_of_retries>
■ schedule <schedule_name>
■ schedule2 <schedule_name>
■ server <server_name>
Parameters used in initSID.utl 201
About parameters used in initSID.utl
■ sort_backup_type <value>
■ sort_restore_type <value>
■ switch_list <control_file_path>
■ switch_log <control_file_path>
■ switch_sem <control_file_path>
Table G-1 NetBackup for SAP parameters and the database environments
backup_stream_buffersize MaxDB
Table G-1 NetBackup for SAP parameters and the database environments
(continued)
restore_stream_buffersize MaxDB
Table G-1 NetBackup for SAP parameters and the database environments
(continued)
backup_stream_buffersize <size>
This parameter specifies the buffer size, in bytes, for stream-based backups.
NetBackup receives data from MaxDB through the stream (pipe). When MaxDB
passes the data to NetBackup, it uses this buffer size. Also see the
restore_stream_buffersize parameter.
client <client_name>
This parameter specifies the host name by which the master server knows this SAP
client, as entered into the policy. In some cases the server and the client host are
same hosts. The following is an example:
client saturn
If the NetBackup for SAP backint interface finds the $SAP_CLIENT (%SAP_CLIENT%)
environment variable, the $SAP_CLIENT environment variable value overrides the
client parameter value.
If the client parameter is not specified, and there is no environment variable, the
client parameter defaults to the value that is specified for the CLIENT_NAME option
in the bp.conf file or the registry. If the value is not specified there, the NetBackup
for SAP backint interface uses the value the gethostname()library function returns.
custom_sort_file <file_path>
Specify this parameter only when the sort_backup_type or the sort_restore_type
parameters are set to custom.
Parameters used in initSID.utl 204
custom_sort_file <file_path>
When custom is specified, set the custom_sort_file parameter to a valid file. The
file_path value must be a full path name to a custom sort file, and it must have
public permissions. This file can be created by end user manually or can be created
automatically by using the nbsapcustomsort utility.
Linux:
/usr/openv/netbackup/bin/nbsapcustomsort
Windows:
install_path\NetBackup\bin\nbsapcustomsort.exe
<custom_sort_file_path>/sap_custom_sort_file
Windows:
<custom_sort_file_path>/sap_custom_sort_file
The custom sort file must include two fields. The first field groups a set of files into
a particular job. The second field is a file path name that maps the SAP backup file
list to a group ID.
The following is an example of a custom sort file for Windows:
1 c:\oracle\sap\sapdata1\btabd_1\btabd.data1
1 c:\oracle\sap\sapdata2\btabi_1\btabi.data1
1 c:\oracle\sap\sapdata2\clud_1\clud.data1
1 c:\oracle\sap\sapdata1\ddicd_1\ddicd.data1
1 c:\oracle\sap\sapdata5\ddici_1\ddici.data1
1 c:\oracle\sap\sapdata4\el30cd_1\EL30cd.data1
1 c:\oracle\sap\sapdata1\el30ci_1\el30ci.data1
1 c:\oracle\sap\sapdata6\es30cd_1\es30cd.data1
1 c:\oracle\sap\sapdata2\poold_1\poold.data1
1 c:\oracle\sap\sapdata1\pooli_1\pooli.data1
1 c:\oracle\sap\sapdata4\protd_1\protd.data1
Parameters used in initSID.utl 205
custom_sort_file <file_path>
2 c:\oracle\sap\sapdata1\roll_1\roll.data1
2 c:\oracle\sap\sapdata2\sourced_1\sourced.data1
2 c:\oracle\sap\sapdata3\stabd_1\stabd.data1
2 c:\oracle\sap\sapdata2\stabi_2\stabi.data2
2 c:\oracle\sap\sapdata1\temp_1\temp.data1
2 c:\oracle\sap\sapdata4\user1d_1\user1d.data1
2 c:\oracle\sap\sapdata2\user1i_1\user1i.data1
2 c:\oracle\sap\sapdata1\system_1\system.data1
2 c:\oracle\sap\saplog1\log_g1_m1\log1_m1.dbf
2 c:\oracle\sap\saplog1\log_g2_m1\log2_m1.dbf
2 c:\oracle\sap\saplog1\log_g3_m1\log3_m1.dbf
2 c:\oracle\sap\saplog1\log_g4_m1\log4_m1.dbf
2 c:\oracle\sap\dbs\cntrlSAP.dbf
1 /oracle/sap/sapdata1/btabd_1/btabd.data1
1 /oracle/sap/sapdata2/btabi_1/btabi.data1
1 /oracle/sap/sapdata2/clud_1/clud.data1
1 /oracle/sap/sapdata1/ddicd_1/ddicd.data1
1 /oracle/sap/sapdata5/ddici_1/ddici.data1
1 /oracle/sap/sapdata4/el30cd_1/EL30cd.data1
1 /oracle/sap/sapdata1/el30ci_1/el30ci.data1
1 /oracle/sap/sapdata6/es30cd_1/es30cd.data1
1 /oracle/sap/sapdata2/poold_1/poold.data1
1 /oracle/sap/sapdata1/pooli_1/pooli.data1
1 /oracle/sap/sapdata4/protd_1/protd.data1
1 /dev/rdsk/c0t4d0s6
2 /oracle/sap/sapdata1/roll_1/roll.data1
2 /oracle/sap/sapdata2/sourced_1/sourced.data1
2 /oracle/sap/sapdata3/stabd_1/stabd.data1
2 /oracle/sap/sapdata2/stabi_2/stabi.data2
2 /oracle/sap/sapdata1/temp_1/temp.data1
2 /oracle/sap/sapdata4/user1d_1/user1d.data1
2 /oracle/sap/sapdata2/user1i_1/user1i.data1
2 /oracle/sap/sapdata1/system_1/system.data1
2 /oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
2 /oracle/sap/saplog1/log_g2_m1/log2_m1.dbf
2 /oracle/sap/saplog1/log_g3_m1/log3_m1.dbf
2 /oracle/sap/saplog1/log_g4_m1/log4_m1.dbf
2 /oracle/sap/dbs/cntrlSAP.dbf
Parameters used in initSID.utl 206
custom_sort_file <file_path>
Based on the custom sort file, if SAP tools submit the entire file list to backint for
backup, two jobs are created. The first job includes all the files that have a “1” in
the first field. The second job includes all the files that have a “2” in the first field.
The following is a list of jobs and associated files:
■ Backup job and restore job 1
Windows:
c:\oracle\sap\sapdata1\btabd_1\btabd.data1
c:\oracle\sap\sapdata2\btabi_1\btabi.data1
c:\oracle\sap\sapdata2\clud_1\clud.data1
c:\oracle\sap\sapdata1\ddicd_1\ddicd.data1
c:\oracle\sap\sapdata5\ddici_1\ddici.data1
c:\oracle\sap\sapdata4\el30cd_1\EL30cd.data1
c:\oracle\sap\sapdata1\el30ci_1\el30ci.data1
c:\oracle\sap\sapdata6\es30cd_1\es30cd.data1
c:\oracle\sap\sapdata2\poold_1\poold.data1
c:\oracle\sap\sapdata1\pooli_1\pooli.data1
c:\oracle\sap\sapdata4\protd_1\protd.data1
c:\dev\rdsk\c0t4d0s6
UNIX or Linux:
/oracle/sap/sapdata1/btabd_1/btabd.data1
/oracle/sap/sapdata2/btabi_1/btabi.data1
/oracle/sap/sapdata2/clud_1/clud.data1
/oracle/sap/sapdata1/ddicd_1/ddicd.data1
/oracle/sap/sapdata5/ddici_1/ddici.data1
/oracle/sap/sapdata4/el30cd_1/EL30cd.data1
/oracle/sap/sapdata1/el30ci_1/el30ci.data1
/oracle/sap/sapdata6/es30cd_1/es30cd.data1
/oracle/sap/sapdata2/poold_1/poold.data1
/oracle/sap/sapdata1/pooli_1/pooli.data1
/oracle/sap/sapdata4/protd_1/protd.data1/dev/rdsk/c0t4d0s6
c:\oracle\sap\sapdata1\roll_1\roll.data1
c:\oracle\sap\sapdata2\sourced_1\sourced.data1
c:\oracle\sap\sapdata3\stabd_1\stabd.data1
c:\oracle\sap\sapdata2\stabi_2\stabi.data2
c:\oracle\sap\sapdata1\temp_1\temp.data1
c:\oracle\sap\sapdata4\user1d_1\user1d.data1
Parameters used in initSID.utl 207
drives <number_of_drives>
c:\oracle\sap\sapdata2\user1i_1\user1i.data1
c:\oracle\sap\sapdata1\system_1\system.data1
c:\oracle\sap\saplog1\log_g1_m1\log1_m1.dbf
c:\oracle\sap\saplog1\log_g2_m1\log2_m1.dbf
c:\oracle\sap\saplog1\log_g3_m1\log3_m1.dbf
c:\oracle\sap\saplog1\log_g4_m1\log4_m1.dbf
c:\oracle\sap\dbs\cntrlSAP.dbf
UNIX or Linux:
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
/oracle/sap/saplog1/log_g2_m1/log2_m1.dbf
/oracle/sap/saplog1/log_g3_m1/log3_m1.dbf
/oracle/sap/saplog1/log_g4_m1/log4_m1.dbf
/oracle/sap/dbs/cntrlSAP.dbf
drives <number_of_drives>
This parameter specifies the number of jobs into which backint should divide the
file list when backup_sort_type is drive or size.
drives 5
If the NetBackup for SAP backint interface finds the $SAP_DRIVES (%SAP_DRIVES%)
environment variable, the $SAP_DRIVES (%SAP_DRIVES%) environment variable value
overrides the drives parameter value. If the drives parameter is not specified and
there is no environment variable, then the NetBackup for SAP backint interface
exits with an error.
Parameters used in initSID.utl 208
inquiry_query_period <months>
inquiry_query_period <months>
In the case of #NULL based inquiry queries, NetBackup for SAP restricts the catalog
search to the last 6 months by default. You can use this parameter to specify a
different query period. Specify an integer value for months. For example, if you
want to set the query to the last 10 months, set this parameter as follows:
inquiry_query_period 10
master_time_offset 3
multistream_restore
This parameter is optional. The parameter can be set to 0 or 1. Specify 0 so that
NetBackup master server determines the most efficient way to create restore jobs
from the selected backup images. All these run as one job. Specify 1 to create
restore streams based on the values of drives and sort_restore_type. Each
stream then becomes a separate job.
Note: Some sites find it easier to monitor and restart failed streams for large restores
if they are separate jobs.
policy <policy_name>
This parameter specifies the name of an SAP policy that is defined in NetBackup.
The SAP policy must have an Application Backup schedule defined in order for the
NetBackup for SAP backint interface to work. The following is an example entry:
policy sap_nb
If the NetBackup for SAP backint interface finds the $SAP_POLICY (%SAP_POLICY%)
environment variable, the $SAP_POLICY environment variable value overrides the
policy parameter value. If the policy parameter is not specified, and there is no
environment variable, then the policy parameter value defaults to the specification
for the BPBACKUP_POLICY option in the NetBackup bp.conf file or the NetBackup
registry. By default, if BPBACKUP_POLICY is not specified in any bp.conf file or in
the NetBackup registry, NetBackup uses the first active SAP policy it finds for the
client with an Application Backup schedule.
policy2 <policy_name>
This parameter specifies the name of a policy to be used for the secondary SAP
(phase 2) backup. A secondary backup is performed for each SAP database backup
on any files that are needed to track SAP backup information. You can use this
option to save the backup information on a different media. If policy2 is not specified
and schedule2 is specified, NetBackup uses the value that is specified for the
policy parameter.
restore_stream_buffersize <size>
This parameter specifies the buffer size, in bytes, for stream-based restores. MaxDB
receives data from NetBackup through the stream (pipe). When MaxDB receives
the data from NetBackup and copies it to the pipe, it uses this buffer size. For more
information, see the backup_stream_buffersize parameter.
retry_backup <number_of_retries>
This parameter specifies the number of retries for a failed backup. backint retries
a failed job the specified number of times. For example:
retry_backup 2
Parameters used in initSID.utl 210
schedule <schedule_name>
schedule <schedule_name>
This parameter specifies the name of an Application Backup schedule that is
associated with an SAP policy type. The schedule can define aspects of the backup
such as how long NetBackup retains images, maximum multiplexing per drive,
storage unit, and volume pool. The following is an example entry:
schedule sap_full_backup
schedule2 <schedule_name>
This parameter specifies name of an Application Backup schedule to be used for
the secondary SAP (phase 2) backup. If it is not specified, the schedule parameter
value is used.
For each SAP backup, NetBackup performs two individual backups. The first backup
backs up database data. The second backup backs up the log files that are needed
to track SAP backup information. You can use this parameter to save SAP log files
to a different media. This can make it easier to restore a database. You can also
use this option to save the backup information to a different volume pool. The
following is an example entry:
schedule2 sap_backup_information
server <server_name>
This parameter specifies the network routable hostname of the NetBackup master
server. The server provides most of the administration and control for NetBackup
operations. It contains the NetBackup database. The following is an example entry:
server jupiter
Parameters used in initSID.utl 211
sort_backup_type <value>
sort_backup_type <value>
This parameter specifies one of four different backup sort parameter values: custom,
device, drive, or size (default).
sort_backup_type custom
Specifies that a customized sort file be used.
If sort_backup_type custom is specified, also specify the custom_sort_file
parameter with a file path.
See “custom_sort_file <file_path>” on page 203.
sort_backup_type device
Specifies that NetBackup create jobs based on a file’s device ID. This causes the
drives parameter in the intSID.utl file to be ignored.
For example, if 12 files are requested for backup, and they reside on two different
devices (X and Y), then two jobs are created. The first job contains all the files that
are associated with device X, and the second job contains all the files on device Y.
Note: The implementation is based on the st_dev value from the stat() function.
This value identifies a file partition.
Parameters used in initSID.utl 212
sort_backup_type <value>
The following UNIX or Linux example shows how jobs are created when device is
specified:
■ Input file list from SAP (brbackup, sapdba):
/oracle/sap/sapdata1/btabd_1/btabd.data1
/oracle/sap/sapdata2/btabi_1/btabi.data1
/oracle/sap/sapdata2/clud_1/clud.data1
/oracle/sap/sapdata1/ddicd_1/ddicd.data1
/oracle/sap/sapdata5/ddici_1/ddici.data1
/oracle/sap/sapdata4/el30cd_1/EL30cd.data1
/oracle/sap/sapdata1/el30ci_1/el30ci.data1
/oracle/sap/sapdata6/es30cd_1/es30cd.data1
/oracle/sap/sapdata2/poold_1/poold.data1
/oracle/sap/sapdata1/pooli_1/pooli.data1
/oracle/sap/sapdata4/protd_1/protd.data1
/dev/rdsk/c0t4d0s6 11812864
/oracle/sap/sapdata1/btabd_1/btabd.data1
/oracle/sap/sapdata2/btabi_1/btabi.data1
/oracle/sap/sapdata2/clud_1/clud.data1
/oracle/sap/sapdata1/ddicd_1/ddicd.data1
/oracle/sap/sapdata5/ddici_1/ddici.data1
/oracle/sap/sapdata4/el30cd_1/EL30cd.data1
/oracle/sap/sapdata1/el30ci_1/el30ci.data1
/oracle/sap/sapdata6/es30cd_1/es30cd.data1
/oracle/sap/sapdata2/poold_1/poold.data1
/oracle/sap/sapdata1/pooli_1/pooli.data1
/oracle/sap/sapdata4/protd_1/protd.data1
/dev/rdsk/c0t4d0s6 11812864
The following Windows example shows how jobs are created when device is
specified:
■ Input file list from SAP (brbackup, sapdba):
■ Backup job 1 (all have the device ID x):
■ Backup job 2 (all have the same device ID y):
Parameters used in initSID.utl 213
sort_backup_type <value>
sort_backup_type drive
Specifies that backint should distribute the input file list in a cyclic fashion. The
distribution will be amongst a number of jobs equal to the drives parameter specified
in the initSID.utl file
For example, on UNIX or Linux, if there are three tape drives and 10 SAP files, the
following distribution occurs:
■ Input file list from SAP:
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
/oracle\sap\sapdata1\roll_1\roll.data1
/oracle\sap\sapdata2\stabi_2\stabi.data2
/oracle\sap\sapdata2\user1i_1\user1i.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
For example, on Windows, if there are three tape drives and 10 SAP files, the
following distribution occurs:
■ Input file list from SAP:
■ Backup job and restore job 1:
■ Backup job and restore job 2:
Parameters used in initSID.utl 214
sort_backup_type <value>
The number of drives that are specified does not have to equal the number of
physical storage units. The number of drives correlates to the number of
simultaneous jobs created by the NetBackup for SAP backint interface. For
example, if you have 10 SAP files and three tape drives, you can specify 10 drives
in the initSID.utl file. This value creates 10 jobs with one file for each bpbackup
job. NetBackup handles all of the job scheduling. Initially, three jobs are active and
the other seven jobs are queued.
For example, if three tape drives are specified, the files are divided evenly into three
bpbackup jobs based on size. So, if there are 25 input files from SAP and three
tape drives, then three bpbackup jobs run at the same time.
The following files are in each job, on UNIX or Linux:
■ Input file list from SAP (brbackup, sapdba):
/oracle/sap/sapdata1/btabd_1/btabd.data1
/oracle/sap/sapdata2/btabi_1/btabi.data1
/oracle/sap/sapdata2/clud_1/clud.data1
/oracle/sap/sapdata1/ddicd_1/ddicd.data1
/oracle/sap/sapdata5/ddici_1/ddici.data1
/oracle/sap/sapdata4/el30cd_1/EL30cd.data1
/oracle/sap/sapdata1/el30ci_1/el30ci.data1
/oracle/sap/sapdata6/es30cd_1/es30cd.data1
/oracle/sap/sapdata2/poold_1/poold.data1
/oracle/sap/sapdata1/pooli_1/pooli.data1
/oracle/sap/sapdata4/protd_1/protd.data1
/dev/rdsk/c0t4d0s6 11812864
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
Parameters used in initSID.utl 215
sort_backup_type <value>
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
/oracle/sap/saplog1/log_g2_m1/log2_m1.dbf
/oracle/sap/saplog1/log_g3_m1/log3_m1.dbf
/oracle/sap/saplog1/log_g4_m1/log4_m1.dbf
/oracle/sap/dbs/cntrlSAP.dbf
■ Backup job 1:
■ Backup job 2:
■ Backup job 3:
sort_restore_type <value>
To use this parameter, the multistream_restore parameter must be set to 1.
NetBackup can use the sort_restore_type parameter to restore the backup
images.
sort_restore_type specifies one of three different restore sort options: custom,
drive, or image (default).
sort_restore_type custom
Specifies that a customized sort file be used.
If sort_restore_type custom is specified, also specify the custom_sort_file
parameter with a file path.
See “custom_sort_file <file_path>” on page 203.
sort_restore_type drive
Specifies that NetBackup create jobs based on the drives parameter in the
initSID.utl file. The following examples show the distribution if there are 3 tape
drives and 10 SAP files.
UNIX or Linux:
■ Input file list from SAP:
Parameters used in initSID.utl 217
sort_restore_type <value>
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata1/temp_1/temp.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
Windows:
■ Input file list from SAP:
■ Backup job and restore job 1:
■ Backup job and restore job 2:
■ Backup job and restore job 3:
NetBackup for SAP backint interface creates the two jobs, one job for each image.
The files are grouped the way they were backed up. The following are examples
of a restore.
Note: Restore creates a separate job for raw partition files. The partition files cannot
be grouped with regular files.
UNIX or Linux:
Input file list from SAP (brrestore, sapdba):
■ Image 1:
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata1/temp_1/temp.data1
■ Image 2:
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
■ Restore job 1:
/oracle/sap/sapdata1/roll_1/roll.data1
/oracle/sap/sapdata2/sourced_1/sourced.data1
/oracle/sap/sapdata3/stabd_1/stabd.data1
/oracle/sap/sapdata2/stabi_2/stabi.data2
/oracle/sap/sapdata1/temp_1/temp.data1
■ Restore job 2:
/oracle/sap/sapdata4/user1d_1/user1d.data1
/oracle/sap/sapdata2/user1i_1/user1i.data1
/oracle/sap/sapdata1/system_1/system.data1
/oracle/sap/saplog1/log_g1_m1/log1_m1.dbf
Windows:
Input file list from SAP (brrestore, sapdba):
■ Image 1:
Parameters used in initSID.utl 219
switch_list <control_file_path>
■ Image 2:
■ Restore job 1:
■ Restore job 2:
switch_list <control_file_path>
This parameter specifies a control file that communicates from the NetBackup for
SAP backint interface to brbackup for online backups. A switch list file is created
each time backint wants to take a snapshot, or back up a file. The switch list file
is also created when it wants to indicate that a snapshot or backup is finished.
The switch_list parameter must specify a file path in one of the following locations:
$SAPDATA_HOME/sapbackup/.switch.lis
switch_list /oracle/sap/sapbackup/.switch.lis
switch_log <control_file_path>
This parameter specifies a control file that communicates to the NetBackup for SAP
backint interface from brbackup. After the switch semaphore file has been deleted,
the NetBackup for SAP backint interface opens and reads the switch log file. to
determine if brbackup was successful at making the file ready for snapshot or
backup.
The switch_log parameter must specify a file path in one of the following locations:
$SAPDATA_HOME/sapbackup/.switch.log
switch_list /oracle/sap/sapbackup/.switch.log
Parameters used in initSID.utl 220
switch_sem <control_file_path>
switch_sem <control_file_path>
This parameter specifies a control file that communicates between the NetBackup
for SAP backint interface and brbackup. After the switch list file is created and
closed, the NetBackup for SAP backint interface creates the switch semaphore
file and waits until brbackup deletes it.
The switch_sem parameter must specify a file path in the following location:
$SAPDATA_HOME/sapbackup/.switch.sem
switch_list /oracle/sap/sapbackup/.switch.sem
Appendix H
Configuring split mirror
backups
This appendix includes the following topics:
2 Attach the external disk D1 to the primary client (production database host)
and create a VM disk group using the following command:
6 Create a VxFS file system on this volume and mount it using the following
commands:
Snapshot
Automatic
Mirror tape
Oracle disk changer
database
Primary
disk
Backup
media
Based on this FlashSnap configuration, the typical flow during the Snapshot Client
backup for SAP is as follows:
■ The database shuts down or the tablespaces are put in backup mode in the
production host.
■ The alternate client off-host takes the snapshot of the production database from
primary disk D1 to mirror disk D2.
■ The production database in primary disk D1 is created online.
■ The mirror disk D2 is split to perform backup from the snapshot to the backup
media.
■ The snapshot from the mirror disk D2 is then joined back to the volume in primary
disk D1.
The user identification and group identification numbers (UIDs and GIDs) associated
with the files to be backed up must be available to the primary client and the alternate
backup client. The UID on the primary client and the alternate backup client must
be the same. Similarly, the GID on the primary client and the alternate backup client
must be the same.
To configure the local host snapshot method
1 Install and configure the following on the production database host:
Configuring split mirror backups 226
Off-host alternate client, FlashSnap method
3 Attach the external disk D1 to the primary client (production database host)
and create a VM disk group using the following command:
7 Create a VxFS file system on this volume and mount it using the following
commands:
Replicated
database Automatic tape
Snapshot changer
Oracle
database Primary
disk Mirror
disk
Primary
disk
Backup
media
Based on this VVR configuration, the typical flow during the Snapshot Client backup
for SAP:
■ The database shuts down or tablespaces are put in backup mode in the
production host.
■ Replication is stopped between primary disk D1 and replication disk D2.
■ The alternate client off-host takes the snapshot of the replication database from
disk D2 to mirror disk D3.
■ The production database in primary disk D1 is created online.
■ The mirror disk D3 is split to perform backup from the snapshot to the backup
media.
■ The snapshot from the mirror disk D3 is then joined back to the volume in
replication disk D2.
■ Then the storage replication log (SRL) resync happens in primary disk D1 and
secondary disk D2.
■ Finally, replication resumes.
Configuring split mirror backups 228
Off-host alternate client, VVR method (Solaris SPARC, HP-UX)
The following procedures describe how to configure both the volume replicator
primary and the volume replicator secondary.
To configure the volume replicator primary (production database host)
1 Attach the external primary disk D1 to the volume replicator primary, and create
a VM disk group using the following command:
By default, it creates two copies that require two disks in one group. To override
the default, enter the following command:
3 Create the VxFS file system on this volume and mount it using the following
commands:
By default, it creates two copies that require two disks in one group. To override
the default, enter the following command:
3 Create a Storage Replicator Log (SRL) volume in the replication disk D2 using
the following command:
4 Create the primary replicated volume group (RVG) specifying the data volume(s)
and the SRL volume. On the volume replicator primary (production database
host), run the following command:
The names of the disk group and volumes must be same as on the primary
host.
■ Ensure that the /etc/hosts file has entries of primary and secondary host
names in both hosts.
6 Add the secondary RVG to form the replicated data set (RDS) using the
following command:
7 Start replication between the volume replicator primary and secondary using
the following command:
8 Attach the external mirror disk D3 to the alternate client for taking a snapshot
mirror.
9 On the volume replicator secondary (alternate client off-host), start the snap
for the data volume using the following command:
■ On Windows:
C:\Program Files\Veritas\NetBackup\bin>nbsetconfig
nbsetconfig> DB_SCRIPT_PATH=c:\db_scripts
nbsetconfig> DB_SCRIPT_PATH=e:\oracle\fullbackup\full_rman.sh
nbsetconfig>
<ctrl-Z>
Note: Review the NetBackup Command Reference Guide for options, such
as reading from a text file and remotely setting clients from a NetBackup server
using bpsetconfig. If you have a text file with the script location or authorized
locations listed, nbsetconfig or bpsetconfig can read from that text file. An
entry of DB_SCRIPT_PATH=none does not allow any script to execute on a client.
The none entry is useful if an administrator wants to completely lock down a
server from executing scripts.
Register authorized locations 233
Registering authorized locations used by a NetBackup database script-based policy
A backup (continued)
alternate client restore manual 68
see redirected restore 83 Backup ID
altnames directory 72 see BID 79
Application Backup schedule backup media required 25
for block level incremental backups 157 backup medium
overview 38 configuring 166
application backup schedule defined 165
configuring 39 Backup policy 71
overview 39 Backup Selections list
retention 39 adding selections 42–43
Approving the auto-discovered mappings in Host backup_dev_type parameter 57
Management 63 backup_stream_buffersize parameter 203
archives backups
creating 80 automatic (configuring scripts) 45
automatic backup offline 79
create scripts 45 online 79
automatic backup schedules 40 output file contents 192
configuring 40 scripts for backup operations 46
Automatic Full Backup schedule 38 when using MaxDB 167
with Snapshot Client 141 BID
Automatic Incremental Backup schedule 38 generation process 79
automatic SAP backups 78 returned on backup 192
block level incremental backup
configuring 157
B overview 154
backint configuration 74 bp.conf
backint inteface repository for script parameters 52, 197
theory of operation 182 bphdb
backint interface role in backups and restores 16
command line 183 role in offline backups 44
defined 182 bphdb log
input file 190 UNIX 175
linking with NetBackup for SAP 28 Windows 174
parameter file 184 brarchive command
restore process 82 example script 45
role in backup process 78 overview 15, 19
sequence of operation 16 using 80
technical overview 15 brbackup command
BACKINT parameter 61–62 backint parameter file 219
backup example script 44
automatic 68 overview 15, 19
Index 235
C I
client parameter 55, 203 initsap.utl file 73
client read timeout property 179 initSID.sap file
client-initiated backups 78 Oracle substitution characters 60
clients list, for backup policies 41 procedure for modifying 56
commands script parameters 52
backint 183 initSID.utl file
brarchive 15, 19, 45, 80 Oracle substitution characters 56
brbackup 15–16, 19, 44, 79 overview 53
brrestore 15, 19, 82 parameter summary 201
export 44 procedure for modifying 54
installation directory 27–28 script parameters 52
stopsap R3 79 specifying a schedule name in 39
su 46 INPUT parameter 61–62
compatibility information 24 inquiry_query_period parameter 208
Configure client 73 installation
Configure master and media servers 69 adding a license 26
Configure master server 70 prerequisites for clusters 26
Configure media server 70 requirements for NetBackup servers 25
Configure node level 74 instant recovery
Configure SAP HANA 73 configuration requirements 140
custom_sort_file parameter 204 policy configuration 141
restore method 159
D
daemons J
scheduling processes 174 Jobs per client 71
daemons, see processes<$nopagebsgt 16
debug logs L
debug level 176
licenses 26
enabling 172
log files
in /usr/openv/netbackup/logs 174
sapdba utility 177
in install_path\\NetBackup\\bslogs 173
Log level 71
troubleshooting with log files 172
drives parameter 55, 68, 207
Index 236
transaction logs
see archive logs 157
U
unified logging 173–174
utl_par_file parameter 54
utl_par_file parameters 57
V
Veritas Storage Foundation 157
VxFS_Checkpoint snapshot 159
vxvm snapshot 159