Tags

11g (5) 12c (6) 18c (3) 19c (4) ASM (1) Critical Patch (11) Data Pump (1) Dataguard (9) Diverse (3) GRID (7) GitLab (2) Linux (8) OEM (2) ORA Errors (13) Oracle (12) RMAN (4)

Saturday, February 8, 2020

Create a Logical Standby Database


Create a Logical Standby Database

PURPOSE: All documents are provided on this Blog just for educational purposes only.  Please make sure that you run it in your test environment before to move on to production environment.

Logical Standby

STEP 1
As a step 1 we need to create Physical Standby DB. Please have look the link to create Physical Standby DB.

 How to Create Physical Standby Database Step by Step.

STEP 2
Now we need to convert Physical Standby DB to the Logical Standby DB

On standby DB.

STOP the MRP(managed recovery process) on standby.
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;

On primary Database.

To build the LogMiner dictionary in the redo stream of the primary database and to record additional information.
The logical standby database can be instantiated, issue the following SQL statement at the primary database

On primary database.


On standby database.

ALTER DATABASE RECOVER TO LOGICAL STANDBY KARDBPRD2;  #need to put here db_name
ALTER DATABASE OPEN RESETLOGS;
ALTER DATABASE START LOGICAL STANDBY APPLY;
##for realtime apply logs do
ALTER DATABASE START LOGICAL STANDBY APPLY immediate;


At this point Logical Standby Setup is completed.


No comments:

Post a Comment

Oracle JDBC Connection Test

How to test Oracle connection via JDBC Thin driver. Oracle JDBC Connection Test SCOPE: Oracle JDBC Connection Test PURPOSE:   All do...