Oracle GoldenGate Real-Time Replication Internals: Extract, Trail Files, and Replicat | ExaGuru
Replication Engineering · Blog 8 of 10

Oracle GoldenGate Real-Time Replication Internals: Extract, Trail Files, and Replicat

GoldenGate is often used as a black-box migration tool. Understanding what Extract actually reads, how trail files are structured, and how Replicat applies changes is what separates a smooth cutover from a mysterious lag spike.

Series: Replication Engineering
Read: ~13 min
Audience: DBAs, Replication Engineers
Level: Advanced

01 · The Mystery Lag Spike

A GoldenGate replication feeding a migration cutover suddenly falls 40 minutes behind. Restarting Replicat doesn't help. The root cause, eventually found: a missing index on the target table that Replicat depends on for efficient row lookups during UPDATE and DELETE apply - invisible without understanding Replicat's actual apply mechanism.

Q: What causes Replicat lag most often?
A: Missing indexes on target tables that Replicat depends on for row lookups, or insufficient parallelism relative to source transaction volume.


02 · How Extract Mines the Redo Stream

Extract reads committed transaction data from the source's online and archived redo logs. Two modes exist: Classic Extract, which mines logs directly, and Integrated Extract, which delegates mining to the database's own logmining server for tighter integration with newer Oracle features.

The practical difference shows up mostly in feature compatibility rather than raw speed. Classic Extract's own log-reading logic was written before certain newer Oracle features existed, so it can lag behind on support for them, while Integrated Extract inherits whatever the database's own logmining server already understands about the current release. Most new GoldenGate deployments on 19c and later default to Integrated Extract for exactly this reason, though Classic Extract remains simpler to reason about for teams who don't need the newer feature coverage.

EXTRACT MODES CLASSIC EXTRACTMines redo logsdirectly via Extract'sown log-reading logic INTEGRATED EXTRACTDelegates mining to thedatabase's own logminingserver for tighter integration VS

Figure 1 · Two ways Extract gets its data from the source database


03 · Trail Files: The Transport Layer

Trail files are compact, platform-independent representations of captured transactions. A GoldenGate Data Pump process (distinct from Oracle's Data Pump migration utility) ships these files across the network to a remote trail directory on or near the target, decoupling capture speed from network speed.

The GoldenGate Data Pump process in the middle of this diagram is easy to confuse with Oracle's own Data Pump migration utility, but they share nothing beyond the name. Its only job is to ship trail files from the local trail near Extract to a remote trail directory near Replicat, and because that transport is decoupled from both capture and apply, a slow network link delays replication lag without ever blocking Extract from continuing to read the source's redo stream.

THE REPLICATION TRIAD Extract: mines redologs Trail Files:portable transportunit Replicat: applies incommit order GoldenGatePipeline

Figure 2 · Three components, each independently replaceable, orbiting one replication pipeline


04 · How Replicat Applies Changes

Replicat reads remote trail files and applies each transaction to the target in commit order, using the target's own indexes to locate rows for UPDATE and DELETE operations. Parallel Replicat configurations split apply work across multiple threads, but ordering guarantees within a single transaction must still be preserved.

These four checks, worked through in order, account for the overwhelming majority of Replicat lag incidents in production. Missing supplemental logging prevents Extract from capturing enough information to identify changed rows; missing target indexes force Replicat into slow full-table scans for every UPDATE and DELETE; undersized trail storage throttles throughput during transaction spikes; and any violation of commit ordering during parallel apply risks silent data inconsistency rather than just slowness.

REPLICATION HEALTH CHECKLIST 1 Supplementallogging enabled 2 Target indexespresent 3 Trail storagesized correctly 4Commit orderpreserved

Figure 3 · The four checks that prevent most Replicat lag incidents


05 · Classic vs Integrated Extract

Dimension Classic Extract Integrated Extract
Log Mining Extract's own logic Delegated to database logmining server
Feature Compatibility Limited on newer Oracle versions Better aligned with current releases
Setup Complexity Simpler initial configuration Requires logmining server setup

06 · Technical FAQs

What is the difference between Classic and Integrated Extract?

Classic Extract reads redo logs directly via its own log-mining logic, while Integrated Extract delegates log mining to the database's own logmining server.

Do trail files persist after cutover?

They can be purged once Replicat has confirmed application and downstream consumers no longer need them, based on retention policy.

Can Replicat apply out of commit order?

No - transaction integrity requires Replicat to preserve source commit ordering even when parallelized across threads.


The Method Is the Migration

Understanding Extract, trail files, and Replicat internals is what turns GoldenGate from a black box into a tunable replication pipeline. ExaGuru's DB Migration course includes hands-on GoldenGate configuration and lag troubleshooting labs.

GoldenGate lag is rarely about GoldenGate - it's usually about what the target database was missing all along.

At ExaGuru, our Oracle Database Migration Masterclass covers ZDM, GoldenGate, XTTS, RMAN and OCI DMS migration patterns end to end.

ExaGuru - Oracle Cloud Training & Consulting
Exadata · ExaCC/ExaCS · OCI · Oracle DB Migration · Fusion ERP/HCM
Contact Us: +91-6394049607 · +91-9161111705
© 2026 ExaGuru. All rights reserved.
ExaGuru Job Portal