Oracle GoldenGate Replication from On-Prem Oracle DB to AWS RDS


πŸ”Ή Seamlessly Replicate Oracle On-Prem to AWS RDS with GoldenGate πŸ”Ή

As enterprises move towards cloud adoption, ensuring high availability, disaster recovery, and real-time data synchronization is critical. Oracle GoldenGate (OGG) provides a robust solution to replicate data from an on-premises Oracle database to AWS RDS for Oracle with minimal downtime.

Here’s a step-by-step guide to setting up Oracle GoldenGate replication from On-Prem to AWS RDS. πŸš€

πŸ”Ή 1️⃣ Prerequisites for GoldenGate Replication
βœ… On-Premises Oracle DB: Running Oracle 12c/19c with ARCHIVELOG mode enabled.
βœ… AWS RDS Instance: An Oracle database instance with supplemental logging enabled.
βœ… Oracle GoldenGate Installed: OGG software installed on a dedicated replication server.
βœ… Networking: Ensure secure connectivity (VPN, Direct Connect, or AWS DMS Replication Instance).

πŸ”Ή 2️⃣ Enable Required Settings on On-Prem Oracle DB
Before configuring GoldenGate, enable ARCHIVELOG mode and supplemental logging:

ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
ALTER DATABASE FORCE LOGGING;
ALTER SYSTEM SWITCH LOGFILE;
πŸ“Œ Why? Ensures complete redo log capture for replication.

πŸ”Ή 3️⃣ Create GoldenGate Extract Process (On-Premises)
Login to GoldenGate Admin Console on your on-premise system:

πŸ“Œ Add Extract Process

ADD EXTRACT EXT1, TRANLOG, BEGIN NOW
πŸ“Œ Add Trail Files

ADD EXTTRAIL ./dirdat/lt, EXTRACT EXT1
πŸ“Œ Register Extract with the Database

REGISTER EXTRACT EXT1 DATABASE;
πŸ”Ή 4️⃣ Create GoldenGate Pump to Send Data to AWS RDS
Create the Data Pump process to route extracted data to AWS:

ADD EXTRACT DPUMP1, EXTTRAILSOURCE ./dirdat/lt
ADD RMTTRAIL /ggs/dirdat/rt, EXTRACT DPUMP1
πŸ“Œ Edit Parameter File (DPUMP1.prm)

EXTRACT DPUMP1
RMTHOST , MGRPORT 7809
RMTTRAIL /ggs/dirdat/rt
TABLE SCOTT.*;
πŸ“Œ Why? The pump process pushes data to AWS RDS for Oracle.

πŸ”Ή 5️⃣ Configure AWS RDS as GoldenGate Target
On AWS RDS, configure GoldenGate Integrated Replicat:

πŸ“Œ Enable Supplemental Logging on RDS

EXEC RDSADMIN.RDSADMIN_UTIL.ALTER_SENSITIVE_SUPPLEMENTAL_LOGGING(p_action => ‘ADD’);
πŸ“Œ Add Replicat Process on AWS RDS

ADD REPLICAT REP1, EXTTRAIL /ggs/dirdat/rt
πŸ“Œ Configure Replicat Parameter File (REP1.prm)

REPLICAT REP1
TARGETDB , USERIDALIAS ggadmin
MAP SCOTT., TARGET SCOTT.;

πŸ“Œ Why? The Replicat process applies transactions on AWS RDS.

πŸ”Ή 6️⃣ Start GoldenGate Processes
Start the processes to begin real-time replication:

START EXTRACT EXT1;
START EXTRACT DPUMP1;
START REPLICAT REP1;

πŸ“Œ Monitor Status:

INFO ALL;

πŸ“Œ Check Replication Lag:

LAG REPLICAT REP1;

πŸš€ Benefits of Using Oracle GoldenGate for On-Prem to AWS RDS Replication
βœ” Minimal Downtime Migration – No need for extended outages.
βœ” Real-Time Replication – Keeps databases in sync with low latency.
βœ” Cross-Cloud Flexibility – Supports multi-cloud and hybrid architectures.
βœ” Scalability & Performance – Handles high-volume transactions efficiently.

Leave a Reply

Your email address will not be published. Required fields are marked *