Standby database creation steps for oracle standard edition in windows

Manual standby creation in oracle standard edition, manual log shipping method for creation standby database

In general, we use Data guard for Oracle standby database creation in enterprise edition, comes to standard edition we are unable to create the Disaster Recovery site using Data guard, because this feature disabled in oracle standard edition.

In Oracle standard edition standby database can creates using log shipping method, here we go with the complete steps.

For standby database creation proceed with rman recovery and user managed recovery process.

Steps to create standby DB in windows: 

1.       Make sure primary database is in archive log mode.
2.       Install oracle binaries at standby side and create same folder structure at standby server as like primary.
3.       Create pfile from spfile and send it to standby server ‘C:\app\oracle\product\11.2.0\database\’.
4.       Create standby control file send standby controlfile to DR server.
Sql> alter database create standby controlfile as ‘Ç:\app\standbycontrol.ctl’;
5.       Update the controlfile information in pfile.
6.       Create oracle service using oradim command and start the service.

oradim -NEW -SID ORCL -STARTMODE manual -PFILE C:\app\oracle\product\11.2.0\database\INITORCL.ORA"

7.       Take the backup of database from primary side.

Sql> alter database begin backup;




Copy all datafiles to standby server

Sql> alter database end backup;




8.       Start the standby database in mount state.
Sql> shut immediate
Sql> startup nomount
Sql> alter database mount standby database;

9.       Create standby archive log folder as a network drive at primary database side.
10.   Schedule the archives copy script at primary server and recover database script at standby server side.
11.   Archives_copy.bat

copy C:\app\oracle\oradata\ORCL\archive\*.0001 E:\dba\backup\arc_backup

12.   Recover_database.bat

@echo off
C:
cd \oracle\product\11202\BIN
set ORACLE_HOME=C:\oracle\product\11202
set ORACLE_SID=orcl
sqlplus / as sysdba @D:\oradata\orcl\archive\recover.sql


3. recover.sql

spool D:\oradata\orcl\archive\log.recovery replace
select to_char(sysdate,'yyyy-mm-dd hh:mi:ss') from dual;
SELECT MAX(RECID) "Log id now" FROM V$LOG_HISTORY;
recover standby database;
auto
spool off

exit;



0 $type={blogger}:

Post a Comment