Work with Oracle database redo log files

During change data capture, Datastream reads Oracle redo log files tomonitor your source databases for changes and replicate them to the destinationinstance. Each Oracle database has a set of online redo log files. Alltransaction records on the database are recorded in the files. When the currentredo log file is rotated (or switched), the archive processcopies this file into an archive storage. Meanwhile, the database promotesanother file to serve as the current file.

Datastream Oracle connector extracts change data capture (CDC) eventsfromarchived Oracle redo log files.

Access redo log files

Datastream can use the Oracle LogMiner API or the binaryreader method to access the redo log files:

  • Oracle LogMiner: an out-of-the-box utility included in Oracle databases.If you configure Datastream to use Oracle LogMiner API, Datastreamcan only work witharchived redo log files, online redo log files aren't supported.The LogMiner API method is single-threaded and is subject to higher latency andlower throughput when working with large transaction number source databases.LogMiner supports most data types and Oracle database features.

  • Binary reader (Preview):a specialized, high-performance utility that works with both online and archivedredo log files. Binary reader can access the log files using Automatic StorageManagement (ASM) or by reading the files directly using database directory objects.Binary reader is multithreaded and supports low-latency CDC. It also creates lowimpact on the source database as redo logs are parsed outside of the databaseoperations. The binary reader CDC method has limited support for certain datatypes or features. For more information, seeKnown limitations.

Set configuration parameters for Oracle redo log files

This design has profound implications on Datastream's potential latency. If Oracle's redo log files are switched frequently or kept to a smaller size (for example, < 256MB), Datastream can replicate changes faster.

There are configuration parameters that you can set to control the log file rotation frequency:

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.