Вы находитесь на странице: 1из 4

HOMOGENEOUS SYSTEM COPY (BACKUP/RESTORE)

Source System Preparation:


1) Check the size of the DB.

2) Ensure that there should be enough space to take backup.

3) Make a changes based on ur requirement in backup initialization file i.e


init<sid>.sap

4) Take full offline/online backup of database using BR Tolls/DB13

5) After completion of backup it creates ACTIONID ,


ACTIONID.afd,back<SID> and <SID> files.

6) After completion of backup generate a controlfile.

SQL>> alter database backup controlfile to trace


We can find the trace file in oracle/<SID>/saptrace/usertrace. Copy it on the
/oracle/<SID>/sapbackup and renane the file as control.sql

Target System Preparation:


1) Install os and oracle with same patch level as source.

2) Setup kernel and memory parameters in /etc/sysctl.conf and


/etc/security/limit.conf

3) Disable firewall

4) Install java and export java environment variables

5) Goto Installation master and run ./sapinst

Follow the screens and specify the inputs

6) It will prompt u to install Oracle DB software

7) It will prompt u to backup/restore


a) Create the folders mirrlogA, mirrlogB, oraarch, saparch, origlogA/cntrl,
origlogB/cntrl, sapbackup. Sapcheck, sapdata1/cntrl, sapdata2, sapdata3,
sapdata4, sapreorg, saptrace/background and usertrace in /oracle/<SID>

b) Copy the latest backup of source system (i.e ACTION ID and ACTION
ID.afd files) and keep in the target system /oracle/<SID>/sapbackup
directory.

c) Change Sourse<SID> , Sourse hostname with Target<SID> ,Target


hostname in b*****.afd (ACTION ID.afd) log file which is generated
during the offline/online backup.

d) Change Sourse<SID> with Target<SID> in b***** (ACTION ID) i.e


which is generated during the offline/online backup.

e) Copy the init<sid>.sap file from source system. Replace sourse <SID>
with target <SID> and place it in target system /oracle/SID/102/dbs
directory.

f) Copy the init<SID>.ora file from source system and replace Sourse
<SID> with Target <SID> and place it in target system /oracle/SID/102/dbs
directory..

g) Copy control.sql file from sourse system and place it in the target system
installation directory.
Open the control file and
Remove all the lines above “STARTUP NOMOUNT” below CHARACTER
SER UTF8;
Replace Sourse <SID> with Target<SID>.
Replace REUSE with SET
Replace NORESETLOGS with RESETLOGS.
save the file.

8) Open terminal and login with user ora<SID> to restore database

su - ora<SID>

goto backup location

cd /oracle/<SID>/sapbackup
brrestore -m full -b Actionid.afd -c

(ActionID.afd file means backup file)

9) After completion of restore delete controlfile (i.e CNTRL<SID>.dbf) in 3


locations

i.e from /oracle/<SID>/sapdata1/cntrl/ (remove contolfile in this location)

/oracle/<SID>/origlogA/cntrl/ (remove contolfile in this location)

/oracle/<SID>/origlogB/cntrl/ (remove contolfile in this location)

10) Now create a controlfile

su - ora<SID>

cd /oracle/<SID>/sapbackup

sqlplus / as sysdba

SQL>>startup nomount

SQL>>@control.sql

SQL>>select status from v$instance;

SQL>>alter database mount:

SQL>>alter database using backup controlfile until cancel;

AUTO

SQL>>alter database open resetlogs;

SQL>>select status from v$instance;

Now database is opened .

11) Click “OK” to continue and the target system installation will complete itself.

Вам также может понравиться