An Oracle to Redshift project usually opens with a request to the database team, and the size of that request depends on the tool. Log-based tools want supplemental logging, the redo log, or a licensed option. A nightly export wants nothing extra, but it reloads whole tables and never delivers an update as a change.
The usual ways to move Oracle data into Amazon Redshift:
- AWS Database Migration Service (DMS): change data capture (CDC) through LogMiner or Binary Reader into native Redshift tables, deletes included. You run a replication instance and a task, and Oracle needs supplemental logging.
- Oracle GoldenGate: changes within seconds into native Redshift tables. GoldenGate is a licensed Oracle option.
-
Export, then
COPY: Data Pump or aSELECTto CSV on a scheduler. Hours to daily, full reloads only. - Managed extract, load, transform (ELT): Fivetran, Estuary or Airbyte Cloud. Nothing to host, priced per row, per GB or per connector, for a second copy inside Redshift.
This tutorial builds a fifth route that asks Oracle for a read-only user and a cursor column. OLake Go, an open source (Apache 2.0) replication tool, reads the tables over a plain Java Database Connectivity (JDBC) connection and writes them as Apache Iceberg tables into the AWS Glue Data Catalog. The files stay in your own S3 bucket, and Redshift queries them in place through an external schema.
The trade comes first. OLake Go has no log-based CDC for Oracle, so a cursor column such as updated_at carries the changes. Inserts and updates arrive, and a hard delete in Oracle never reaches Redshift.
I ran every step on 2026-10-30: Oracle Database 23ai Free in Docker, OLake Go v1.1.0 through OLake UI, and a Redshift Serverless workgroup at 8 Redshift Processing Units (RPU) in ap-southeast-1. The timings and row counts below come from that run.
What this Oracle to Redshift pipeline needs
Oracle Database 11g or later reachable over JDBC, an AWS account, Redshift Serverless or an RA3 cluster, Docker, and about 40 minutes. One OLake Go job copies two tables, customers and orders, in full and then fetches only the rows whose cursor moved.
Step 1: Give Oracle two tables, a reader and a cursor
Use tables you already have, or create the pair 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);
Fill them with any rows you like. I started with 8 customers and 40 orders. To run step 7 unchanged, keep 8 customers with Liam Carter and Zara Ali among them, so the two new customers get ids 9 and 10.
OLake Go upserts on the primary key, and without one changed rows are appended. The updated_at column is the cursor: incremental syncs select WHERE cursor > last value.
Now the read-only user. Run this 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
-- 3. Check
SELECT username FROM all_users WHERE username = 'OLAKE';
SELECT table_name FROM all_tables WHERE owner = 'SHOP';
The check returns OLAKE in capitals, because the user was created without double quotes.
⚠️ Incremental mode does not replicate deletes. A deleted row leaves no cursor value to read, so it stays in the Iceberg table. Soft-delete in Oracle with a
deleted_atcolumn that also bumpsupdated_at, or schedule an occasional full refresh.
Step 2: One bucket and two identities in AWS
Nothing in Glue has to exist yet, because OLake Go creates a Glue database per job on the first sync. What you do need:
-
An S3 bucket for the table files, in the region where your engines run. Mine sat in
ap-southeast-1. - An Identity and Access Management (IAM) user for OLake Go. I used a scoped user with the inline policy below and an access key pair.
-
An IAM role for Redshift, attached to the Serverless namespace or the cluster. Mine had
AmazonS3ReadOnlyAccessand read access to Glue.
{
"Version": "2012-10-17",
"Statement": [
{ "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetBucketLocation"], "Resource": "arn:aws:s3:::<bucket>" },
{ "Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject", "s3:DeleteObject", "s3:AbortMultipartUpload", "s3:ListMultipartUploadParts"], "Resource": "arn:aws:s3:::<bucket>/*" },
{ "Effect": "Allow",
"Action": ["glue:GetDatabase", "glue:GetDatabases", "glue:CreateDatabase", "glue:GetTable", "glue:GetTables", "glue:CreateTable", "glue:UpdateTable", "glue:DeleteTable"],
"Resource": ["arn:aws:glue:<region>:<account>:catalog", "arn:aws:glue:<region>:<account>:database/*", "arn:aws:glue:<region>:<account>:table/*/*"] }
]
}
Step 3: Start OLake UI and connect Oracle
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 with the default admin / password. Go to Sources, click Create Source, pick Oracle and name the source.
My form: host host.docker.internal because Oracle ran in another container, port 1521, and connection type Service Name with FREEPDB1.
Enter the username as OLAKE. OLake Go quotes the name when it connects, so Oracle treats olake and OLAKE as different users. Click Set up source, and OLake Go tests the connection and saves the source.
Step 4: Add the Glue destination
Go to Destinations, click Create Destination, pick Apache Iceberg as the connector and AWS Glue as the catalog type. Three inputs matter:
| Field | Value |
|---|---|
| S3 Path | the bucket path OLake Go writes under, for example s3://<bucket>/lakehouse/
|
| AWS Region | the region of the bucket and the Glue catalog, ap-southeast-1 here |
| AWS Access Key and AWS Secret Key | the key pair of the IAM user from step 2 |
Click Create.
Step 5: Create the job and run the first sync
Redshift is not in OLake Go's target engine picker yet, so this job sets the delete format by hand.
- Open Jobs and click Create Job. Name it
oracle_to_redshiftand give it a schedule. - Select the source and the destination you just created.
- Under Advanced Settings, set Target Query Engines to AWS Athena and DuckDB.
- Click Next. On the Streams page, tick
CUSTOMERSandORDERSunderSHOP. - For each table, pick Full Refresh + Incremental with
UPDATED_ATas the cursor field, Upsert as the ingestion mode and Positional Deletes as the Upsert Type. - Click Create Job, then open the job's menu and choose Sync Now.
Redshift reads Iceberg v2 tables with positional deletes and nothing else, and both listed engines read that format too.
The first run copied 8 customers and 40 orders (48 records, 2.24 KB) and finished in 19 seconds, container start included. It also recorded the highest cursor value it saw, so there is no separate backfill job.
OLake Go names the Glue database after the job and the source schema, lower-cased, so mine became oracle_to_redshift_shop. The Iceberg DB field at the top of the Streams page changes the name before the first sync.
Step 6: Query the tables in Redshift
Open Redshift query editor v2 and connect to the workgroup or cluster. The first statement maps the Glue database onto a schema, and you run it once:
CREATE EXTERNAL SCHEMA lakehouse
FROM DATA CATALOG
DATABASE 'oracle_to_redshift_shop'
IAM_ROLE default;
SELECT id, name, city, tier FROM lakehouse.customers ORDER BY id;
SELECT status, count(*) AS n, round(sum(amount), 2) AS total
FROM lakehouse.orders GROUP BY status ORDER BY status;
IAM_ROLE default picks the default role of the namespace or cluster. The schema is read-only, since OLake Go is the writer, so an INSERT or DELETE on these tables fails.
⚠️ Run
CREATE EXTERNAL SCHEMAafter the first sync and in the workgroup's region. Earlier than that, the Glue database is missing and Redshift returnsERROR: Database 'oracle_to_redshift_shop' does not exist in the Glue Data Catalog.
Step 7: Change rows in Oracle and sync again
I made 12 changes between the two syncs, 7 inserts and 5 updates. Each UPDATE sets updated_at as well, because that is all the cursor sees:
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 finished in 11 seconds end to end.
For customers that produced one new data file holding 4 rows: the 2 inserts and the new versions of the 2 updated rows. One small positional delete file retires the 2 old versions. The commit report in the sync log reads addedDataFiles=1, addedRecords=4, addedPositionalDeleteFiles=1, addedPositionalDeletes=2, and orders has the same shape with 8 rows and 3 deletes.
Back in Redshift, re-run the first SELECT with no refresh and no ALTER TABLE. Liam Carter is gold, Zara Ali is in Abu Dhabi, and the two new customers are there: 10 rows, one per key.
OLake Go adds an _op_type column to every table. In incremental mode it cannot tell an insert from an update, so every row the second sync brought is marked u, the two new customers included. The snapshot rows keep r.
Read the same tables from Athena and DuckDB
Neither engine needs an export or a refresh. They open the files OLake Go wrote, through the same Glue database.
Athena. The database shows up in the query editor's list with no registration. Pick a workgroup that has a query result location in S3, select the database and run:
SELECT id, name, city, tier FROM oracle_to_redshift_shop.customers ORDER BY id;
SELECT status, count(*) AS n, round(sum(amount), 2) AS total
FROM oracle_to_redshift_shop.orders GROUP BY status ORDER BY status;
DuckDB. It reads an Iceberg table from the table's current metadata file, which Glue keeps as metadata_location. Ask Glue for it, then scan:
aws glue get-table --database-name <glue database> --name customers \
--query 'Table.Parameters.metadata_location' --output text
INSTALL iceberg; LOAD iceberg;
INSTALL httpfs; LOAD httpfs;
CREATE SECRET lake (TYPE s3, KEY_ID '<access key>', SECRET '<secret key>', REGION '<region>');
SELECT id, name, city, tier
FROM iceberg_scan('s3://<bucket>/lakehouse/oracle_to_redshift_shop.db/customers/metadata/<latest>.metadata.json')
ORDER BY id;
DuckDB 1.5.5 returned the same 10 customers as Redshift and Athena. 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. Each sync writes a new metadata file, so fetch the location again before a fresh read.
Tips from the run
-
Index the cursor, and set it in every write path. Each incremental sync runs one range query per table on
UPDATED_AT. AnUPDATEthat leaves the column untouched is invisible to the next sync, so set it from a trigger if the application might not. -
Expect two type changes.
NUMBERwith a scale arrives asDOUBLE PRECISION, so round in the query for exact decimal arithmetic.DATEand everyTIMESTAMPvariant becomeTIMESTAMPin Coordinated Universal Time (UTC). -
Plan for compaction. Every sync adds a small data file and a delete file per table, and Glue has no built-in compaction for tables written by external engines. Spark's
rewrite_data_fileson Amazon Elastic MapReduce (EMR) works through the same Glue catalog.
How the Oracle to Redshift methods compare
| Method | Freshness | Updates and deletes | Where the data lands | What you run |
|---|---|---|---|---|
| AWS DMS | CDC through LogMiner or Binary Reader | yes | native Redshift tables | a replication instance and task, an S3 staging bucket |
| Oracle GoldenGate | seconds | yes | native Redshift tables | Extract and Replicat, a licensed Oracle option |
Export, then COPY
|
hours to daily | no, full reloads only | native Redshift tables | a script, a scheduler and a staging bucket |
| Fivetran, Estuary, Airbyte Cloud | minutes, by plan | varies by tool | Redshift tables, a second copy | nothing; per-row, per-GB or per-connector pricing |
| OLake Go to Glue (this post) | incremental, on a schedule down to one minute | inserts and updates through the cursor; no deletes | Iceberg tables that Redshift, Athena, EMR, Spark and DuckDB read | one Docker Compose stack, open source |
DMS is the simpler choice when you need deletes replicated and are already on AWS. The cursor route earns its setup when you want to own the files, or when Athena, EMR or a notebook needs the same rows without a second copy.
Where this route stops:
- Hard deletes do not replicate. Soft-delete in Oracle, or use a log-based tool.
- No cursor column, no incremental sync. Such a table runs Full Refresh only.
- It is not native Redshift speed. Redshift Spectrum reads Parquet from S3 on every query, so load the hot slice into a native table on a schedule.
FAQ
Do I have to refresh the external schema after each sync?
No. Each sync ends with one commit to Glue, and Redshift picks up the new snapshot on its next query.
What happens to an Oracle table that has no primary key?
It still syncs, but OLake Go has nothing to upsert on, so changed rows are appended next to the old ones. Add a primary key in Oracle before the first sync if Redshift should return one row per key.
Why set the upsert type by hand instead of letting OLake Go choose?
OLake Go resolves a delete format from the target query engines on the job, and Redshift is missing from that list for now. Listing Athena and DuckDB and choosing Positional Deletes gives all three readers a format they can open.
Where to go from here
- Point the source at your real schema. The connector takes a service name or a system identifier (SID), so Amazon Relational Database Service (RDS) for Oracle, Autonomous Database and self-managed instances all work.
- The full guide, with the command-line version of every step, the complete data type table and the troubleshooting list, is on olake.io.
If your Oracle version or your Redshift setup answers differently at any step, leave the message in a comment and I will fix the post.







Top comments (0)