0% found this document useful (0 votes)
121 views

Run Installer of Oracle 10G: Data Guardcreating Physical Standby Using Rman

This document provides steps to create a physical standby database using RMAN. It describes enabling archiving and adding standby redo logs on the primary database. It also describes transferring backup files and configuration files to the standby host, installing the standby database using RMAN duplicate, recovering it and adding additional standby redo logs. The primary and standby databases are then configured for data guard with the appropriate initialization parameters.

Uploaded by

uxiidba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
121 views

Run Installer of Oracle 10G: Data Guardcreating Physical Standby Using Rman

This document provides steps to create a physical standby database using RMAN. It describes enabling archiving and adding standby redo logs on the primary database. It also describes transferring backup files and configuration files to the standby host, installing the standby database using RMAN duplicate, recovering it and adding additional standby redo logs. The primary and standby databases are then configured for data guard with the appropriate initialization parameters.

Uploaded by

uxiidba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Run Installer of oracle 10g:

Data GuardCreating Physical Standby Using Rman


=======PRIMARY MACHINE======
Step: 1
Enable Force Logging on primary
SQL> alter database force logging;
Step: 2
Create net services on primary
Create Listener & Services

Step: 3
Rman> backup database plus archivelog;
OR (backup database include current controlfile for standby plus archivelog;)
Rman>backup current controlfile for standby;
Step: 4
Add Standby Redo Log on primary
SQL>alter database add standby logfile group 4 '/oracle/oradata/orcl/redo04.log' size 50m;
SQL>alter database add standby logfile group 5 '/oracle/oradata/orcl/redo05.log' size 50m;
SQL>alter database add standby logfile group 6 '/oracle/oradata/orcl/redo06.log' size 50m;
Note: Verify the standby redo log file groups were created
SQL> SELECT GROUP#,THREAD#,SEQUENCE#,ARCHIVED,STATUS FROM
V$STANDBY_LOG;
Step: 5
Modify the primary initialization parameter for dataguard on destprimary
SQL> alter system set log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) ';
SQL> alter system set log_archive_dest_2='SERVICE=standby lgwr async
VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) ';
SQL> alter system set LOG_ARCHIVE_DEST_STATE_1=ENABLE;
SQL> alter system set LOG_ARCHIVE_DEST_STATE_2=ENABLE
SQL>alter system set FAL_CLIENT=primary;
SQL>alter system set FAL_SERVER=standby;
===========STANDBY MACHINE=============
Step: 1
Create net services on standby
Step: 2
mkdir p /u01/app/oracle/flash_recovery_area/ORCL
o then go to primary machine and transfer all flash recovery folder
scp -r * 192.168.1.12:/u01/app/oracle/flash_recovery_area/ORCL/
o [email protected]'s password: of standby machine\
mkdir -p /u01/app/oracle/admin

o transfer all admin folder from primary


mkdir -p /u01/app/oracle/oradata/orcl/
Transfer password file from primary machine on same location
Step: 3
Create pfile on primary then transfer to standby machine
o scp -p pfile.ora 192.168.1.12:/u01/app/
o open pfile nd change the parameter
*.log_archive_dest_1='LOCATION=DEST
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) '
*.log_archive_dest_2=Service=primary
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
SQL>startup nomount pfile='/u01/app/pfile.ora';
create spfile from pfile='/u01/app/;
o shutdown immediate & startup nomount
Modify the important initialization parameter for dataguard on standby
SQL>alter system set fal_server=primary;
SQL>alter system set fal_client=standby;
Step: 4

Connect to rman
RMAN>connect target sys/oracle@primary
rman>connect auxiliary /
RMAN> duplicate target database for standby nofilenamecheck;
Recover managed standby database disconnect from session;
Recover managed standby database cancel;

Step: 5

Add STANDBY logfile


SQL>alter database add standby logfile group 7 '/oracle/oradata/orcl/redo07.log' size 50m;
SQL>alter database add standby logfile group 8 '/oracle/oradata/orcl/redo08.log' size 50m;
SQL>alter database add standby logfile group 9 '/oracle/oradata/orcl/redo09.log' size 50m;
SQL>alter system set stanby_file_management=AUTO scope=both;
SQL>alter database recover managed standby database using current logfile disconnect from session;

ON PRIMARY DATABASE:
On mount mode:
SQL>alter database set standby database to maximize protection;
SQL>alter database set standby database to maximize availability;
SQL>alter database set standby database to maximize performance;

You might also like