sap Disaster Recovery
SAP Disaster Recovery
Disaster Recovery
|
|||
S.No
|
Primary Site
|
Disaster Recovery Site
|
|
1
|
Backup(Cold/Offline)
+ Redo logs
|
Prerequisite:
|
|
2
|
Create Standby Control File:
alter database create standby
controlfile as ‘/path../<filename>.ctl’
|
||
3
|
Copy Backup+Controlfile+initSID.ora to respective locations in DR Site
|
Note: Remove all existing datafiles of the DR site before
copying backup files.
|
|
4
|
Modify initSID.ora, if there are any changes in H/W.(RAM)
|
||
5
|
Shutdown immediate
Startup nomount
Alter database mount standby
database;
|
||
6
|
Recovery:
Recover standby database;
Set auto recovery ON;
Alter database recover cancel;
|
||
7
|
Activate:
Alter database activate
standby database;
Alter database open;
Read Only:
Alter database open read only;
|
Show parameter <parameter_name>; //To
view parameter value
Log_archive_dest=’path’ //Archival destination text
string
Log_archive_start=true/false //Start archival process on SGA
initiation
Alter database archivelog; //To change
archiving from noarchivelog to archivelog mode.
Alter database noarchivelog; //To change archiving
from archivelog to noarchivelog mode.
Alter system archive log current; //To
manually flush current redolog file.
Alter system archivelog start; //To
start archiving when DB is online.
Select open_mode, log_mode from
v$database;
Select status from v$instance;
Select max(sequence#) from
v$log_history; //To view current archivelog.
Select file#, online_status from v$recover_file; //To
verify whether any datafile is corrupted or not.
Database Refresh/System copy
|
|||
S.No
|
Quality
|
Production
|
|
1
|
License Backup
Slicense à
SAP T-code
Saplicense –show à
OS cmd
|
.
|
|
2
|
All locked users
SU10
|
||
3
|
Backup (Cold/Hot)
DB13
|
||
4
|
Backup Control File:
alter database backup
controlfile to trace;
d:\oracle\SID\saptrace\usertrace\<n>.trc
|
||
5
|
Delete all datafiles and restore backup to their
respective locations.
|
||
6
|
Modify controlfile
Reuse à set
PRD sid à QAS sid
Noresetlogs à
resetlogs
And save the control file as
.sql
|
||
7
|
Startup nomount
@ run the control file
creation script.
|
||
8
|
Recover Database
Recover database using backup
controlfile until cancel;
|
||
9
|
Open the DB
Alter database open resetlogs;
|
Log_archive_dest=d:\oracle\<SID>\oraarch\RP1arch //Change this parameter for some time when
applying redologs.
Select open_mode, log_mode from
v$database;
Select file#, status, name from
v$datafile;
Select * from v$backup;
Select max(sequence#) from
v$log_history;
Alter database datafile
‘<datafile name>’ end backup; //when backup is strucked
Create spfile from pfile;
Shutdown abort; //when db is
struck
Comments
Post a Comment