An Oracle to Databricks pipeline often begins with a request the database team turns down: access to the redo log. Log readers cannot work without it. A nightly export can, which is why so many of these pipelines end up as a file drop that Databricks loads the next morning.
The usual ways to move the data:
- Export to files, then Auto Loader. A script writes each table to a bucket and a Databricks job loads the files. Freshness is hours to daily, and a changed row arrives through a full reload or a merge you write yourself.
- Debezium's Oracle connector, Kafka and Structured Streaming. Debezium reads changes through LogMiner, so they reach Kafka within seconds. You run Kafka, Kafka Connect, Debezium and a Databricks job that stays up, and the merge logic is yours.
- Oracle GoldenGate. Oracle's own replication product and the other log-based route. It is a separate product to license and operate.
- Lakeflow Connect. Databricks' managed ingestion. Its overview lists MySQL, PostgreSQL and SQL Server as change data capture (CDC) database connectors, and Oracle is not one of them (checked Oct 2026).
This tutorial builds another route. OLake Go, an open source (Apache 2.0) replication tool, reads Oracle over a plain Java Database Connectivity (JDBC) connection with a user that can only SELECT. It copies every table once, then on each later run fetches the rows whose UPDATED_AT moved and commits them as Apache Iceberg tables into Unity Catalog.
The trade is stated up front: OLake Go has no log-based CDC for Oracle. The cursor column carries every change, so a hard delete in Oracle never reaches Databricks.
I ran all of it on 2026-10-30 with Oracle Database 23ai Free in Docker, OLake Go v1.1.0 and a Databricks workspace on Google Cloud. The timings and row counts below come from that run.
What the Oracle to Databricks pipeline looks like
- Source:
SHOP.CUSTOMERSandSHOP.ORDERS, read by a user withCREATE SESSIONandSELECT. - Pipeline: OLake UI in Docker Compose. The first sync reads each table in parallel chunks and saves the highest cursor value it saw. Later syncs select the rows above that value and upsert them.
- Destination: the Iceberg REST (representational state transfer) endpoint of Unity Catalog. The tables become Unity Catalog managed Iceberg tables, with the files in the catalog's managed storage in your own cloud account.
You need: Oracle Database 11g or later reachable over JDBC, a Databricks workspace with Unity Catalog and an admin who can grant EXTERNAL USE SCHEMA, Docker, and about 30 minutes.
Step 1: Give Oracle a read-only user and a cursor column
Use tables you already have, or create the two from my run in the SHOP schema of the pluggable database FREEPDB1:
CREATE TABLE shop.customers ( id NUMBER(10) GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, name VARCHAR2(100), email VARCHAR2(200), city VARCHAR2(100), tier VARCHAR2(20), created_at TIMESTAMP DEFAULT SYSTIMESTAMP, updated_at TIMESTAMP DEFAULT SYSTIMESTAMP); CREATE TABLE shop.orders ( id NUMBER(10) GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, customer_id NUMBER(10) REFERENCES shop.customers(id), product VARCHAR2(100), amount NUMBER(10,2), status VARCHAR2(20), created_at TIMESTAMP DEFAULT SYSTIMESTAMP, updated_at TIMESTAMP DEFAULT SYSTIMESTAMP); Fill them with any rows. Mine held 8 customers and 40 orders, and step 7 updates two customers by name, Liam Carter and Zara Ali, so include those two if you want to replay it unchanged.
Then create the user, as a database administrator (DBA):
-- 1. A user for OLake Go CREATE USER olake IDENTIFIED BY "<password>"; GRANT CREATE SESSION TO olake; -- 2. Read access to the tables you sync GRANT SELECT ON shop.customers TO olake; GRANT SELECT ON shop.orders TO olake; GRANT SELECT ANY DICTIONARY TO olake; -- lets discovery read the catalog views Confirm both pieces:
SELECT username FROM all_users WHERE username = 'OLAKE'; SELECT table_name FROM all_tables WHERE owner = 'SHOP'; Two properties of the tables matter as much as the grants. Each needs a primary key, because OLake Go upserts on it and appends changed rows when there is none. Each also needs a cursor column that every write sets, since an incremental sync runs WHERE cursor > last value and sees nothing else.
⚠️ A deleted row has no cursor value to read, so it stays in the Databricks table. Soft-delete with a
deleted_atcolumn that also bumpsupdated_at, or schedule an occasional full refresh.
Step 2: Open Unity Catalog to an outside writer
Four things, once per workspace:
- External data access on the metastore: Catalog, the gear icon, Metastore, then External data access. With it off, the endpoint refuses every client that is not Databricks itself.
- A catalog with managed storage, backed by an external location.
-
EXTERNAL USE SCHEMAfor the principal that writes. - A personal access token from Settings, Developer, Access tokens.
-- The catalog OLake Go writes into. Its managed storage holds the Iceberg files. CREATE CATALOG IF NOT EXISTS lakehouse MANAGED LOCATION '<external location URL>/lakehouse'; GRANT USE CATALOG, CREATE SCHEMA ON CATALOG lakehouse TO `olake@example.com`; GRANT USE SCHEMA, CREATE TABLE, SELECT, MODIFY ON CATALOG lakehouse TO `olake@example.com`; GRANT EXTERNAL USE SCHEMA ON CATALOG lakehouse TO `olake@example.com`; Because the grants sit on the catalog, the schema OLake Go creates later inherits them. EXTERNAL USE SCHEMA is not included in ALL PRIVILEGES, and only the catalog owner can grant it (Databricks: Unity Catalog privileges). My catalog was called datazip and my token expired after seven days; the snippets use lakehouse.
Step 3: Start OLake UI and add the Oracle source
curl -sSL https://raw.githubusercontent.com/datazip-inc/olake-ui/master/docker-compose-v1.yml | docker compose -f - up -d Open http://localhost:8000 and sign in. Under Sources, click Create Source, pick Oracle and name the source.
My Oracle ran in another container, so the host was host.docker.internal with port 1521. The connection type was Service Name with FREEPDB1; a system identifier (SID) works too.
Enter the username as OLAKE, in capitals. OLake Go quotes the name when it connects, which makes Oracle compare it case-sensitively, and a user created without double quotes is stored in upper case. I typed olake first and got ORA-01017: invalid credential or not authorized; logon denied.
Click Set up source.
Step 4: Add the Unity Catalog destination
Under Destinations, click Create Destination. Pick Apache Iceberg, catalog type Unity and authentication type Personal Access Token.
| Field | Value |
|---|---|
| REST Catalog URL | https://<workspace-url>/api/2.1/unity-catalog/iceberg-rest |
| Unity Catalog Name | lakehouse, the catalog from step 2 |
| Token | the personal access token |
Click Create. OLake Go calls the endpoint with the token, so a missing grant or a mistyped catalog name fails here and not in the middle of a sync.
Step 5: Create the job and run the first sync
Under Jobs, click Create Job. Mine was named oracle_to_databricks, with a schedule and the source and destination from the last two steps.
In Advanced Settings, set Target Query Engines to Databricks, and add DuckDB and Apache Spark if they will read the tables. OLake Go then resolves a delete format all of them can read. With Databricks in the list that is deletion vectors on Iceberg v3 tables, and you never choose it by hand.
Click Next, and on the Streams page tick CUSTOMERS and ORDERS. Set each to Full Refresh + Incremental with UPDATED_AT as the cursor field and Upsert as the ingestion mode. Leave the Upsert Type on Deletion Vector.
Click Create Job, open the job's menu and choose Sync Now. My first run copied 48 records (2.24 KB) in 22 seconds, container start included.
The schema name comes from the job and the source schema, lower-cased: oracle_to_databricks_shop. To change it, edit the Iceberg DB field at the top of the Streams page before the first sync.
Step 6: Query the tables in Databricks
Nothing has to be registered. Open the SQL editor on any SQL warehouse; a 2X-Small serverless one was enough for my checks.
SHOW TABLES IN lakehouse.oracle_to_databricks_shop; SELECT id, name, city, tier FROM lakehouse.oracle_to_databricks_shop.customers ORDER BY id; SELECT status, count(*) AS n, round(sum(amount), 2) AS total FROM lakehouse.oracle_to_databricks_shop.orders GROUP BY status ORDER BY status; OLake Go adds four columns to each table: _olake_id (a hash of the primary key), _op_type, _olake_timestamp and _cdc_timestamp. After the first sync every _op_type is r, a snapshot row.
Step 7: Change rows in Oracle and sync again
I made 12 changes, 7 inserts and 5 updates. Each UPDATE sets updated_at as well, and that is the only reason the next sync finds it:
INSERT INTO customers (name, email, city, tier) VALUES ('Maya Patel', 'maya@example.com', 'Pune', 'silver'); INSERT INTO customers (name, email, city, tier) VALUES ('Lucas Silva', 'lucas@example.com', 'São Paulo', 'bronze'); INSERT INTO orders (customer_id, product, amount, status) VALUES (9, 'Laptop', 1299.00, 'placed'); INSERT INTO orders (customer_id, product, amount, status) VALUES (9, 'Mouse', 25.50, 'placed'); INSERT INTO orders (customer_id, product, amount, status) VALUES (10, 'Monitor', 349.99, 'placed'); INSERT INTO orders (customer_id, product, amount, status) VALUES (3, 'Keyboard', 89.00, 'placed'); INSERT INTO orders (customer_id, product, amount, status) VALUES (7, 'Webcam', 79.90, 'placed'); UPDATE customers SET tier = 'gold', updated_at = SYSTIMESTAMP WHERE name = 'Liam Carter'; UPDATE customers SET city = 'Abu Dhabi', updated_at = SYSTIMESTAMP WHERE name = 'Zara Ali'; UPDATE orders SET status = 'delivered', updated_at = SYSTIMESTAMP WHERE id IN (1, 4, 7); COMMIT; Sync Now again. This run fetched 12 rows (598 bytes) above the saved cursor and took 18 seconds.
For customers, OLake Go wrote one data file with 4 rows and one deletion vector that marks the 2 old versions. The commit report reads addedDataFiles=1, addedRecords=4, addedDVs=1 and addedPositionalDeletes=2. orders has the same shape with 8 rows and 3 deleted positions.
Run the customers query again, with no refresh in between. Liam Carter is gold, Zara Ali is in Abu Dhabi, and Maya Patel and Lucas Silva are there.
Look at _op_type and you will see u on 4 rows and r on the other 6. Incremental mode cannot tell an insert from an update, so the two new customers are marked u as well.
Read the same tables from DuckDB and Spark
No export and no second copy. Both engines attach Unity Catalog as an Iceberg REST catalog with the same token, and Databricks hands them short-lived storage credentials.
INSTALL iceberg; LOAD iceberg; INSTALL httpfs; LOAD httpfs; CREATE SECRET unity (TYPE iceberg, TOKEN '<personal access token>'); ATTACH 'lakehouse' AS uc ( TYPE iceberg, ENDPOINT 'https://<workspace-url>/api/2.1/unity-catalog/iceberg-rest', SECRET unity, ACCESS_DELEGATION_MODE 'vended_credentials' ); SELECT id, name, city, tier FROM uc.oracle_to_databricks_shop.customers ORDER BY id; spark-sql \ --packages org.apache.iceberg:iceberg-spark-runtime-4.0_2.13:1.10.0,org.apache.iceberg:iceberg-gcp-bundle:1.10.0 \ --conf spark.sql.extensions=org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions \ --conf spark.sql.catalog.uc=org.apache.iceberg.spark.SparkCatalog \ --conf spark.sql.catalog.uc.type=rest \ --conf spark.sql.catalog.uc.uri=https://<workspace-url>/api/2.1/unity-catalog/iceberg-rest \ --conf spark.sql.catalog.uc.warehouse=lakehouse \ --conf spark.sql.catalog.uc.token=<personal access token> \ --conf spark.sql.catalog.uc.header.X-Iceberg-Access-Delegation=vended-credentials DuckDB 1.5.5 and Spark 4.0.1 with Iceberg 1.10.0 returned the same 10 customers as Databricks. The orders roll-up matched Oracle to the cent in all three: 16 delivered for 8659.68, 18 placed for 10522.26 and 11 shipped for 6397.25. On AWS or Azure, replace iceberg-gcp-bundle with iceberg-aws-bundle or iceberg-azure-bundle.
Data types to watch
| Oracle | Databricks shows | Note |
|---|---|---|
NUMBER(n,0), n up to 9 | INT | |
NUMBER(n,0), n above 9 | BIGINT | my NUMBER(10) keys arrived as BIGINT |
NUMBER(n,m) with a scale, FLOAT, BINARY_DOUBLE | DOUBLE | round at query time for exact decimal arithmetic |
DATE and every TIMESTAMP variant | TIMESTAMP | UTC; an Oracle DATE carries a time |
CLOB, RAW, BLOB, INTERVAL types | STRING | binary values arrive as text; keep large binaries out of the sync |
Tips from the run
- Index
updated_at. An incremental sync is one range scan per table on the cursor, and the index keeps it cheap as the table grows. - Set the cursor with a trigger. An
UPDATEthat leavesupdated_atalone is invisible to the next sync. - Rotate the token. An expired personal access token fails the next sync at the first catalog call. For production, use a service principal with OAuth machine-to-machine credentials.
- Plan compaction. Every sync adds a small data file, plus a deletion vector when rows change. Spark's
rewrite_data_filesworks through the same Unity Catalog endpoint. - Know when to skip this route. It is the wrong tool when hard deletes must replicate, when a table cannot get a cursor column, or when a pipeline needs native Delta Lake features on these rows.
How the Oracle to Databricks options compare
| Method | Freshness | Updates and deletes | Where the data lands | What you run |
|---|---|---|---|---|
| Export to files, then Auto Loader | hours to daily | full reloads or your own merge | tables written by a Databricks pipeline | an export script, a bucket and a Databricks job |
| Debezium, Kafka and Structured Streaming | seconds, from LogMiner | yes, with your own merge logic | Kafka topics, then tables from a streaming job | Kafka, Kafka Connect, Debezium and a running Databricks job |
| OLake Go into Unity Catalog (this post) | incremental, on a schedule down to one minute | inserts and updates that move the cursor; deletes need a soft-delete column | Iceberg tables that Databricks, DuckDB, Spark and Trino read | one Docker Compose stack, open source |
Debezium is the pick when you need hard deletes and seconds of latency and already run Kafka. The cursor route fits when SELECT is all the access you have, or when a second engine needs the same rows.
FAQ
Can I skip OLake UI and run it from the command line?
Yes. The olakego/source-oracle image takes a source.json with service_name or sid and a destination.json whose catalog_type is unity, then runs discover and sync. In selected_streams.json, set sync_mode to incremental, cursor_field to UPDATED_AT and update_type to dv.
What happens to a table that has no primary key?
It still syncs, but there is no key to upsert on. Changed rows are appended, so the old version of a row sits next to the new one. Add a key in Oracle before the first sync if you want one row per key.
Does writing the tables use my Databricks compute?
No. OLake Go writes the Parquet files and deletion vectors from wherever Docker runs, with no warehouse or cluster involved. Databricks compute is spent only when you query.
Where to go from here
- Point the source at your real schema, and check each table for a primary key and an
updated_atthat every write path sets. - The reference version, with the full type mapping and the command-line tab for every step, is the Oracle to Databricks guide on olake.io.
If a step behaves differently on your Oracle version, leave the error text in the comments and I will update the post.






