Oracle DataGuard Physical Standby Installation Step by Step Using RMAN
Oracle DataGuard Physical Standby Installation Step by Step Using RMAN
I will continue to explain Oracle DataGuard Physical Standby Step by Step Installation in this article.
Some requirements and tasks are performed on Primary Side in the first article. Now We need to
perform similar tasks on Standby Side.
An Oracle Software must be installed on the standby database server, which versions will be the
same as the Primary database and also Patchset versions. (Database must not be created with DBCA
and If your primary database is 12.1.0.2, it must be 12.1.0.2 for Standby database)
You can install Oracle 12c on Standby Server if you don’t know how to install it with following
article.
1- If DNS Server is not existed, both hostnames’ and IPs’ should be in their /etc/hosts file. Configure
Listener.ora and tnsnames.ora like following to configure listener.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
ADR_BASE_LISTENER = /u01/app/oracle
lsnrctl stop
lsnrctl start
ORCL =
(DESCRIPTION =
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCL)
ORCLDG =
(DESCRIPTION =
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ORCLDG)
tnsping ORCLDG
tnsping ORCL
2- In this step, You can startup oracle database with following parameters in the pfile.
TEST.__db_cache_size=293601280
TEST.__java_pool_size=4194304
TEST.__large_pool_size=4194304
TEST.__pga_aggregate_target=339738624
TEST.__sga_target=503316480
TEST.__shared_io_pool_size=0
TEST.__shared_pool_size=192937984
TEST.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/ORCLDG/adump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='/u01/app/oracle/ORCLDG/control01.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='ORCL'
*.db_unique_name='ORCLDG'
*.diagnostic_dest='/u01/app/oracle'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=TESTXDB)'
*.memory_target=839909376
*.open_cursors=300
*.processes=150
*.recyclebin='OFF'
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
4- After setting bash profile through the server, we are starting Oracle Instance in nomount mode.
# .bash_profile
export PATH
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
export ORACLE_SID=ORCLDG
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P9
5- Following scripts have to execute on Standby Side to modify some dataguard parameters
Run catalog command to register backups into new controlfile. If you don't catalog it,
it does not identify backups and you will get No backup founds errors.
run{
restore database;
8- After Restore is finished, connect to the Standby database and start the process of the MRP
(Managed Recovery Process) and start applying of Redologs to the standby like following.
After starting MRP process, we can start monitoring of dataguard like following.
You can read other Dataguard installation via Duplicate method like following.