You are on page 1of 3

1 ping both the systems 2 In primary site and in standby:empty the folders oradata admin dbs network 3 In primary

site create database through 'dbca' with archive log mode $ export ORACLE_SID=orcl(database name) $ sqlplus /as sysdba SQL> shu SQL> startup mount SQL> alter database archivelog; SQL> alter database open; create pfile SQL> create pfile='/oracle/pfile.ora' from spfile; SQL> shu immediate from standby text file in configuration of primary:copy the contents from db_unique_name='PRIMARY' to db_unique_name='AUTO' and paste at the end of pfile and chnage the path if you work in linux i.e (location=/oracle/backup) make a folder in oracle name it as BACKUP open terminal $ export ORACLE_SID=primary $ sqlplus / as sysdba SQL> startup pfile='/oracle/pfile.ora' SQL> select name from v$datafile SQL> shu immediate In standby sitecopy the datafiles and paste to standby site at the same location of same name Create password file in standby and primary:orapwd file=/oracle/app/product/10.2.0/db_1/dbs/orapwprimary password = oracle f orce=y In primary siteSQL> alter database add standby logfile ('/oracle/app/oradata/orcl/stand byRedo.log') size 150m; copy the standbyRedolog file and paste in standby site at same location

SQL> startup pfile='oracle/pfile.ora' mount SQL> alter database create standby controlfile as '/oracle/backup/standc ontrol.ctl'; copy the standcontrolfile and paste in standby site at same location in orcl and rename it as control01.ctl control02.ctl control03.ctl In primary siteSQL> create spfile from pfile='/oracle/pfile.ora'; SQL> shu immedaite SQL> startup In standby sitepaste the pfile from standby text file in configuration of standby:copy the contents from db_unique_name='STANDBY' to db_unique_name='AUTO' and paste at the end of pfile and chnage the path if you work in linux i.e (location=/oracle/backup) make a folder in oracle name it as BACKUP make a folder in admin as thename of database i.e- orcl and make five subfolders adump,bdump,cdump,create,udump $ export ORACLE_SID=standby $sqlplus / as sysdba SQL> startup pfile='/oracle/pfile.ora' mount CONNECTIVITY IN BOTH PRIMARY AND STANDBY SITE :create a listner start the listner In primary $ netca service name= standby IP address of standby net service name= to_standby In standby $ netca service name= primary IP address of primary

net service name= to_primary In primary connect sys/oracle@to_standby as sysbda In standby sql> create spfile from pfile='/oracle/pfile.ora'; sql> shu mmediate sql> startup mount connect sys/oracle@to_primary as sysdba In primary sql> sql> sql> sql>

alter system alter system select error alter system

set log_archive_dest_state_2=enable; switch logfile; from v$archive_dest; switch logfile;

In standby sql> select error from v$archive_dest; sql>select count(*) from v$archived_log; sql> alter database recover managed standby (press ctrl+c to exit from recovery sql> alter database recover managed standby sql> alter database recover managed standby sql> alter database open; sql> alter database recover managed standby sion;

database; mode) database disconnect; database cancel; database disconnect from ses

create table in primary site and check it in standby before the last command ex ecute in standby. log file must be created in primary side before you see table in standby side...

You might also like