Technical Architecture of Dataguard: Task List
Technical Architecture of Dataguard: Task List
Technical Architecture of Dataguard: Task List
Task List:
tnsnames/listener.ora configuration:
# tnsnames.ora Network Configuration File:
/u01/app/oracle/product/10.2.0/db10g/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
STNDBY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
)
(CONNECT_DATA =
(SERVICE_NAME = STNDBY)
)
)
PRIM =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521)))
PRIMARY =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1-prv)(PORT = 10521))
)
(CONNECT_DATA =
(SERVICE_NAME = PRIMARY)
)
)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
Copy the same file to the standby server and adjust it based on the
listener.ora file. Also update the listener.ora file so that it listen the SIDs
mentioned in the tnsnames.ora file.
SID_LIST_LISTENER_STBY =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = stndby)
(GLOBAL_DBNAME = stndby_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db10g)
)
)
LISTENER_STBY =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = node2-prv)(PORT = 10521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
Create the standby redo logs on the primary database with the same size of that
of online redo logs. If the above query retuns the value of 3 and each logfile is
50M in size (from the below query) then, create atleast 4standby redo logs of the
size of 50M per thread.
SQL>SHUTDOWN IMMEDIATE
Backup the datafiles, online redologs and the standby logs if created and scp to
the standby server in the corrosponding directory. I used the same directory
structure as that with primary.
The only differece was the name of the direcory. For e.g,
db_file_name_convert=’STNDBY’, ‘PRIMARY’
SQL>STARTUP MOUNT;
SQL>ALTER DATABASE CREATE STANDBY CONTROLFILE AS '/tmp/stndby01.ctl';
SQL>ALTER DATABASE OPEN;
scp the stndby01.ctl file to the standby site. I have multiplexed it in the
initstndby.ora file. So I SCPed the same file to both the locations mentioned in the
initstndby.ora file.
Also, SCPed the $ORACLE_HOME/dbs/orapwprimary file of the primary to the
same location on the standby with the name of orapwstndby.
Do not make a log switch because I set up the LGWR ASYNC option so that
The redo should be transferred and applied to the standby server in real time.
This will take the standby directly from read only mode and place it in managed
recovery mode.
==================================================================
=======================
<<HOME>>