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

Oracle System Copy

system refresh (or) restore (or) db refresh

How to do the restoration (or) recovery of offline backup:

1. Do the backup in the source machine with offline mode.

2. Copy the following folders and file from the source machine to target machine.

FOLDERS:xxxxxxxxxxxxxx, ssid
FILES: xxxxxxxxxxxxxx.ffd

.ffd file must reside in the sapbackup folder.


.sql file should be placed in the D: drive for further process.

3. next open .ffd file and change all SSID to Tsid .(ssid=source sid,tsid=target sid)
4. next change D:\oracle\TSID\SAPBACKUP (SSID TO TSID).
5. open the file INITSSID.SAP and change the file name to INITTSID.SAP in the
above path
6. then open the xxxxxxxxx folder and change SSID TO TSID path for all datafiles
which resides in folder (manually)
7. go to D:\ORACLE\ORA92\DATABASE\INITSID.SAP,open this file and change
BACK_DEV_TYPE : DISK (CHANGE FROM TAPE TO DISK)
8. shut down the database by using sapdba option
9.the services which are related to oracle and sap should b stopped.

1.oracleorahome92agent. 1.saposcol
2.oracleorahome92tnslistner 2. sapsid_nr
3.oracleservicesid

10.d:\> brrestore -m all -b xxxxxxxxxx.ffd


then the restoration process goes on successfully depending on the amount of data
what we have backed up.
11. at the end of restoration it displays the following text
brrestore terminated succesfully.
12.then restart the system once.
13. here when u restart the system the services which we stopped manually will start
automatically they are

1.oracleorahome92agent. 1.saposcol
2.oracleorahome92tnslistner 2. sapsid_nr
3.oracleservicesid

14.then go to control.sql file and do following changes


1.change all source sid to target sid
2.change NORESETLOGS TO RESETLOGS
3.change REUSE DATABASE IN IIND LINE TO REUSE SET
DATABASE
then save the changes to control file
15. then connect to sql where u r CONTROL FILE resides(d:)
16.run the control file
sql>@CONTROL.SQL
created.

17. when we generate the control file the database status is in mount state and we
should change to open state by using following command
sql>select status from v$instance;
it displays status as mounted.
sql>ALTER DATABASE OPEN;
18.when we use this command it prompts u that this command must go with one of
the following options
1.RESETLOGS
2.NORESETLOGS.
19.again run the above command with one of the above options
sql>ALTER DATABASE OPEN RESETLOGS;
20.then the database status will be in open state.
sql>SELECT STATUS FROM V$INSTANCE;
then database status will be shown as OPEN
21.if we get any warnings when we complete the restoration we have to execute the
following file
SAPDBA_ROLE.SQL
22.to execute the above file do the following process
a.copy that particular file from kernel directory (run folder) to d:/
drive
b.open it and give execute:owner:'sapsid' and change that sapsid to
u r targetsid.
c.run the above file as follows
d:/>sqlplus /no log @sapdba_role.sql tsid nt
d. here it will write the log file to the same directory where ur
sapdba_role.sql resides and it contains the log as permissions granted
23.If it is R/3 4.7 box(server) then we need to change the schema of target host to
source schema i.e.., SAP<SID>
mycomp-->advance--->environmentvariables--
>ORA_DB_SCHEMA--->EDIT--->SAP<SOURCESID>--->OK.

NOTE
But if it is ECC or net weaver then no need to change the schema coz the schema
will be same it will not change the slandered schema is “SAPSR3”

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