Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Oracle

Oracle source: setup and configuration

Configure Oracle as an Artie source with archive logs, LogMiner, supplemental logging and account permissions for all tenancies.

Prerequisites

  • Host and port of the primary, or of an Active Data Guard physical standby (see Can I replicate from a standby?). The default port is 1521.
  • Service name
  • Multi-tenant architecture only: the pluggable database (PDB) name
  • Service account credentials
  • A restart of the database, if it isn’t in ARCHIVELOG mode yet

On Amazon RDS, follow Amazon RDS for Oracle instead. RDS uses rdsadmin procedures in place of several statements on this page.

Set up Oracle

Run each step on the primary database.

1. Enable archive logs

Put the database in ARCHIVELOG mode:

SQL
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;

Check the log mode:

SQL
SELECT LOG_MODE FROM V$DATABASE;

The query returns ARCHIVELOG.

Keep archived logs for at least 24 hours, and longer than your longest expected outage. If a log is deleted before Artie reads it, the pipeline stops until you restore the log or backfill the tables.

2. Turn on supplemental logging

Enable supplemental logging for the database:

SQL
ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;

Then log every column of each table you replicate, so updates include the columns they didn’t change:

SQL
ALTER TABLE SCHEMA_NAME.TABLE_NAME ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;

Replace SCHEMA_NAME.TABLE_NAME with the table’s schema and name. Check database supplemental logging:

SQL
SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;

The query returns YES or IMPLICIT.

3. Create the database user

Create a service account for Artie with LogMiner access and read access to the tables you replicate. Run the script for your architecture:

-- Create the LogMiner tablespace in the root and in the PDB.
-- CREATE USER ... CONTAINER=ALL fails if any open PDB lacks it, so create it in each open PDB.
ALTER SESSION SET CONTAINER=CDB$ROOT;
CREATE TABLESPACE ARTIE_LOGMINER_TBS DATAFILE SIZE 25M AUTOEXTEND ON MAXSIZE UNLIMITED;
ALTER SESSION SET CONTAINER=PDB_NAME;
CREATE TABLESPACE ARTIE_LOGMINER_TBS DATAFILE SIZE 25M AUTOEXTEND ON MAXSIZE UNLIMITED;

-- Create the user and run the CONTAINER=ALL grants from the root. Oracle only allows CONTAINER=ALL in CDB$ROOT.
ALTER SESSION SET CONTAINER=CDB$ROOT;
CREATE USER C##ARTIE_USER IDENTIFIED BY YOUR_PASSWORD
  DEFAULT TABLESPACE ARTIE_LOGMINER_TBS
  QUOTA UNLIMITED ON ARTIE_LOGMINER_TBS
  CONTAINER=ALL;

-- Grant permissions
GRANT CREATE SESSION TO C##ARTIE_USER CONTAINER=ALL;
GRANT SET CONTAINER TO C##ARTIE_USER CONTAINER=ALL;

-- Allows the Connector to use LogMiner
GRANT LOGMINING TO C##ARTIE_USER CONTAINER=ALL;

-- Flashback and transaction access
GRANT FLASHBACK ANY TABLE TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ANY TRANSACTION TO C##ARTIE_USER CONTAINER=ALL;

-- Required to read and write the data dictionary and track schema history
GRANT SELECT_CATALOG_ROLE TO C##ARTIE_USER CONTAINER=ALL;
GRANT EXECUTE_CATALOG_ROLE TO C##ARTIE_USER CONTAINER=ALL;

-- Connector creates a table for explicitly managing the flushing of internal log buffers (LGWR)
GRANT CREATE TABLE TO C##ARTIE_USER CONTAINER=ALL;

GRANT CREATE SEQUENCE TO C##ARTIE_USER CONTAINER=ALL;

-- To read every table instead of granting tables one by one, run this while still in CDB$ROOT:
-- GRANT SELECT ANY TABLE TO C##ARTIE_USER CONTAINER=ALL;

-- Grant the user permission to read each schema and table you wish to sync
ALTER SESSION SET CONTAINER=PDB_NAME;
GRANT SELECT ON SCHEMA_NAME.TABLE_NAME TO C##ARTIE_USER;

-- Grant the user access to the DBA_EXTENTS and DBA_SEGMENTS views.
GRANT SELECT ON DBA_EXTENTS TO C##ARTIE_USER;
GRANT SELECT ON DBA_SEGMENTS TO C##ARTIE_USER;

-- Grant the user permission to run LogMiner
ALTER SESSION SET CONTAINER=CDB$ROOT;
GRANT SELECT ON SYS.V_$DATABASE TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$PARAMETER TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOG TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOG_HISTORY TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOGMNR_LOGS TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOGMNR_CONTENTS TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOGMNR_PARAMETERS TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$LOGFILE TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$ARCHIVED_LOG TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$ARCHIVE_DEST_STATUS TO C##ARTIE_USER;
GRANT SELECT ON SYS.V_$TRANSACTION TO C##ARTIE_USER;
GRANT EXECUTE ON DBMS_LOGMNR TO C##ARTIE_USER;
GRANT EXECUTE ON DBMS_LOGMNR_D TO C##ARTIE_USER;
GRANT SELECT ANY TRANSACTION TO C##ARTIE_USER;
GRANT EXECUTE_CATALOG_ROLE TO C##ARTIE_USER;

Replace YOUR_PASSWORD with the user’s password, PDB_NAME with your pluggable database, and SCHEMA_NAME.TABLE_NAME with each table you replicate.

Connect Oracle in Artie

Enter these values in the Oracle source’s connection form:

FieldRequiredValue
HostYesIP address or hostname of the primary or the standby
PortYes1521 by default
UserYesThe user from step 3: C##ARTIE_USER or ARTIE_USER
PasswordYesThat user’s password
Pluggable database (PDB) name (optional)Multi-tenant onlyThe PDB name. Never the container database (CDB) name.
Service nameYesThe Oracle service name Artie connects to

To keep backfill reads off the primary, turn on Use a read replica for backfill? and fill in Replica host and Replica port. Artie then reads backfills from the replica and keeps reading changes from Host.

Oracle sources also connect through an SSH tunnel.

Overriding primary keys

To replicate a table without a primary key, use the columns of one of its unique indexes instead. In the Tables tab, open the table’s Advanced settings, check Override primary keys, and select the index’s columns.

The selected columns must be the same set as one unique index’s columns. Column order and letter case don’t matter. Artie also adds a hint for that index to its backfill queries, so they avoid full table scans.

If no unique index matches, the pipeline stops with one of these errors:

Text
no unique index found for column(s): (<columns>), available unique indexes: [<index>: (<columns>)]
no unique index found for column(s): (<columns>), table has no unique indexes

Table settings shared by every source are in Override primary keys.

Troubleshooting

For errors about a missing unique index, see Overriding primary keys.

Columns whose names differ only by case have the wrong values

Cause: Before Artie Reader v0.1.655 (released November 9, 2026), Oracle backfills selected column names without quotes, and Oracle uppercases unquoted names. For a table with both ID2 and "id2", the backfill wrote ID2’s values into id2. Change data capture (CDC) wasn’t affected.

Fix: Backfill the table again if it has such a pair of columns and was backfilled before that release. Other tables need no action.

Deploy fails after changing a connection value

Cause: Artie passes connection values, such as the password, to Debezium exactly as entered, including ${...}, $$ and line breaks. A value with a backslash before a dollar sign (\$) can’t be passed this way, so the deploy fails. The pipeline’s overview shows Deploy failed without naming the value.

Fix: Look for \$ in the source’s password and other connection settings, change that value, and deploy again.

Connection fails with a pluggable database (PDB) error

Cause: The Pluggable database (PDB) name (optional) field doesn’t match the database’s architecture.

Fix: Find the message the Dashboard shows in this table:

MessageCauseFix
This Oracle database isn’t multitenant.The field is filled in for a single-tenant databaseLeave the field empty
This Oracle database is multitenant.The field is empty for a multi-tenant databaseEnter the PDB name to read from
That pluggable database doesn’t exist. (ORA-65011)The field holds a name that isn’t a PDB, often the CDB’s nameEnter the PDB name

Can I replicate from a standby?

Yes, from an Active Data Guard physical standby that’s open read-only. Artie reads the standby’s archived redo logs and never writes to the standby. Contact us to enable streaming from a standby for your pipeline.

Configure the primary with:

  • ARCHIVELOG mode and supplemental logging, as described in Set up Oracle. Both replicate to the standby.
  • The standby service account and its grants, from the script in this section. Users and grants replicate to the standby.
  • ARCHIVE_LAG_TARGET, so the primary switches logs regularly even when it’s quiet. Artie reads a change only after the standby has archived the log that holds it.

Set ARCHIVE_LAG_TARGET on the primary:

SQL
ALTER SYSTEM SET ARCHIVE_LAG_TARGET = 300 SCOPE = BOTH;

Changes from a standby arrive at least one log switch behind the primary, so ARCHIVE_LAG_TARGET sets your minimum replication lag.

A standby needs fewer grants than 3. Create the database user, because Artie only reads from it. Run this on the primary:

ALTER SESSION SET CONTAINER=CDB$ROOT;
CREATE USER C##ARTIE_USER IDENTIFIED BY YOUR_PASSWORD CONTAINER=ALL;

GRANT CREATE SESSION TO C##ARTIE_USER CONTAINER=ALL;
GRANT SET CONTAINER TO C##ARTIE_USER CONTAINER=ALL;
GRANT LOGMINING TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ANY TRANSACTION TO C##ARTIE_USER CONTAINER=ALL;
GRANT EXECUTE ON SYS.DBMS_LOGMNR TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ON SYS.V_$DATABASE TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ON SYS.V_$LOG TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ON SYS.V_$ARCHIVED_LOG TO C##ARTIE_USER CONTAINER=ALL;
GRANT SELECT ON SYS.V_$LOGMNR_CONTENTS TO C##ARTIE_USER CONTAINER=ALL;

-- Grant read access to each table you want to replicate
ALTER SESSION SET CONTAINER=PDB_NAME;
GRANT SELECT ON SCHEMA_NAME.TABLE_NAME TO C##ARTIE_USER;

Replace YOUR_PASSWORD, PDB_NAME and SCHEMA_NAME.TABLE_NAME with your own values.

Configure the standby with:

  • Read-only access with redo apply running (Active Data Guard)
  • Archived logs kept until Artie has read them. If a log is deleted first, the pipeline stops until the log is restored or the tables are backfilled.

Run this query on the standby to check its configuration:

SQL
SELECT DATABASE_ROLE, OPEN_MODE, LOG_MODE, SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;

The query returns:

Text
PHYSICAL STANDBY, READ ONLY WITH APPLY, ARCHIVELOG, YES

SUPPLEMENTAL_LOG_DATA_MIN can also return IMPLICIT.

Artie checks the database role on every poll. After a switchover or failover changes the role, the pipeline stops with database role changed since streaming started.

Next steps

Was this page helpful?