Sie sind auf Seite 1von 3

Refreshing Quality [QAS] with Online Backup

of Production [PRD]
Note: This is for SAP 4.7 and BR tools 6.20 with Oracle 9.2.0.0 on Windows Server
2003.

1
Using SAPDBA take Full Online backup and backup of archive redologs in the Production system [PRD]
2

In PRD system log-in as prdadm . In the command line run. sqlplus "/

as sysdba
3
In the resulting sqlplus interface type these alter database backup
controlfile to trace as ' Drive\path\control.bkp'; and then exit;
4
Above command will generate a .trc file in
/oracle/P01/saptrance/usertrace directory.
5
Copy the text from CREATE CONTROLFILE until the (;) and paste it
in to any new .sql or controlfile.sql file.
6

Copy the controlfile.sql to QAS system.

7
Edit the file and replace the entire source SID [PRD] to target SID.
[QAS]
8

Edit the reuse database command with the set database command

9
Copy the all files generated during the backup [need only archive redolog files in duration of PRD online backup] from the PRD to QAS system.
(/oracle//sapbackup)
10

Change all file names with *PRD* to *QAS*

11 Open all log files and especially files indicated in back<SID>.log and
arch<SID>.log in notepad . Find and replace the term PRD with QAS
12

Replace the modified arch<SID>.log in (/oracle//saparch)

13

Copy the Renamed archive redo-log files in (/oracle//oraarch)

14

In QAS system log-in as qasadm shutdown Oracle and Oracle services.

15

In QAS command-line type cmd for windows terminal

16 There type brrestore -b <file indicated in (backup<SID>.log)> -m


full -d disk
17

Type cont when prompted. Wait for it complete the restore.

18

Start the Oracle services which were stopped early.

19

In the command line run

20

In the resulting sqlplus interface type these

sqlplus "/ as sysdba

21 startup nomount; (if the database is already mounted shutdown it


using the shutdown command)
22

Remove cntrlqas.dbf (it would in at least three places) manually

22 Open modified controlfile.sql in notepad and copy its contents to


sqlplus interface and press enter.
23

This will create new control files in needed locations.

24

In sqlplus interface run shutdown immediate;

25

startup mount;

26

recover database using backup controlfile until cancel;

27 Sqlplus interface will automatically prompt you to apply redologs.


Apply needed and then cancel
28

alter database open resetlogs;

29

shutdown immediate;

30

startup;

Das könnte Ihnen auch gefallen