Ask how to move Oracle to BigQuery and the first two answers both want the redo log. Google's Datastream reads it and needs supplemental logging switched on in Oracle. Oracle GoldenGate reads it under a license.
Plenty of teams get neither. The database administrator (DBA) hands over a read-only user, and what is left is a nightly export plus bq load.
The usual ways to get Oracle rows into BigQuery:
- Datastream for Oracle: Google's managed change data capture (CDC) service, near real time by Google's description. You set up a connection profile and a stream and run nothing yourself. The rows land in native BigQuery datasets, and BigQuery is the only reader of them.
- Oracle GoldenGate to BigQuery: changes in seconds, updates and deletes included, into native BigQuery tables. You run GoldenGate Extract and Replicat, and GoldenGate is a licensed Oracle option.
- Export, then
bq load: Data Pump or aSELECTto CSV, a scheduler and a staging bucket. Freshness is hours to daily, and every run is a full reload. - Managed extract, load, transform (ELT): Fivetran, Estuary or Airbyte Cloud. Nothing to host and freshness in minutes by plan, priced per row, per GB or per connector, for a second copy inside BigQuery.
This tutorial builds a fifth one, and that read-only user is all it asks of Oracle. OLake Go, an open source (Apache 2.0) replication tool, reads the tables over a plain Java Database Connectivity (JDBC) connection. It copies each table in full once, then on every later run fetches the rows whose UPDATED_AT moved.
The rows are written as Apache Iceberg tables into BigLake, Google Cloud's Iceberg representational state transfer (REST) catalog. The Parquet files stay in a Cloud Storage bucket you own. BigQuery queries them by a four-part name, with no dataset to create and no external table to declare.
The price of skipping the log: OLake Go has no log-based CDC for Oracle. The cursor column carries every change, so a row that is hard-deleted in Oracle stays in BigQuery.
I ran each step on 2026-10-30 with Oracle Database 23ai Free in Docker, OLake Go v1.1.0 in OLake UI, and a bucket in us-central1. The timings and row counts below are from that run.
The Oracle to BigQuery pipeline in three parts
- Source:
CUSTOMERSandORDERSin a schema namedSHOP, read by a user that can onlySELECT. - Pipeline: OLake Go on Docker Compose. The first sync reads each table in parallel chunks and saves the highest cursor value; later syncs upsert the rows above it.
- Destination: a BigLake catalog named after the bucket, which BigQuery treats as a data source.
You need: Oracle Database 11g or later reachable over JDBC, a Google Cloud project with BigQuery, Docker, and about 30 minutes.
Step 1: Oracle needs a user, a key and a cursor
Use tables you already have, or create the two from my run. They live 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); Load any rows you like. My run began with 8 customers and 40 orders, and step 7 expects customers named Liam Carter and Zara Ali among those 8.
OLake Go asks three things of Oracle before the first sync:
- A read-only user with
CREATE SESSIONandSELECTon each table. - A cursor column that grows with every change, such as
updated_at. Incremental syncs selectWHERE cursor > last value, so a row updated without touching it is skipped. - A primary key on every table. Changed rows are upserted on it, and without one they are appended.
Create the user as a 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 Then verify it:
SELECT username FROM all_users WHERE username = 'OLAKE'; SELECT table_name FROM all_tables WHERE owner = 'SHOP'; The first query answers with OLAKE in capitals, since the user was created without double quotes. Hold on to that for step 3.
⚠️ A deleted row has no cursor value to read, so it stays in the Iceberg table. If deletes matter, soft-delete with a
deleted_atcolumn that also bumpsupdated_at, or schedule an occasional full refresh.
Step 2: A bucket and a service account in Google Cloud
All of this is done in the Google Cloud console, in the project that will hold the tables.
- Enable the API. Under APIs and services, Enable APIs and services, turn on the BigLake API.
- Create a bucket. In Cloud Storage, make one in the region where BigQuery will run the queries, which was
us-central1for me. Its name becomes the catalog name you type in SQL. - Create a service account. In IAM and Admin (Identity and Access Management), Service Accounts, add one such as
olake-biglake. Give it BigLake Editor on the project and Storage Object User on the bucket. - Download a key. On its Keys tab choose Add key, Create new key, JSON. The console hands the file over once.
No catalog has to be made by hand. BigLake creates a single-bucket catalog named after the bucket the first time OLake Go calls the endpoint with gs://<bucket> as the catalog path.
⚠️ Keep that catalog in its default end-user credential mode. OLake Go 1.1.0 does not send the
X-Iceberg-Access-Delegationheader, so a catalog moved to vended credentials fails the destination test in step 4.
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. Go to Sources, click Create Source, pick Oracle, name the source and keep the OLake Go version on the latest release.
The values from my run: host host.docker.internal since Oracle sat in another container, port 1521, connection type Service Name with FREEPDB1, and SSL mode disable. A system identifier (SID) is the other connection type. The Enable CDC switch is greyed out and tagged as not supported.
Enter the username as OLAKE, in capitals. OLake Go puts the name in quotes when it connects, so Oracle compares it case-sensitively, and olake in lower case is a user that does not exist.
Click Set up source. OLake Go tests the connection and saves the source.
Step 4: Add BigLake as the destination
Go to Destinations, click Create Destination, choose Apache Iceberg as the connector and BigLake as the catalog type. Then fill in:
| Field | Value |
|---|---|
| REST Catalog URI | https://biglake.googleapis.com/iceberg/v1/restcatalog |
| BigLake Catalog Path | gs://<bucket>, bucket root only |
| Authentication Type | GCP |
| GCP Service Account JSON | the complete key file from step 2 |
| Catalog Name | olake_iceberg |
| GCP Auth Scopes | the default, https://www.googleapis.com/auth/cloud-platform |
| GCP Project ID | your project's ID |
| Enable Arrow Writes | off |
Click Create. OLake Go calls the BigLake endpoint, creates the catalog if this is the first contact, and writes and drops a test table in the bucket. A 403 from biglake.googleapis.com means the BigLake Editor grant is missing, and a 403 from storage.googleapis.com means Storage Object User is.
Step 5: Create the job and run the first sync
Go to Jobs and click Create Job. Mine was called oracle_to_bigquery. Give it a schedule, then select the source and destination you just made.
Under Advanced Settings, set Target Query Engines to Google BigQuery, Apache Spark and DuckDB. OLake Go then offers only the delete formats all three can read, which are equality and positional deletes. Deletion vectors drop off the list because BigQuery reads them only in preview.
Click Next to open the Streams page, and tick CUSTOMERS and ORDERS under SHOP. For each one, set the sync mode to Full Refresh + Incremental with UPDATED_AT as the cursor field and the ingestion mode to Upsert. Leave Upsert Type as OLake Go resolved it, which was Positional Deletes in my run.
Click Create Job, open the job's menu and choose Sync Now. The first run copied 8 customers and 40 orders (48 records, 2.24 KB) and finished in 32 seconds, container start included.
The BigLake namespace takes its name from the job and the source schema, lower-cased, so mine became oracle_to_bigquery_shop. For a different name, edit the Iceberg DB field at the top of the Streams page before the first sync.
Step 6: Query the tables in BigQuery
Nothing gets registered. The bucket is the catalog, the namespace is the dataset, and the tables are the tables. In the BigQuery SQL editor, set the query location to the bucket's region and write the four-part name in backticks:
SELECT id, name, city, tier FROM `<project-id>.<bucket>.oracle_to_bigquery_shop.customers` ORDER BY id; SELECT status, count(*) AS n, round(sum(amount), 2) AS total FROM `<project-id>.<bucket>.oracle_to_bigquery_shop.orders` GROUP BY status ORDER BY status; The account that runs the queries needs the BigQuery Job User role plus read access to the catalog.
⚠️ Mind the location. On the default
USmulti-region, a catalog whose bucket is regional answersNot found: Dataset.
OLake Go adds four columns to every table, _op_type among them. Straight after the first sync it is r on every row, meaning the row came from the snapshot.
Step 7: Change rows in Oracle and sync again
Next I made 12 changes in the SHOP schema: 7 inserts and 5 updates. Every UPDATE sets updated_at as well, because that column is all the cursor can see.
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; Choose Sync Now a second time. This sync fetched 12 rows (598 bytes) above the saved cursor and took 45 seconds end to end.
For customers the commit was one new data file with 4 rows: the 2 inserts plus the new versions of the 2 updated rows. One small positional delete file retires the 2 old versions, and orders got the same shape with 8 rows and 3 deletes. The commit report in the sync log reads addedDataFiles=1, addedRecords=4, addedPositionalDeleteFiles=1, addedPositionalDeletes=2.
Run the customers query again, with no refresh and no ALTER TABLE in between. BigQuery returns 10 rows, one per key: Liam Carter is gold, Zara Ali has moved to Abu Dhabi, and Maya Patel and Lucas Silva have arrived.
Add _op_type to the select list and one thing looks wrong at first. The two brand-new customers are marked u, the same as the two updated ones, because incremental mode cannot tell an insert from an update. Rows the second sync never touched keep r.
Schema changes. Add a column in Oracle and OLake Go adds it to the Iceberg table on the next sync. Narrowing or incompatible type changes fail the sync rather than corrupt the table.
Read the same tables from DuckDB and Spark
A second engine can open the same files with nothing exported or copied. DuckDB attaches BigLake with a Google access token. For the files it also needs a hash-based message authentication code (HMAC) key for the service account, made under Cloud Storage, Settings, Interoperability.
INSTALL iceberg; LOAD iceberg; INSTALL httpfs; LOAD httpfs; -- gcloud auth print-access-token, or a token minted for the service account CREATE SECRET biglake_catalog ( TYPE iceberg, TOKEN '<access token>', EXTRA_HTTP_HEADERS MAP {'x-goog-user-project': '<project-id>'} ); -- the HMAC key pair for the bucket CREATE SECRET biglake_files (TYPE gcs, KEY_ID '<hmac access id>', SECRET '<hmac secret>'); ATTACH 'gs://<bucket>' AS biglake ( TYPE iceberg, ENDPOINT 'https://biglake.googleapis.com/iceberg/v1/restcatalog', SECRET biglake_catalog ); SHOW ALL TABLES; SELECT id, name, city, tier FROM biglake.oracle_to_bigquery_shop.customers ORDER BY id; DuckDB 1.5.5 returned the same 10 customers as BigQuery. Spark 4.0.1 with Iceberg 1.10.0 did too, from a laptop against the same catalog and bucket. The orders roll-up matched Oracle to the cent in all three engines: 16 delivered orders for 8659.68, 18 placed for 10522.26 and 11 shipped for 6397.25.
The access token lives an hour. When a DuckDB query fails with 401, run CREATE OR REPLACE SECRET with a fresh one.
Data types to check before you trust a sum
| Oracle | BigQuery shows | Note |
|---|---|---|
NUMBER(n,0) | INT64 | the NUMBER(10) identity keys arrived as INT64 |
NUMBER(n,m) with a scale, FLOAT, BINARY_DOUBLE | FLOAT64 | stored as doubles; round at query time for exact decimal arithmetic |
DATE and every TIMESTAMP variant | TIMESTAMP | a UTC instant; an Oracle DATE carries a time |
RAW, BLOB, BFILE, INTERVAL types | STRING | binary values arrive as text; keep large binaries out of the sync |
The BigQuery column follows the BigQuery Iceberg tables page and the table schemas from my run.
Tips from the run
- Index the cursor. Each incremental sync runs one range query per table on
UPDATED_AT. On a large table, an index keeps that query from scanning everything. - Close the gap in the write paths. An
UPDATEthat skipsupdated_atnever reaches BigQuery, so set the column in every write path or from a trigger. - Expire snapshots on a schedule. BigLake keeps every snapshot in the table's
metadata.jsonand rejects that file above 1 MB, which a busy table reaches after a few thousand syncs. Spark'sexpire_snapshotsandrewrite_data_filesprocedures work through the same catalog.
Oracle to BigQuery methods side by side
| Method | Freshness | Updates and deletes | Where the data lands | What you run |
|---|---|---|---|---|
| Datastream for Oracle | near real time, by Google's description; from the redo log | yes | native BigQuery datasets, read by BigQuery only | a connection profile and a stream, plus supplemental logging on Oracle |
| GoldenGate to BigQuery | seconds | yes | native BigQuery tables | GoldenGate Extract and Replicat, a licensed Oracle option |
Data Pump or CSV export, then bq load | hours to daily | no, full reloads only | native BigQuery tables | a script, a scheduler and a staging bucket |
| Fivetran, Estuary, Airbyte Cloud | minutes, by plan | varies by tool | BigQuery tables, as a second copy | nothing; per-row, per-GB or per-connector pricing |
| OLake Go into BigLake (this post) | incremental, on a schedule down to one minute | inserts and updates through the cursor; no deletes | Iceberg tables in your bucket that BigQuery, Spark, DuckDB, Trino and Flink read | one Docker Compose stack, open source |
Datastream is the simpler choice when deletes must replicate and BigQuery is the only reader. The cursor route fits when a read-only user is what you have, or when Spark, DuckDB or a notebook needs the same rows without a second copy.
Skip it when hard deletes must reach BigQuery, or when a table has no steadily increasing column and cannot get one. It is also the wrong fit when every query has to run at native BigQuery speed, since a catalog table is read from Parquet in the bucket each time.
FAQ
What happens to an Oracle table that has no primary key?
It still syncs, but OLake Go has nothing to upsert on. Changed rows are appended, so an old version of a row sits next to the new one in BigQuery. Add a key in Oracle before the first sync if you want one row per key.
How often can the job run, and what does a run cost the Oracle server?
The schedule goes down to one minute. Each run issues one range query per table on the cursor column, which is why the index on UPDATED_AT matters. Only the first sync reads the tables in full.
Does OLake Go spend BigQuery compute when it writes?
No. OLake Go runs wherever you run Docker and uploads Parquet and delete files to the bucket with the service account's credentials. BigQuery bills only your queries, by bytes scanned on demand or by slot time on an edition, and the files are billed at Cloud Storage rates.
Where to go from here
- Point the source at your real schema, and check that every table you tick has a primary key and a cursor column the application always sets.
- The full guide has the command-line version of each step, the Spark connection and the complete data type table: Oracle to BigQuery on olake.io.
If a step behaves differently on your Oracle version, leave the error text in the comments and I'll update the tutorial.











