The intent of this section is to illustrate the build of the physical standby (disaster recovery) database from a production database. For this scenario both databases will reside on the 1 physical server.
This section assumes that the Oracle Grid Infrasturcture, either Standalone or Cluster configuration is installed on both the primary host and standby host. Additionally, the primary and standby databases will reside in an ASM diskgroup. The primary database, VNA is currently in open mode. The db_unique_name of the physical standby database is VNADR
The detailed doc is download-able here: dataguardbook-11204setup
- Add entries to tnsnames.ora for the VNA database and the DR database VNADR to both the primary database host and the DR database host.
VNADR = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.9.168)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = VNADR ) ))
- Add listener entry and reload the listener.
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
(GLOBAL_DBNAME = VNADR)
(SID_NAME = VNADR)
(ORACLE_HOME = /u001/app/oracle/product/22.214.171.124/db_2)
[oracle@dallas admin]$ lsnrctl reload listener
LSNRCTL for Linux: Version 126.96.36.199.0 – Production on 11-JUL-2014 15:39:16
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
- An entry for for VNADR will need to added to /etc/oratab on the DR database host.
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by either Database Configuration Assistant while creating
# a database or ASM Configuration Assistant while creating ASM instance.
# A colon, ‘:’, is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, ‘#’, are comments.
# Entries are of the form:
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , “Y”, or should not,
# “N”, be brought up at system boot time.
# Multiple entries with the same $ORACLE_SID are not allowed.
- The Oracle password file should be copied from the primary database to the DR database server.
[oracle@dallas admin]$ scp dallas.viscosityna.com:/u01/app/oracle/product/11.2.0/VNA/dbs/orapwVNA /u001/app/oracle/product/11.2.0/db_2/dbs/orapwVNADR