Run Installer of Oracle 10G: Data Guardcreating Physical Standby Using Rman
Run Installer of Oracle 10G: Data Guardcreating Physical Standby Using Rman
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
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
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;