# Oracle to ClickHouse: CDC, Batch & Type Mapping Guide

DevFeed: [Oracle to ClickHouse: CDC, Batch & Type Mapping Guide](<https://devfeed.tech/articles/oracle-to-clickhouse-cdc-batch-type-mapping-guide-121705.md>)

Original publisher: [Read original article](<https://estuary.dev/blog/oracle-to-clickhouse>)

Author: Seán Whelan

Published: 2026-11-06T12:26:57Z

Content type: tutorial

Language: en

Sources: [Estuary](<https://devfeed.tech/sources/estuary.md>)

Topics: [Oracle Database](<https://devfeed.tech/topics/oracle-database.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [data type](<https://devfeed.tech/topics/data-type.md>), [schema-evolution](<https://devfeed.tech/topics/schema-evolution.md>)

Tags: [batch](<https://devfeed.tech/tags/batch.md>), [cdc](<https://devfeed.tech/tags/cdc.md>), [clickhouse](<https://devfeed.tech/tags/clickhouse.md>), [guide](<https://devfeed.tech/tags/guide.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [type](<https://devfeed.tech/tags/type.md>)

## AI overview

For Oracle tables that change continuously, the excerpt recommends log-based CDC through LogMiner: it reads redo logs in SCN order, captures hard deletes, and resumes from a checkpoint if the required archived logs remain available. Setup requires ARCHIVELOG mode, supplemental logging, adequate log retention, and primary keys on replicated tables. ClickHouse stores changes as row versions; ReplacingMergeTree collapses versions by sorting key during merges, while queries may need FINAL before merges complete. The excerpt also explains tombstones and delete markers, key-change handling, type-mapping pitfalls (especially Oracle DATE and NUMBER), insert batching, and recovery limits. Method choice depends on needs: file exports and scheduled batch copies suit snapshots or reporting; Debezium with Kafka fits teams already running that stack, though its ClickHouse sink needs pre-created tables and does not support deletes directly; ClickPipes has no Oracle CDC source. Estuary is presented as a managed LogMiner capture and ClickHouse materialization, with configurable sync frequency and documented type limitations, including skipped LOB and binary columns.

## Source excerpt

Move data from Oracle to ClickHouse: map types, handle updates and deletes with ReplacingMergeTree, and compare 4 CDC and batch methods.