Creating A Standby Database Windows
Creating A Standby Database Windows
8. Create a directory on the primary and standby server where the full backup of the database can be
kept. In this example C:\oracle\orabase\backupfile.
On the standby server:
9. Listener must be running on the standby server and you must be able to connect from primary
server to the standby database (the SQL*Net port must be open on any firewall between the two
servers).
10. Start the standby database in nomount mode.
$ sqlplus "/ as sysdba"
SQL> startup nomount
13. Create an alias entry for the standby database in the tnsnames.ora file on the production server. In
this example the alias is called standbydb.
14. Start Rman and create the standby database. The password for sys must be the password from the
password file.
$ rman
connect auxiliary sys/password@standbydb
connect target /
run {
allocate auxiliary channel ch1 type disk;
duplicate target database for standby dorecover nofilenamecheck;
release channel ch1;
}
15. Standby database is now complete. Rman has started the standby database in mount standby
mode which is correct for Dbvisit to continue. For reference the commands to start a standby
database are:
SQL> startup nomount
SQL> alter database mount standby database;
NOTE:
If the following message is received from Rman:
RMAN> connect auxiliary sys/password@standbydb
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all
appropriate instances are blocking new connections
Then the following should be added (in red) to the listener.ora on the standby server:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = dbvisitp)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
)
)
Where dbvisitp is the name of your database