Prepare Oracle
Before creating the source, make sure that:- Oracle runs in
ARCHIVELOGmode 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_ROLEandEXECUTE_CATALOG_ROLEroles and these privileges:CREATE SESSION,SET CONTAINER,FLASHBACK ANY TABLE,SELECT ANY TABLE,SELECT ANY TRANSACTION,LOGMINING,LOCK ANY TABLE,CREATE TABLE, andCREATE 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.
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.
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 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: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:
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 23BOOLEAN, andXMLTYPEcolumns are not supported.- If
debezium.time.precision.mode = 'connect', aTIMESTAMPprimary key with fractional precision greater than 3 is not supported. Omit this option to use the default microsecond precision.