πΉ 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.