ADBC Driver for Oracle Database ¶
Oracle developed the ADBC driver for Oracle Database with support from the ADBC Driver Foundry.Driver Version 0.8.0-beta.1 Release Date 2026-11-23 Tested With Oracle Database 23ai
Warning
This is documentation for a prerelease version.
This driver provides access to Oracle Database (commonly referred to as just “Oracle”).
Installation & Quickstart¶
The driver can be installed with dbc :
dbc install oracle --pre
To use the driver, provide the connection string as the uri parameter.
Connecting¶
To use the driver, provide a URI or connection string as the uri option. The driver supports URI format and DSN-style connection strings, but URIs are recommended.
from adbc_driver_manager import dbapi
dbapi.connect(
driver="oracle", db_kwargs={"uri": "oracle://user:password@localhost:1521/FREEPDB1"}
)
Note: The example above is for Python using the adbc-driver-manager package but the process will be similar for other driver managers. See adbc-quickstarts .
Connection String Format¶
Oracle URI syntax:
oracle://[user[:password]@]host[:port]/serviceName
Components:
scheme:oracle://(required)user/password: (optional) For standard database authentication.host: (required) The hostname or IP address of the Oracle database server.port: (optional) Defaults to 1521.serviceName: (required) The Service Name or SID, used by the Oracle Client to identify the target database instance.
Note
Reserved characters in URI elements must be URI-encoded. For example, @ becomes %40.
Examples:
oracle://dbhost.local/PROD_PDBoracle://user@10.0.0.5:1521/svcoracle://user:p%40ssword@host/service
Feature & Type Support¶
| Feature | Oracle Database | |
|---|---|---|
| Bind Parameters | ✅ | |
| Bulk Ingestion | Create | ✅ |
| Append | ❌ | |
| Create/Append | ❌ | |
| Replace | ❌ | |
| Temporary Table | ❌ | |
| Target Catalog | ❌ | |
| Target Schema | ✅ | |
| Non-nullable fields are marked NOT NULL | ✅ | |
| Catalog (GetObjects) | depth=catalogs | ✅ |
| depth=db_schemas | ✅ | |
| depth=tables | ✅ | |
| depth=columns (all) | ✅ | |
| Get Parameter Schema | ❌ | |
| Get Table Schema | ❌ | |
| Prepared Statements | ✅ | |
| Transactions | ✅ | |
Types¶
Database to Arrow¶
| Database Type | Oracle Database |
|---|---|
|
BINARY_DOUBLE |
double |
|
BINARY_FLOAT |
float |
|
BLOB |
large_binary [1] |
|
BOOLEAN |
bool [2] |
|
CHAR |
string [3] |
|
CLOB |
large_string [3] |
|
DATE |
timestamp[s] |
|
DOUBLE PRECISION |
double |
|
INT |
decimal128(38, 0) |
|
LONG |
large_string [3] |
|
LONG RAW |
large_binary |
|
NCLOB |
large_string [3] |
|
NUMBER |
int64 ⚠️ [9] |
|
NUMBER(p, 0) (p <= 18) |
int64 |
|
NUMBER(p, s), NUMBER(p), NUMBER(*, s) |
decimal128 |
|
RAW |
binary |
|
REAL |
double |
|
ROWID, UROWID |
string |
SMALLINT |
decimal128(38, 0) |
|
TIMESTAMP |
timestamp[ns] |
|
TIMESTAMP WITH LOCAL TIME ZONE |
timestamp[us] (with time zone) [7] |
|
TIMESTAMP WITH TIME ZONE |
timestamp[ns] (with time zone) |
|
TIMESTAMP(0) |
timestamp[s] |
|
TIMESTAMP(0) WITH TIME ZONE |
timestamp[s] (with time zone) |
|
TIMESTAMP(p) (1 <= p <= 3) |
timestamp[ms] |
|
TIMESTAMP(p) (1 <= p <= 3) WITH TIME ZONE |
timestamp[ms] (with time zone) |
|
TIMESTAMP(p) (4 <= p <= 6) |
timestamp[us] |
|
TIMESTAMP(p) (4 <= p <= 6) WITH TIME ZONE |
timestamp[us] (with time zone) |
|
TIMESTAMP(p) (7 <= p <= 9) |
timestamp[ns] |
|
TIMESTAMP(p) (7 <= p <= 9) WITH TIME ZONE |
timestamp[ns] (with time zone) |
|
VARCHAR2 |
string [3] |
Arrow to Database¶
| Arrow Type | Oracle Database Type | |
|---|---|---|
| Bind | Ingest | |
|
binary |
RAW |
BLOB |
|
binary_view |
RAW |
BLOB |
|
bool |
BOOLEAN |
|
|
date32[day] |
DATE |
|
|
decimal128 |
NUMBER(p, s) |
|
|
double |
BINARY_DOUBLE |
|
|
fixed_size_binary |
RAW |
BLOB |
|
float |
BINARY_FLOAT |
|
|
halffloat |
BINARY_FLOAT |
(NA/not tested) |
|
int16 |
NUMBER(38, 0) |
NUMBER(5, 0) |
|
int32 |
NUMBER(38, 0) |
NUMBER(10, 0) |
|
int64 |
(NA/not tested) |
NUMBER(19, 0) |
|
large_binary |
RAW |
BLOB |
|
large_string |
❌ |
❌ [3] |
|
month_day_nano_interval |
(NA/not tested) |
❌ [5] |
|
null |
(NA/not tested) |
NUMBER |
|
string |
❌ |
|
|
string_view |
RAW |
NVARCHAR2(2000) [3] |
|
timestamp[ms] |
TIMESTAMP(3) |
|
|
timestamp[ms] (with time zone) |
TIMESTAMP(3) WITH TIME ZONE |
|
|
timestamp[ns] |
TIMESTAMP(9) |
|
|
timestamp[ns] (with time zone) |
TIMESTAMP(9) WITH TIME ZONE |
|
|
timestamp[s] |
TIMESTAMP(0) |
|
|
timestamp[s] (with time zone) |
TIMESTAMP(0) WITH TIME ZONE |
|
|
timestamp[us] |
TIMESTAMP(6) |
|
|
timestamp[us] (with time zone) |
TIMESTAMP(6) WITH TIME ZONE |
|
Compatibility¶
This driver was tested on:
Oracle Database
23.5.0.24.7