Oracle DataGuard Step by Step Installation With RMAN Duplicate Method-2
Oracle DataGuard Step by Step Installation With RMAN Duplicate Method-2
I will continue to tell you Oracle dataguard configuration and installation in this article.
6- There are tns addresses of the primary and standby databases in the each database’s tnsnames.ora
file, and tnsping should work.
DEVECI =
(DESCRIPTION =
(ADDRESS_LIST =
DEVECIDG =
(DESCRIPTION =
(ADDRESS_LIST =
7- The password file of the primary database is copied to the standby side with the name of standby
like following.
8- Create a folder named adump manually in the standby database. If the database cannot see this file
at startup, it gives an error.
9- Create a pfile for the Standby database on the Standby server and try to start non-existent database
in nomount mode. In the next steps we will duplicate database from Primary.
In this step, You can startup oracle database with following 3 parameters in the pfile and add the
remaining parameters while executing rman duplicate. I added the following 3 parameters to the pfile
and open the Oracle Instance with the nomount mode as follows.
*.DB_NAME=DEVECI
*.DB_UNIQUE_NAME=DEVECIDG
*.DB_BLOCK_SIZE=8192
After setting bash profile through the server, we are starting Oracle Instance in nomount mode.
SQL>
10- Finally we start the duplicate with the RMAN tool from Primary database as follows.
After connecting both sides’ RMAN tool, start duplicate with the following script.
RMAN> run{
The above RMAN Duplicate script will generate too much output, so if you want, you can print it
into a log file and review each step. In terms of your comparison, I give the output of the last part
below, and if the output is not in this way, you probably have made an error or deficiency.
.
.
.
After duplicate, 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.
Connected to:
With the Partitioning, OLAP, Data Mining and Real Application Testing options
INSTANCE_NAME
----------------
DEVECIDG
SQL> alter database recover managed standby database disconnect from session;
Database altered.
SQL>
After starting MRP process, we can start monitoring of dataguard like following.
Standby
——————-
Connected to:
With the Partitioning, OLAP, Data Mining and Real Application Testing options
INSTANCE_NAME
----------------
DEVECIDG
SWITCHOVER_STATUS DATABASE_ROLE
-------------------- ----------------
SQL>
28 rows selected.
SQL>