11g Duplicate Active Database
11g Duplicate Active Database
Environment
ORACLE_SID: genoa1
Database altered.
Note - ensure that the same password is used as the one used while
creating the password file on the Primary host
genoa1_js =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oatu037)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = genoa1_js)
)
)
genoa1_fc =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = drou037)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = genoa1_fc)
)
)
On the Standby host, add a static entry in the listener.ora file and
reload or restart the listener.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oatu037.bankwest.com)(PORT =
1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = genoa1_fc)
(ORACLE_HOME = /u01/oracle/product/11.1.0/db_1)
(SID_NAME = genoa1)
)
)
System altered.
genoa1:/u01/oracle/product/11.1.0/db_1/dbs> sqlplus
system/G3nesisoat@genoa1_js
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit
Production
With the Partitioning and Real Application Testing options
HOST_NAME
----------------------------------------------------------------
oatu037
genoa1:/u01/oracle/product/11.1.0/db_1/dbs> vi initgenoa1.ora
On Primary database:
On Standby host:
genoa1:/u01/oracle/product/11.1.0/db_1/dbs> sqlas
From the Primary host, run the following RMAN command to create the
Standby Database
On primary :
System altered.
System altered.
System altered.
SQL> alter system set
LOG_ARCHIVE_DEST_1='LOCATION=USE_DB_RECOVERY_FILE_DEST
VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=genoa1_js';
System altered.
Shutdown the Standby database, add the Standby log files and then
start real time recovery
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Database altered.
Database altered.
Database altered.
Database altered.
Database dismounted.
ORACLE instance shut down.
Database altered.
Database altered.
Database altered.
Database altered.
Database altered.
Database altered.
PROTECTION_MODE PROTECTION_LEVEL
-------------------- --------------------
MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY
Regards,