Destinations
Connect Oracle as a destination
Create an Oracle service account and the schemas Artie writes to, then add Oracle to a pipeline. See how Artie names tables and maps column types.
Create a service account
Run this SQL in the pluggable database (PDB) Artie writes to. It creates the user Artie connects as and lets it create tables.
-- An Oracle schema is a user, so Artie writes to the ARTIE schema by default.
CREATE USER ARTIE IDENTIFIED BY "PASSWORD" QUOTA UNLIMITED ON USERS;
GRANT CREATE SESSION, CREATE TABLE TO ARTIE;Replace PASSWORD with the service account’s password.
To write to a schema other than the service account’s own, also run these grants:
GRANT SELECT ANY TABLE, INSERT ANY TABLE, UPDATE ANY TABLE, DELETE ANY TABLE TO ARTIE;
GRANT CREATE ANY TABLE, ALTER ANY TABLE, DROP ANY TABLE TO ARTIE;Tables count against the tablespace quota of the schema that owns them, not the service account’s.
Schemas
In Oracle, a schema is a user. Artie doesn’t create schemas, so each schema Artie writes to has to exist before the pipeline starts. That includes the staging schema, if you set one.
To add a schema, run this SQL in the PDB:
CREATE USER ANALYTICS NO AUTHENTICATION QUOTA UNLIMITED ON USERS;NO AUTHENTICATION creates a schema-only account that nobody can log in as. It’s available from Oracle 18c.
Artie creates and evolves tables inside the schema, and drops its own expired staging tables.
Schema layout
When your source has schemas, choose how Artie maps them. Pipeline setup labels the options One schema and Multiple schemas. The pipeline’s edit page labels them Write to one schema and Write to multiple schemas.
One schema sends every table to the schema in Schema name. Multiple schemas sends each table to a schema named after its source schema, with an optional prefix.
With Multiple schemas, create each of those schemas in Oracle first. For how Artie names tables in each layout, see Destination table naming.
To change the schema of a running pipeline, pause the pipeline, then move its tables to the new schema in Oracle.
Staging schema
Artie creates its temporary staging tables in the same schema as the destination table. To keep them in a separate schema, set a staging schema. The setting is off by default.
In pipeline setup, open Advanced options on the Connect Oracle step, then turn on Staging schema under Staging. On the pipeline’s edit page, open Advanced settings on the Destination: Oracle tab, then select Put staging tables in a different schema.
Pick a schema that already exists in Oracle.
Required settings
Enter these fields on the Connect Oracle step. Each field name matches its label in the Artie dashboard.
| Field | Default | Value |
|---|---|---|
| Host | None | The database’s IP address or host name, for example server.example.com. |
| Port | 1521 | The database’s port. |
| User | None | The service account, for example ARTIE. |
| Password | None | The service account’s password. |
| Service name | None | The service name of the PDB to write to, for example ORCLPDB1. |
| Schema name | None | The schema Artie writes to. |
Artie connects straight to the PDB’s service, so a destination doesn’t need a container name. An Oracle source reads a multi-tenant database from the container database (CDB) instead.
Add Oracle to a pipeline
When you create a pipeline, the setup flow reaches Choose your destination after you choose tables.
- On Choose your destination, select Oracle, then select Continue.
- On How would you like to connect your destination?, select SSH tunnel, Allowlist Artie IPs or PrivateLink.
- On Connect Oracle, enter Host, Port, User and Password.
- Enter Service name, then Schema name.
- Select Verify destination. Artie shows “Destination verified”.
- Select Continue.
PrivateLink needs an Enterprise plan. Connection options describes each method. To verify at a later time, select Verify later instead of Verify destination.
Two conditions change the Connect Oracle step:
- If you chose an existing Oracle connector, the step shows its details in place of the connection fields. Set Service name and Schema name for this pipeline.
- If the pipeline has no tables yet, the button reads Test connection. It checks the connection only, so choose tables and then verify.
To change these settings on an existing pipeline, select Edit pipeline on the pipeline’s page, then open the Destination: Oracle tab.
Table and column names
Artie quotes every identifier and writes it in uppercase, so a source column named orderId lands as ORDERID. Schema names are matched case-insensitively for the same reason.
Table names can be up to 128 bytes and can’t contain double quotes.
Data types
Artie creates columns with these Oracle types.
| Source type | Oracle type |
|---|---|
| Boolean | NUMBER(1, 0) |
| Small integer | NUMBER(5, 0) |
| Integer | NUMBER(10, 0) |
| Big integer | NUMBER(19, 0) |
| Float, double | BINARY_DOUBLE |
| Decimal with precision up to 38 | NUMBER(p, s) |
| Decimal without a precision | NUMBER |
| Decimal with precision over 38 | VARCHAR2(4000 BYTE), or CLOB if it doesn’t fit |
| String with a known length up to 1,000 | VARCHAR2(n CHAR) |
| Other strings | CLOB (VARCHAR2(1000 CHAR) for a primary key) |
| UUID | VARCHAR2(36 CHAR) |
| JSON, arrays | CLOB |
| Binary | Base64 text in a CLOB (VARCHAR2(1000 CHAR) for a primary key) |
| Date | DATE |
| Time | VARCHAR2(32), for example 13:45:00.123456 |
| Timestamp | TIMESTAMP(6) |
| Timestamp with time zone | TIMESTAMP(6) WITH TIME ZONE |
| Interval | VARCHAR2(255) |
A column that already exists in Oracle keeps its type. Artie writes binary values as bytes into an existing RAW or BLOB column.
Oracle to Oracle column types
When the source is also Oracle, Artie creates each column with the source’s exact type. Examples are NUMBER(10,2), VARCHAR2(40 BYTE) and TIMESTAMP(9) WITH LOCAL TIME ZONE. INTEGER lands as the equivalent NUMBER(38,0).
Artie uses the mapping in Data types when a type can’t be written as is:
LONGandLONG RAW, which Oracle can’t read in aMERGEINTERVALtypesCLOB,NCLOB,BLOBandJSONprimary keysRAWandBLOBcolumns, because Artie carries binary values as Base64 textXMLTYPEandSDO_GEOMETRYcolumns
Values too long for a column
Artie replaces a value that’s too long for its column with __artie_exceeded_value, cut to the column’s width if the column is narrower. Primary key values are never replaced, so an oversized key fails the load instead of colliding with another row.
When Artie connects, it checks whether the database has MAX_STRING_SIZE = EXTENDED and reads the database’s character sets. With MAX_STRING_SIZE = EXTENDED, a VARCHAR2 column holds up to 32,767 bytes instead of 4,000, so fewer values are replaced.
Troubleshooting
This error comes from how the destination table is defined in Oracle.
The table has a GENERATED ALWAYS identity column
A write to the Oracle table fails with this error:
the table has a GENERATED ALWAYS identity column, which can't take the source's values, alter it to GENERATED BY DEFAULT AS IDENTITY so Artie can write themCause: The Oracle destination table has a GENERATED ALWAYS identity column. Oracle rejects the source’s values for that column with ORA-32795 or ORA-32796.
Fix: In Oracle, alter the column to GENERATED BY DEFAULT AS IDENTITY.
Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.