Oracle
Find out how to connect Oracle to your data warehouse effortlessly.
The available connections between databases and the Erathos platform are through Open Connection, Static IP and SSH tunnel.
Connecting Oracle:
Log in to your Erathos account
Select Oracle as connector
Name your connection
Fill in the following form with the required information:
db_host — the hostname or IP address of your Oracle database
db_port — the listener port (
1521by default,1522on Oracle Autonomous Database)db_name — the Oracle service name (Erathos connects using a service name, not a SID). On Oracle Cloud this is usually the fully qualified name, including the PDB name and the VCN's DNS domain, e.g.
PDB.sub09061234567.myvcn.oraclevcn.comdb_user and db_password — the database credentials Erathos should use
You can optionally fill in:
db_schema — restricts extraction to a single schema. When left empty, Erathos will discover tables, views and materialized views across every schema the credentials can see (excluding Oracle's built-in system schemas, such as
SYS,SYSTEM,XDB,CTXSYS, etc.)db_role — only required if the supplied credentials must connect with an elevated Oracle connect role, such as
SYSDBAorSYSOPER. Leave this empty for a regular (non-privileged) connection.SSH tunnel fields — ssh_host, ssh_user, ssh_password (or an SSH private key), ssh_port and ssh_keepalive_interval, if you choose to connect through an SSH tunnel/bastion.
When using CDC, the following values may be used in cdc_snapshot_mode:
initial: performs an initial snapshot, after it completes, streaming following changes from the redo/archive logs.
no_data: does not perform any snapshot, only streams changes that are currently available in the redo/archive logs.
If your database is a multitenant (CDB/PDB) database, also fill in the following CDC fields (see CDC setup below):
cdc_db_name — the service name of the container database (CDB), e.g.
ORCLCDB. CDC reads changes from the CDB, even when your tables live in a PDB.cdc_pdb_name — the name of the pluggable database (PDB) that holds your tables, e.g.
ORCLPDB1.cdc_db_user and cdc_db_password — the common user created for CDC (e.g.
c##erathos_cdc). When left empty, db_user and db_password are used.
Don't forget to click on Save and close to advance to the next steps of the integration.
With this connection created you can seamlessly move your Oracle data to data-warehouses such as BigQuery, Redshift or Databricks.
Finding your connection details in Oracle Cloud (OCI)
The steps to gather the host, port and service name depend on whether your database is an Autonomous Database or a DB System (VM, Bare Metal or Exadata).
Autonomous Database (ADB-S / ADW / ATP)
In the OCI Console, go to Oracle Database > Autonomous Database and select your database instance.
Click DB Connection, then open the Connection Strings tab.
Pick any of the listed connection strings (e.g. the
_highor_mediumprofile) and use it to fill in:db_host and db_port (
1522) from thehost/portshown in the connect descriptor.db_name with the full
service_nameshown in the same connect descriptor (it already includes the VCN's DNS domain, e.g.PDB.sub09061234567.myvcn.oraclevcn.com).
Under Network, configure an Access Control List (ACL) allowing connections either from Erathos' static IP or from any IP.
With an ACL configured, you can toggle Mutual TLS (mTLS) authentication to off on the same Network settings page. This lets Erathos connect over TLS without requiring a client wallet, matching how the connector authenticates.
DB Systems (Base Database / VM / Bare Metal / Exadata)
In the OCI Console, go to Oracle Database > DB Systems, select your DB system, then select the database.
Under DB Connection, copy the Host Name/IP into db_host and the Port (
1521by default) into db_port.For db_name, use the fully qualified service name shown there — it's the PDB/service name followed by the subnet and VCN DNS domain (e.g.
PDB.sub09061234567.myvcn.oraclevcn.com), not just the short service or database name. If it's not shown on that page, you can confirm it by runningSELECT SYS_CONTEXT('USERENV','SERVICE_NAME') FROM DUAL;on the database, or by checking the subnet's DNS domain name under Networking > Virtual Cloud Networks > your VCN > Subnets.Make sure the DB system's Virtual Cloud Network (VCN) security list or network security group allows inbound traffic on the database port:
From Erathos' static IP, if you restrict allowed IPs to your database.
From any IP, if you have a database open to the internet.
If the DB system only has a private IP, use the SSH tunnel connection method through a bastion/jump host that Erathos can reach, filling in the ssh_host, ssh_user and ssh_password (or SSH private key) fields.
DB Systems typically only expose a plain TCP listener (no TCPS) unless you've configured one yourself — this is fine, Erathos automatically falls back to TCP in that case.
Database user and permissions
Erathos only needs read access. We recommend creating a dedicated, read-only database user:
If you'd rather scope access to specific schemas or tables instead of granting SELECT ANY TABLE, grant SELECT explicitly on each object you want to sync, and set the db_schema field described above so Erathos only introspects that schema:
CDC setup
In order to enable CDC in your Oracle connection you need to confirm the following settings in your database. CDC reads changes from the database's redo and archive logs using Oracle LogMiner, so the steps below require a user with SYSDBA privileges.
Archive log mode
The database must run in ARCHIVELOG mode, so that redo logs are archived instead of overwritten before CDC reads them.
Supplemental logging
By default, Oracle's redo logs don't carry enough information to reconstruct full rows. Minimal supplemental logging must be enabled for the database, and full (ALL) column logging for every table you want to stream.
CDC user
CDC needs a user with LogMiner privileges, besides read access to your tables. On multitenant (CDB/PDB) databases this must be a common user (prefixed with c##) created in the CDB root, and its credentials go in the cdc_db_user and cdc_db_password fields.
CDC also creates a small helper table in the user's default tablespace, so the user needs a quota on it. On multitenant databases the tablespace must exist both in the CDB root and in the PDB.
On a non-multitenant database, run the same grants without CONTAINER=ALL, skip SET CONTAINER, and use a regular user name (e.g. erathos_cdc). You can then use it as the connection's db_user, or keep db_user as your read-only user and fill in cdc_db_user and cdc_db_password.
Additional CDC settings
The following optional fields can be used to fine-tune CDC:
cdc_lob_enabled — set to
trueto captureBLOB/CLOBcolumns. By default, LOB columns are left out of CDC rows because capturing them is considerably slower.cdc_log_mining_strategy —
online_catalog(default) reads table structures from the current data dictionary and is the fastest option. If the structure of your captured tables changes frequently, useredo_log_cataloginstead, which tracks table structure changes through the redo logs.
Last updated

