Professional Documents
Culture Documents
Dataguard Linux Based Max Performance: 1st Machine 10.4.29.229
Dataguard Linux Based Max Performance: 1st Machine 10.4.29.229
• After installation of databases on both machines make connectivity between through TNSPING.
• Check the archiving on both databases (primary & standby) and enable on both database.
SQL> exit
rman target /
RMAN> configure controlfile autobackup format for device type disk to '/ Backup/rman /%F';
RMAN> configure channel device type disk format '/ Backup/rman /backup%U';
Delete the database on second machine and copy STANDBY_CTRL file from the backup &
paste '/oradata/backup/'
Create archive folder at /oradata/archive
sqlplus / as sysdba
rman target /
SQL> alter database recover managed standby database disconnect from session;
SQL> select sequence#, archived, applied from v$archived_log where applied='YES' order by sequence# desc;
///////////////////////////////////////////////////////////////////////////////
ERROR at line 1:
ORA-10456: cannot open standby database; media recovery session may be in progress
Solution:
Database altered.
Database altered.
/////////////////////////////////////////////////////////////////////////////////
SQL> select open_mode from v$database;
///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY with session shutdown nowait;
SQL> alter database recover managed standby database using current logfile disconnect from session;
https://oracle-base.com/articles/11g/data-guard-setup-11gr2#protection_mode