Escolar Documentos
Profissional Documentos
Cultura Documentos
November 2003
SAP AG
Neurottstraße 16
69190 Walldorf
Germany
T +49/18 05/34 34 24
F +49/18 05/34 34 20
www.sap.com
© Copyright 2003 SAP AG. All rights reserved . JAVA® is a registered trademark of Sun Microsystems, Inc.
Some software products marketed by SAP AG and its distributors SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business
contain proprietary software components of other software vendors. Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE,
Management Cockpit, mySAP, mySAP.com, and other SAP products
Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® and services mentioned herein as well as their respective logos are
and SQL Server® are registered trademarks of Microsoft Corporation. trademarks or registered trademarks of SAP AG in Germany and in
several other countries all over the world. MarketSet and Enterprise
IBM®, DB2®, DB2 Universal Database, OS/2®, Parallel Sysplex®, Buyer are jointly owned trademarks of SAP Markets and Commerce
MVS/ESA, AIX®, S/390®, AS/400®, OS/390®, OS/400®, iSeries, One. All other product and service names mentioned are the
pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere®, trademarks of their respective owners.
Netfinity®, Tivoli®, Informix and Informix® Dynamic ServerTM are
trademarks of IBM Corp. in USA and/or other countries.
Disclaimer
ORACLE® is a registered trademark of ORACLE Corporation. Some components of this product are based on Java™. Any code
change in these components may cause unpredictable and severe
UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of malfunctions and is therefore expressively prohibited, as is any
the Open Group. decompilation of these components.
LINUX is a registered trademark of Linus Torvalds and others. Any Java™ Source Code delivered with this product is only to be used
by SAP’s Support Services and may not be modified or altered in any
Citrix®, the Citrix logo, ICA®, Program Neighborhood®, way.
MetaFrame®, WinFrame®, VideoFrame®, MultiWin® and other
Citrix product names referenced herein are trademarks of Citrix
Systems, Inc. Documentation in the SAP Service Marketplace
You can find this documentation at the following address:
HTML, DHTML, XML, XHTML are trademarks or registered http://service.sap.com/dbaora
trademarks of W3C®, World Wide Web Consortium, Massachusetts
Institute of Technology.
Typographic Conventions Icons
Contents
Introduction........................................................................................................... 5
Architecture........................................................................................................... 5
Basic Backup Process .......................................................................................... 6
Offline Split Mirror Disk Backup........................................................................... 6
Online Split Mirror Disk Backup ........................................................................... 7
Software Configuration......................................................................................... 7
Profile Parameters and Command Options for init<SID>.sap............................. 8
High Availability .................................................................................................... 9
Special Features ................................................................................................... 9
Implementing the SAP System on the Backup Server ........................................................ 9
Implementing BRARCHIVE to Backup Redo Log Files........................................................ 9
Scheduling Backup Sessions from CCMS........................................................................... 9
Scripts and Programs for the split_cmd Parameter ............................................................ 9
Additional Information ........................................................................................ 11
SAP Service Marketplace....................................................................................................11
SAP Library .........................................................................................................................11
SAP Database Guide: Oracle .................................................................................................................... 11
SAP Notes ...........................................................................................................................11
November 2003 4
Split Mirror Disk Backup for Oracle
Introduction
If you want to perform an offline backup for large systems, but your Oracle data and SAP System
always need to be online, you can back up files using a split mirror disk backup. The SAP backup tool
BRBACKUP supports this configuration from SAP Release 4.0. BRBACKUP also supports online
backups using this configuration.
Instead of backing up the production database on the production server, BRBACKUP is started in this
configuration on a backup server, to back up the database files of the split mirror disks. Therefore, the
backup load is moved from the production server to the backup machine and so does not affect the
performance of the SAP System during the backup. BRBACKUP can be used to control the splitting
and later synchronization of the disks.
In addition, BRBACKUP also communicates with the production database to obtain information about
the database structure and store the results of the backup. This allows the Computing Center
Management System (CCMS) to monitor the backups in the SAP production system.
The actual splitting and later synchronization of the disks is executed by a script or program supplied
not by SAP, but by the manufacturer of the operating system, disk, or backup software. The BACKINT
interface can also be used in this configuration, as the split mirror disk configuration is transparent to
BACKINT.
If you want to perform an offline backup, the database must be stopped for a short period
– usually only a few minutes – while the system splits the disks.
This paper provides an overview of split mirror disk backup for Oracle. For more
information on split mirror solutions, see the following on SAP Service Marketplace:
service.sap.com/split mirror
Architecture
SQL* Net V2
Automatic
SAP System tape
changer
Storage System
November 2003 5
Split Mirror Disk Backup for Oracle
Production Backup
database database
host host
Automatic
tape
SAP shadow process File system 4 changer
Database 1 3 Backup
File system
Mirroring Resynchronization
2
.. .. 5
A’ B’
AB B
Remount
November 2003 6
Split Mirror Disk Backup for Oracle
Software Configuration
• At least the client software and SVRMGR components of the Oracle database software must
be installed on the backup server.
• The Oracle home directory structure must correspond to the SAP standard installation
required by BRBACKUP.
Default directories
UNIX Windows NT
$ORACLE_HOME/dbs %ORACLE_HOME%\DATABASE
$ORACLE_HOME/bin %ORACLE_HOME%\BIN
$SAPDATA_HOME/sapbackup %SAPBACKUP%
$SAPDATA_HOME/saparch %SAPARCH%
$SAPDATA_HOME/sapreorg %SAPREORG%
$SAPDATA_HOME/sapcheck %SAPCHECK%
$SAPDATA_HOME/saptrace %SAPTRACE%
The SAPBACKUP directory must be connected to the backup server and the production server for the
system to be able to access the control files on the backup server created by the SQL command
alter database backup controlfile to <filename> on the production server.
November 2003 7
Split Mirror Disk Backup for Oracle
• To establish the connection between the backup server and the production server, you must
define the profile parameter primary_db for the SQLNET connection). Before you do this,
you must perform the following steps:
− Create an Oracle password file:
orapwd file=<ORACLE_HOME>/dbs/orapw<DBSID>
password=<internal password> entries=100
− You must specify the parameter remote_login_passwordfile = exclusive in
all init<DBSID>.ora profiles.
− The user system must have the authorization SYSOPER in the production database.
Start SVRMGR as user internal and execute the following Oracle command:
SVRMGR> grant sysoper to system;
− You might need to change the password for user system:
SVRMGR> alter user system identified by <password>;
• The directory /usr/sap/<SID>/SYS/exe/run or \\<Hostname>\sapmnt\<SID>\SYS
\exe\run must be accessible from the backup server and should contain at least the
programs BRBACKUP, BRCONNECT and BRTOOLS (and optionally BRARCHIVE and
BRRESTORE).
• The paths of all database files accessed by the production database and backup database
must be identical.
Starting with SAP Release 4.5B, this restriction no longer applies. It is now possible to
mount the database files on the backup host in a different SAPDATA_HOME directory by
using the init<DBSID>.sap parameter orig_db_home. By using this parameter you
can even mount the split-off files on the same host.
• The manufacturer of the external backup tool must install and configure the BACKINT
interface on the backup server.
November 2003 8
Split Mirror Disk Backup for Oracle
High Availability
In contrast to a normal offline backup, a configuration using split mirror disks provides users with
continuous online operation of the SAP System except for a few minutes required to split the mirror
disks. Transactions cannot be performed during this time.
You can also execute an online backup that does not require the system to be offline. The tablespaces
to be backed up are only temporarily set to status BACKUP during the time required to split the mirror
disks.
Special Features
November 2003 9
Split Mirror Disk Backup for Oracle
Phase 1 Phase 2
November 2003 10
Split Mirror Disk Backup for Oracle
Additional Information
SAP Library
You can find more information on Oracle database administration and the contents of this document in
the SAP Library from any of the following:
You can find extracts from the SAP Library for the SAP Database Guide: Oracle and
Computing Center Management System (CCMS) on SAP Service Marketplace at:
service.sap.com/dbaora → General
However, we recommend you to use the SAP Library as described above, because not all
links function correctly in these extracts.
SAP Notes
You can find SAP Notes in the SAP Service Marketplace at:
service.sap.com/notes
November 2003 11