Está en la página 1de 9

System Copy Guides

Volume 1

Homogeneous System Copy using Online/Offline


Database Backup

Company

Enterprise Area

: System Copy

Scenario

: Online/Offline backup

DOCUMENT APPROVALS

Name

Consultant
Project Manager

Trinty Touch
Core Team

Process Owner

Project Manager

Responsibility

Signature

Date

DOCUMENT INFORMATION

Project Name
System Copy

Document Name

Document Location

Backup restoration

DOCUMENT HISTORY

Version
1.0

Document Name
Backup restoration
V1.0

Date

Author

Reviewed
By

Change
Control

Area : SAP Basis


Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :

System Copy Guides


Homogeneous System Copy using Online/Offline
Database Backup
Reasons for Copying a SAP System
SAP recommends that you make a system copy in order to build a test, demo, training or standby
system (Oracle and Informix: standby systems cannot be created with a system copy). You should
perform upgrades in a test system first. This way you can identify customer pecific problems which
might result from modifications. Thus, we can sort the general needs for a system copy as follow:
To create a new training system for end-user or project team education
To create a DEMO system
To create a Test system for upgrade or other purposes.
To recover a system on another machine with the same platform after a crash.
To copy large clients. If a client very large to export/import, it is better to do a system copy rather
than client transport.
If a system copy takes place between systems with same platform ( operating system and database
system ) , we call this HOMOGENEOUS SYSTEM COPY.
If The system copy takes place between systems with different platforms ( at least one of the
component must be different, OS or RDBMS ), we call this HETEROGENEOUS SYSTEM COPY.
There 3 ways of a Homogeneous System Copy in R/3 Systems.
1. Homogeneous System Copy using Online / Offline Database Backup.
2. Homogeneous System Copy using R3LOAD Procedure.
3. Homogeneous System Copy using R3COPY Procedure.
This guide is prepared for a Homogeneous System Copy using Online/Offline Database Backup.
The procedure described tested on AIX 4.3.3/Oracle 8.1.7, AIX 5.1/Oracle 8.1.7, AIX 5.1/Oracle 9.2.0
and Win2K/Oracle 8.1.7 platforms.
The command reference given in this guide is taken from a homogeneous system copy done on AIX
4.3.3/Oracle 8.1.7 platform. Differences of other platforms such as Windows will be shown in the same
sections.

Homogeneous System Copy using Online/Offline Database


Backup
This guide is prepared for a Homogeneous System Copy using Online/Offline Database Backup.
Steps for a Homogeneous system copy are briefly as below:
Preparations on Target System.
Restore Online/Offline Backup of Source System onto Target System.
Create CONTROLFILE creation script on Source System.
Modification of CONTROLFILE script and creation of CONTROLFILEs of Target System.
Recovery of Oracle Database on Target System.
Completion of System Copy

Prerequisites
Following conditions must be provided to copy a system:
Both Source and Target Systems must have Same Operating System and Database System. Also
Patch levels must be same.
You have sufficient free space for sapdata directories on target system.
For Windows systems, you have to create all drives where datafiles resides on source system.
Use most current database backup in order to shorten database creation time.

Type : Handbook Document


Area : SAP Basis
Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :

Procedure
1. Data and Log directories on target system must be cleaned before restoring source database.
Here below are the commands to clean directories. Before this, you have to stop all SAP and
Oracle processes.

Procedure:
1. Backup source system
Take back up of source system (either with DB13 or Brtools).

Type : Handbook Document


Area : SAP Basis
Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :

Take backup of controlfile at source system


Sql>Alter database backup controlfile to trace as d:\new.sql;
2.

Activities to be done on target system

First of all, copy the whole backup to target system.


Place backup log file *.afd in sapbackup folder.
Stop sap and db along with its services.
Empty following folders:
SAPDATA_HOME\sapdata1\sysaux
SAPDATA_HOME\sapdata1\system
SAPDATA_HOME\sapdata1\temp
SAPDATA_HOME\sapdata1\undo
SAPDATA_HOME\sapdata1\cntrl
SAPDATA_HOME\sapdata2\sr3_1 sr3_n
SAPDATA_HOME\sapdata3\sr3702_1 sr3702_n
SAPDATA_HOME\sapdata4\sr3usr_1
Also delete all the three control files placed at:
SAPDATA_HOME\origlogA\cntrl
SAPDATA_HOME\origlogB\cntrl
SAPDATA_HOME\sapdata1\cntrl

Type : Handbook Document


Area : SAP Basis
Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :

3. Restoration from backup on target system


Now, to restore the backup, login with <sid>adm user and open the command prompt
Sidadm> brrestore m full b *.afd d disk c

The restore will be started.


4. Control file Recovery
delete the control file that are restored from backup from orilogA, OrilogB, sapdata1.
Edit the controlfile backup trace file:
Delete all the matter above the startup nomount and below the characterset;
change <sid>
set Noresetlogs to resetlogs
change reuse to set.
Save the file.
Start db services.
Login with sidadm user:
login in db :
sql>@trace file path;
Controlfile got generated.
5. * in case of online backup, we do have backup of Archive logs, now we need to paste that
backup to sapdata_home\oraarch)
Then, run command

Type : Handbook Document


Area : SAP Basis
Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :
Sql> recover database until cancel using backup controlfile;
Sql> alter database open resetlogs;
6. Create users as per note 50088
Create the users: OPS$HOSTNAME\SIDADM, OPS$HOSTNAME\ORASID,
OPS$HOSTNAME\SAPSERVICESID

Create user OPS$Host_name\SIDADM identified externally;


Grant resource,connect,dba,sapdba to OPS$Host_name\SIDADM;
Create user OPS$host_name\ORASID identified externally;
Grant resource,connect,dba,sapdba to Host_name$DEV\ORASID;
Create user OPS$host_name\SAPSERVICESID identified externally;
Grant resource,connect to OPS$Host_name\SAPSERVICEDSID;
Create table sapuser as select * from OPS$Host_name\SIDADM.sapuser;
Grant select,update on OPS$Host_name\SIDADM.sapuser to
OPS$host_name\SIDSERVICESID;

Change the password for sapsr3 user


Sidadm> brconnect u /-f chpass o sapsr3 (it will ask for new password to set)
Default password is sap
Post Installation Step :
As your Hardware Key is not changed, you don't have to get additional License Key from
SAPNET. You can use previous systems (on target system, if SID is not changed) License in new
system created on target system.

1. Install Sap License through Tcode: slicense


2. Logon to the SAP R/3 System and goto TCODE SE06. Select "Database Copy or Migration" and
execute "Post Installation Processing".

Se06
Change all of the Source System Objects to Target System Objects as asked.

Type : Handbook Document


Area : SAP Basis
Topic : Homogeneous System Copy using Online/Offline Database Backup
Author :

3. Delete old TMS configuration and make new configuration for TMS via STMS TCODE.
4. After all of above steps, you have completed a System Copy using Online/Offline Database
Backup.

También podría gustarte