/redpanda:connect-cdc-oraclefrom redpanda
Streams change data capture from Oracle Database into Redpanda or Kafka using the oracledb_cdc input in Redpanda Connect, which reads redo logs via LogMiner. Covers configuration, ARCHIVELOG mode, supplemental logging, LogMiner privileges, SCN checkpointing, LOB capture, and CDB/PDB monitoring.
Ships in redpanda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The oracledb_cdc input in Redpanda Connect streams inserts, updates, and deletes from an Oracle database into Redpanda or any Kafka-compatible cluster using Oracle LogMiner. It can optionally snapshot all existing rows before streaming live changes. This is an Enterprise feature (Redpanda Community License) and requires Connect version 4.83.0 or later.
LogMiner reads Oracle's redo logs via the V$LOGMNR_CONTENTS view using the online_catalog strategy. The connector tracks progress with a System Change Number (SCN) stored either in a built-in Oracle checkpoint table (default) or in an external cache resource such as Redis or Memcached.
-- 1. Verify or enable ARCHIVELOG mode (requires SYSDBA, then restart DB)
SELECT LOG_MODE FROM V$DATABASE;
-- If not ARCHIVELOG: SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER DATABASE ARCHIVELOG; ALTER DATABASE OPEN;
-- 2. Enable minimal supplemental logging database-wide
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
-- 3. Enable ALL columns supplemental logging for each table to capture
ALTER TABLE MYSCHEMA.ORDERS ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
ALTER TABLE MYSCHEMA.PRODUCTS ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
-- 4. Create a replication user and grant LogMiner privileges
CREATE USER rpcn IDENTIFIED BY "SecurePassword1";
GRANT CREATE SESSION TO rpcn;
GRANT SELECT ANY TRANSACTION TO rpcn;
GRANT LOGMINING TO rpcn; -- Oracle 12c+
GRANT SELECT ON V_$DATABASE TO rpcn;
GRANT SELECT ON V_$LOG TO rpcn;
GRANT SELECT ON V_$LOGFILE TO rpcn;
GRANT SELECT ON V_$ARCHIVED_LOG TO rpcn;
GRANT SELECT ON V_$ARCHIVE_DEST_STATUS TO rpcn;
GRANT SELECT ON V_$LOGMNR_CONTENTS TO rpcn;
GRANT SELECT ON ALL_TABLES TO rpcn;
GRANT SELECT ON ALL_LOG_GROUPS TO rpcn;
GRANT SELECT ON ALL_TAB_COLUMNS TO rpcn;
GRANT SELECT ON ALL_CONSTRAINTS TO rpcn; -- snapshot PK discovery
GRANT SELECT ON ALL_CONS_COLUMNS TO rpcn; -- snapshot PK discovery
GRANT SELECT ON MYSCHEMA.ORDERS TO rpcn;
GRANT SELECT ON MYSCHEMA.PRODUCTS TO rpcn;
-- For the built-in checkpoint table (default, no checkpoint_cache configured):
GRANT CREATE TABLE TO rpcn;
GRANT CREATE PROCEDURE TO rpcn;
-- Note: the CREATE USER statement above already creates the RPCN schema.
-- In Oracle, a schema is the same as a user and is created implicitly by CREATE USER.
# oracle-cdc.yaml
input:
oracledb_cdc:
connection_string: oracle://rpcn:SecurePassword1@oracle-host:1521/ORCL
snapshot_mode: snapshot_and_stream # snapshot existing rows, then stream (use snapshot_only for a one-time backfill)
max_parallel_snapshot_tables: 2
snapshot_max_batch_size: 1000
include:
- ^MYSCHEMA\.ORDERS$ # anchor with ^...$ to match exactly
- ^MYSCHEMA\.PRODUCTS$
logminer:
scn_window_size: 20000 # default; tune up for high-volume
backoff_interval: 5s
mining_interval: 300ms
strategy: online_catalog
max_transaction_events: 0 # 0 = no limit
lob_enabled: true
checkpoint_limit: 1024
output:
redpanda:
seed_brokers:
- redpanda-broker:9092
topic: oracle-cdc-events
Run it:
rpk connect run oracle-cdc.yaml
input:
oracledb_cdc:
connection_string: oracle://rpcn:SecurePassword1@oracle-host:1521/ORCL
include:
- ^MYSCHEMA\.ORDERS$
- ^MYSCHEMA\.PRODUCTS$
logminer:
scn_window_size: 20000
backoff_interval: 5s
mining_interval: 300ms
strategy: online_catalog
lob_enabled: true
pipeline:
processors:
- mapping: |
meta topic = meta("table_name").lowercase()
output:
redpanda:
seed_brokers:
- redpanda-broker:9092
topic: ${! meta("topic") }
cache_resources:
- label: redis_scn_cache
redis:
url: redis://redis-host:6379
input:
oracledb_cdc:
connection_string: oracle://rpcn:SecurePassword1@oracle-host:1521/ORCL
include:
- ^MYSCHEMA\.ORDERS$
logminer:
scn_window_size: 20000
backoff_interval: 5s
mining_interval: 300ms
strategy: online_catalog
lob_enabled: true
checkpoint_cache: redis_scn_cache
checkpoint_cache_key: oracle-prod-scn
checkpoint_limit: 1024
output:
redpanda:
seed_brokers:
- redpanda-broker:9092
topic: oracle-cdc-events
Every message emitted by oracledb_cdc carries these metadata fields (access with meta("field_name") in Bloblang):
| Field | Description |
|---|---|
database_schema | Oracle schema (owner) of the source table |
table_name | Name of the source table |
operation | read (snapshot), insert, update, or delete |
scn | Oracle System Change Number for this event. On snapshot (read) messages this is Oracle's current SCN captured at the start of the snapshot — the same value for every snapshot row (since 4.98.0) |
checkpoint_scn | Checkpoint low-watermark SCN for this event (CDC only; used internally to advance the checkpoint). Absent on snapshot (read) messages. |
transaction_id | Oracle transaction ID in USN.SLOT.SEQ format; absent on snapshot (read) messages |
source_ts_ms | Wall-clock time when Oracle wrote the change to redo log (ms since epoch); absent on snapshot messages |
commit_ts_ms | Commit timestamp of the transaction (ms since epoch). On snapshot (read) messages this is Oracle's SYSTIMESTAMP captured when the snapshot SCN was taken — the same value for every snapshot row (since 4.99.0) |
username | Oracle database username of the session that performed the DML, from V$LOGMNR_CONTENTS.USERNAME. CDC only — absent on snapshot (read) messages, and on change events where Oracle reports a NULL or empty username (since 4.110.0) |
rs_id | LogMiner record set ID (V$LOGMNR_CONTENTS.RS_ID) identifying the redo record that produced the change. CDC only — absent on snapshot (read) messages and on LOB-only synthetic updates (since 4.113.1) |
ssn | SQL sequence number (V$LOGMNR_CONTENTS.SSN), as a numeric string. Set whenever rs_id is (since 4.113.1) |
row_seq | Position of this row change among the consecutive changes sharing the same rs_id and ssn, counted from 0 in redo order; 0 for every change that is not part of an array DML record. Set whenever rs_id is (since 4.113.1) |
schema | Serialised table schema for use with schema_registry_encode processor; present when schema resolution succeeds |
Three constraints shape every oracledb_cdc deployment:
Throughput is bounded by the LogMiner session, not by CPU. Each pipeline mines the redo stream through a single LogMiner reader (reading and processing are pipelined through a read-ahead buffer scaled from prefetch_rows, with a floor of roughly 2000 rows, but there is still one reader), so giving Redpanda Connect more cores does not raise the capture rate. To capture more aggregate change volume from one database, run multiple pipelines whose include patterns cover disjoint sets of tables — each pipeline gets its own LogMiner reader.
Large transactions can look like a stall. Left to itself the Oracle driver sizes each fetch to roughly 128 KiB based on the declared maximum width of the selected columns, so wide columns — such as LogMiner's redo SQL — yield only a handful of rows per network round trip. A large committed transaction can then arrive minutes late while the database, network, and connector all look idle: each round trip is a full network exchange, and thousands of them are needed. The connector therefore fetches prefetch_rows rows per round trip, and scales the read-ahead buffer between row reading and the rest of the pipeline from the same value (with a floor of roughly 2000 rows, so values below that do not grow it), so the next round trip overlaps with processing the rows already read. Raise it for large transactions over high-latency links, at the cost of more memory per fetch (and per table snapshotted in parallel):
prefetch_rows: 5000
A PREFETCH_ROWS query parameter on connection_string still works and takes precedence over the field (matched case-insensitively), so remove it if you want the field to apply. Values of 0 or below are rejected — both by rpk connect lint and at startup.
Redo log retention must cover open transactions and outages. Since Connect 4.117.0 the checkpoint advances roughly every 10 seconds once every delivered batch has been acknowledged, including while the monitored tables are idle — the input marks the mined position after a mining cycle that produced no rows. A quiet table set therefore no longer pins the checkpoint while Oracle ages out redo/archive logs. (Before 4.117.0 only a delivered message moved it, so an idle table set left it stationary; if you are pinned to an earlier release, size retention for the longest idle period instead.) Three things still hold the checkpoint back:
logminer.min_scn_window_size SCNs, because the input does not mine a range smaller than that.batching.count policy and no batching.period, rows wait in the batcher until more rows arrive and the checkpoint does not advance until they flush. Set a period on any count-based batching policy, or a quiet pipeline stops checkpointing for a different reason.Therefore:
logminer.max_session_age.scn_window strategy grows its window over mostly-empty SCN ranges. Switch logminer.window_strategy to redo_volume to size each cycle by the redo actually read instead — see config-reference.md.OPEN RESETLOGS looks like the same failure but is not a retention problem: it starts a new database incarnation, so a checkpoint taken before the reset can never be resumed and the input fails with ORA-01291 no matter how much retention you add. Recovery is to delete the checkpoint entry — with the default Oracle-based cache the flashback rolls the row back rather than clearing it, so it must be deleted explicitly — and to set snapshot_mode: snapshot_and_stream in the same change, since a checkpoint that is still present skips snapshotting entirely.oracledb_cdc is an enterprise connector licensed under the Redpanda Community License. You need a valid Redpanda Enterprise license. Without it the connector refuses to start with a license error ("all enterprise connectors are blocked"). Set your license via the environment variable or contact Redpanda for a 30-day trial key.
Several Redpanda Enterprise features apply to a CDC pipeline and to the destination cluster where the stream lands. Each requires a valid Enterprise license:
iceberg_enabled (cluster) and redpanda.iceberg.mode (topic). Use the schema metadata field with schema_registry_encode for structured (value_schema_id_prefix) tables.enable_schema_id_validation (cluster) and redpanda.value.schema.id.validation (topic).cloud_storage_enabled (cluster) and redpanda.remote.write / redpanda.remote.read (topic).wallet_password), the redpanda{} config service block (logs/status to a topic), allow/deny lists, and FIPS-compliant rpk connect.See enterprise-features.md for every nested config key, mode value, and license-expiry behavior.
oracledb_cdc config option, grounded in source — types, defaults, constraints, and the nested logminer{} sub-block.redpanda.iceberg.mode/target.lag.ms/partition.spec/invalid.record.action, iceberg_enabled), server-side Schema ID Validation (enable_schema_id_validation, redpanda.{key,value}.schema.id.validation), Tiered Storage (cloud_storage_enabled, redpanda.remote.write/read), and Connect enterprise capabilities (secrets, the redpanda{} config service block, allow/deny lists, FIPS). Includes license-expiry behavior for each.references/SOURCES.md (opens in a new tab)references/config-reference.md (opens in a new tab)references/enterprise-features.md (opens in a new tab)references/pipeline-and-output.md (opens in a new tab)references/setup-oracle.md (opens in a new tab)resources/oracle-cdc-example.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub redpanda-data/skills --plugin redpanda36 skills in this plugin
/adpRedpanda's Agentic Data Plane: governance infrastructure for building, running, and governing AI agents and MCP servers behind a credential-injecting AI Gateway for LLM providers, operated through the `rpk ai` CLI and the ADP UI at ai.redpanda.com. Use when installing `rpk ai`, signing in to an environment, checking setup with `rpk ai doctor`, managing managed or self-managed AI agents and their triggers with `rpk ai agent` and `rpk ai trigger`, configuring remote or managed MCP servers with `rpk ai mcp-server` (including code mode and user-delegated OAuth), setting up LLM providers and models with `rpk ai llm-provider` and `rpk ai model`, applying GitOps manifests, or launching a coding tool with `rpk ai run`. For access policies, budgets and cost, guardrails and the kill switch, or secrets, API keys, data policies and OAuth, see `/redpanda:adp-governance`. For transcripts, the audit log, and traces, see `/redpanda:adp-observability`. For the `rpk cloud mcp` control-plane server, see `/redpanda:rpk-cloud`./adp-governanceGovern what Agentic Data Plane agents may do, spend, and expose, through the `rpk ai` CLI and the ADP UI at ai.redpanda.com, and look up governance features in the Redpanda docs. Use when writing or debugging a Cedar access policy with `rpk ai policy`, giving a new agent access, capping agent spend with `rpk ai budget`, analyzing cost, attaching a guardrail to a provider, containing or releasing an agent with the kill switch, storing or deleting a credential with `rpk ai secret`, minting an API key, masking MCP tool data with data policies, or setting up inbound or outbound OAuth. For signing in, agents, MCP servers, LLM providers, and the rest of the `rpk ai` CLI, see `/redpanda:adp`. For transcripts, the audit log, and traces, see `/redpanda:adp-observability`./adp-observabilityRead what Agentic Data Plane agents did and why, through traces, conversation transcripts, the audit log, and the monitoring views in the ADP UI at ai.redpanda.com and the `rpk ai` CLI. Use when finding which call made an agent run slow, failed, or expensive with `rpk ai trace`, reading or filtering a conversation with `rpk ai agent transcript`, finding conversations with a failed tool call, investigating a denied or masked call with `rpk ai auditlog`, working out on whose behalf an agent acted, or reading the Agent network or Home views. For budgets, cost, and access policies, see `/redpanda:adp-governance`. For signing in, agents, MCP servers, LLM providers, and the rest of the `rpk ai` CLI, see `/redpanda:adp`./cloud-byocProvisions, changes, and tears down Redpanda Cloud BYOC (Bring Your Own Cloud) clusters through the Control Plane API and the `rpk cloud byoc` plugin, where the VPC, IAM roles, and storage stay in your own AWS, GCP, or Azure account. Use when creating or deleting a BYOC cluster or its Network, running `rpk cloud byoc` apply, destroy, or validate, scaling a BYOC cluster, editing its cloud provider tags or cluster properties, configuring its private connectivity and listeners, or setting up Shadow Link disaster recovery, cross-account AWS access, or Enterprise features such as Tiered Storage on it. For workload sizing, see `/redpanda:cloud-byoc-sizing`; for Serverless clusters, see `/redpanda:cloud-serverless`; for fully Redpanda-managed Dedicated clusters, see `/redpanda:cloud-dedicated`./cloud-byoc-sizingEstimates the Redpanda units (RPUs) and the supported broker deployment that a Kafka workload needs on AWS, GCP or Azure, for a single point in time or as a projection over months or quarters, by running a bundled zero-dependency sizing script. Use when sizing or capacity-planning a BYOC cluster from ingress and egress throughput and partition counts; working out how many RPUs or brokers a workload needs and which resource limit drives that number; projecting cluster size and RPU-hours as a workload grows or as new workloads come online; finding the month a growing workload must scale up or outgrows a single cluster; or comparing the sizing of one workload across clouds. For provisioning the cluster once it is sized, see `/redpanda:cloud-byoc`; for fully Redpanda-managed clusters, see `/redpanda:cloud-dedicated`./cloud-dedicatedProvisions and manages Redpanda Cloud Dedicated clusters, the fully Redpanda-managed single-tenant clusters that run in Redpanda's own AWS, GCP, or Azure account, through the Control Plane API and the per-cluster Data Plane API. Use when creating, updating, or deleting a Dedicated cluster or its Network, changing its throughput tier, tags, maintenance window, or cluster properties, configuring public or private connectivity such as PrivateLink or VPC peering, scripting the lifecycle with curl and OAuth2 client credentials, setting up Shadow Link disaster recovery or a Schema Registry migration onto it, or using Enterprise features such as Tiered Storage, Iceberg Topics, and RBAC on it. For Serverless clusters, see `/redpanda:cloud-serverless`; for customer-cloud-account BYOC clusters, see `/redpanda:cloud-byoc`.Other plugins' skills for the same job