Skip to main content
PREMIUM FEATUREThis is a premium feature. For a comprehensive overview of all premium features and their usage, see RisingWave premium features.
Oracle CDC is experimental. Test the connector with your workload before using it in production.
RisingWave can ingest changes from Oracle by using an embedded Debezium LogMiner connector. Create one shared source for an Oracle schema, and then create multiple RisingWave tables from it. When you create a table, RisingWave backfills its existing rows and merges changes that occur during the backfill before continuing with live CDC events.

Prepare Oracle

Before creating the source, make sure that:
  • Oracle runs in ARCHIVELOG mode with force logging and minimal supplemental logging enabled.
  • All-column supplemental logging is enabled for each captured table, or at the PDB or CDB level.
  • Each captured table has an enabled primary key backed by a valid, visible index.
  • The connector user has the SELECT_CATALOG_ROLE and EXECUTE_CATALOG_ROLE roles and these privileges: CREATE SESSION, SET CONTAINER, FLASHBACK ANY TABLE, SELECT ANY TABLE, SELECT ANY TRANSACTION, LOGMINING, LOCK ANY TABLE, CREATE TABLE, and CREATE SEQUENCE.
  • Redo logs are retained long enough for backfill and recovery. RisingWave does not automatically take a new snapshot if the required redo has expired.
Oracle CDC also requires a heartbeat table with two NUMBER columns named ID and HEARTBEAT, a single-column primary key on ID, and a seed row whose ID is 1. The connector user must be able to update HEARTBEAT. For manual setup, connect to the PDB that contains the captured tables (ORCLPDB1 in the source example below). Run this SQL as the heartbeat-table owner (RW_CDC in this example), or ask your DBA to run it. The RW_CDC schema must already exist.
Alternatively, set heartbeat.table.auto.initialize = 'true' to let RisingWave create and seed the table. Its schema must already exist. If the table belongs to a different user, grant the connector user UPDATE (HEARTBEAT) on that table.

Create a shared source

Create a source that connects to the Oracle container database (CDB) and selects a pluggable database (PDB) and schema:
The following source parameters are specific to Oracle CDC. The standard connection parameters in the example are required. The default logminer_unbuffered adapter keeps open transactions in Oracle until they commit. The logminer adapter buffers open transactions in the connector node’s memory. With either adapter, many concurrent large transactions can exhaust memory on the side that buffers them.

Create tables and backfill data

You can let RisingWave discover the upstream columns and primary key:
The TABLE value must contain exactly schema.table. RisingWave matches both identifier parts exactly and does not apply Oracle’s usual uppercase conversion. For an Oracle table created with unquoted identifiers, use its uppercase catalog name, as in APP.ORDERS. Identifiers containing periods are not supported. You can also declare the schema explicitly. Quoted RisingWave column names preserve the uppercase Oracle column names:
By default, table creation backfills existing rows. To consume only changes that occur after table creation, disable the snapshot:

Limitations

  • Parallelized CDC table backfill is not supported. Oracle CDC reads each table in primary-key order with one snapshot reader. This is separate from Cloud serverless backfilling, which runs materialized view, sink, and index backfill on dedicated resources.
  • The order of a composite primary key in the RisingWave table must match the Oracle primary-key index.
  • Automatic schema change is not supported.
  • Committed changes are delivered, but changes from one Oracle transaction are not guaranteed to become visible atomically downstream.
  • LONG, LONG RAW, UROWID, Oracle 23 BOOLEAN, and XMLTYPE columns are not supported.
  • If debezium.time.precision.mode = 'connect', a TIMESTAMP primary key with fractional precision greater than 3 is not supported. Omit this option to use the default microsecond precision.