0% found this document useful (0 votes)
427 views4 pages

Oracle DataGuard Step by Step Installation With RMAN Duplicate Method-1

The document provides instructions for setting up a physical standby database for disaster recovery using Oracle DataGuard. It outlines the requirements, including having the same Oracle software version installed on the primary and standby servers, configuring a listener on the standby, putting the primary database in archive log mode, and ensuring all changes are logged. It then lists the parameters that need to be set on the primary database such as the archive destination, and scripts to configure the standby database name and location conversions.

Uploaded by

knugroho1982
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
427 views4 pages

Oracle DataGuard Step by Step Installation With RMAN Duplicate Method-1

The document provides instructions for setting up a physical standby database for disaster recovery using Oracle DataGuard. It outlines the requirements, including having the same Oracle software version installed on the primary and standby servers, configuring a listener on the standby, putting the primary database in archive log mode, and ensuring all changes are logged. It then lists the parameters that need to be set on the primary database such as the archive destination, and scripts to configure the standby database name and location conversions.

Uploaded by

knugroho1982
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Introduction and Overview: Provides an overview of Oracle DataGuard installation using the RMAN Duplicate Method, including basic architecture concepts.
  • Software and Environment Requirements: Discusses the necessary software and environment setup needed for the DataGuard installation, including version requirements and other configurations.
  • Primary Database Setup: Outlines the steps to configure the primary database and set parameters for Data Guard setup.
  • Configuring Parameters: Details specific SQL commands required to alter system parameters as part of the DataGuard setup process.

ORACLE DATAGUARD

Oracle DataGuard Step by Step Installation


with RMAN Duplicate Method -1
Hi,

I will tell you Oracle dataguard configuration and installation in this article.

Let’s read Dataguard Architecture if you don’t know.

With Oracle DataGuard technology, we can create Physical and Logical Standby for our databases
for providing disaster recovery . I will explain the most used Physical Standby configuration and
setup in Oracle 12c, Oracle 18c database on Linux server.

Before starting installation, I will use db_name DEVECI for my Primary database. The name of the
Physical Standby database will be DEVECIDG.  I will proceed step by step through the
configuration and installation.

Requirements

KURNIAWAN SETYO NUGROHO 1


ORACLE DATAGUARD

1- An Oracle Software must be installed on the standby database server, which versions will be the
same as the Primary database and also Patchset versions. (Database must not be created with DBCA
and  If your primary database is 12.1.0.2, it must be 12.1.0.2 for Standby database)

2- A Listener must be created on the standby database server that will listen to the physical standby
that will be created by NETCA with Oracle Software.

3- The primary database must be in Archivelog mode. For detailed information about Archivelog
mode, please read the following article. You can find out whether the database is in archive mode
with the following query.

SELECT log_mode FROM v$database;

LOG_MODE

------------

ARCHIVELOG

SQL>

4- All changes namely transactions (except TEMP Tablespace) running in the primary database must
be logged and applied to the Standby. The following command must be run in Primary so that all
changes and transactions in the primary database will be logged.
 

SQL> alter database force logging;

Database altered.

KURNIAWAN SETYO NUGROHO 2


ORACLE DATAGUARD

5- In the primary database, we should set some parameters required for Data Guard, and I will
explain what these parameters are in the following article.

After making the following parameter change, the database must be closed and opened due to static
parameters. Those who do not know how to close or open the database can read the following article.

Following scripts have to execute on Primary Side.

SQL> alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(DEVECI,DEVECIDG)';

System altered.

SQL> alter system set LOG_ARCHIVE_DEST_2='SERVICE=DEVECIDG LGWR ASYNC


VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=DEVECIDG';

System altered.

SQL> alter system set LOG_ARCHIVE_DEST_1='LOCATION=/oracle/DATA/DEVECI/ARCH/


VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=DEVECI';

System altered.

SQL> alter system set LOG_ARCHIVE_DEST_STATE_1=ENABLE;

System altered.

SQL> alter system set FAL_SERVER=DEVECIDG;

System altered.

SQL> alter system set FAL_CLIENT=DEVECI;

KURNIAWAN SETYO NUGROHO 3


ORACLE DATAGUARD

System altered.

SQL> ALTER SYSTEM SET LOG_ARCHIVE_MAX_PROCESSES=20;

System altered.

SQL> ALTER SYSTEM SET REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE SCOPE=SPFILE;

System altered.

SQL> alter system set


DB_FILE_NAME_CONVERT='/oracle/DATA/DEVECIDG/DEVECIDG','/oracle/DATA/DEVECI/DEVECI'
scope=spfile;

System altered.

SQL> alter system set


LOG_FILE_NAME_CONVERT='/oracle/DATA/DEVECIDG/DEVECIDG','/oracle/DATA/DEVECI/DEVE
CI' scope=spfile;

System altered.

KURNIAWAN SETYO NUGROHO 4

You might also like