Preview of a new ADBC driver for Oracle Database¶
A beta release of a new ADBC driver for Oracle Database is available through dbc . Install version 0.8.0-beta.1 with:
$ dbc install --pre oracle
The driver supports SQL query execution, bulk ingestion, bind parameters, table schema discovery, prepared statements, and transactions. See the ADBC Driver for Oracle Database documentation. This is a preview release, and more features are actively being developed, so stay tuned.
The driver was developed by Oracle with support from the ADBC Driver Foundry. It is implemented in Rust, and is based on Oracle’s rust-oracledb crate.
To get started, provide a connection URI with an oracle:// scheme:
oracle://user:password@localhost:1521/FREEPDB1
The driver can then be used like any other driver. For example, load it in Python with adbc-driver-manager, replacing the database name and region with your own:
from adbc_driver_manager import dbapi
with (
dbapi.connect(
driver="oracle",
db_kwargs={
"uri": "oracle://user:password@localhost:1521/FREEPDB1",
},
) as con,
con.cursor() as cursor,
):
cursor.execute("SELECT 42")
table = cursor.fetch_arrow_table()
Bug reports and feature requests are welcome through GitHub Issues in the oracle repository in the ADBC Driver Foundry. You can also start a Discussion on GitHub or join the Columnar Community Slack .
Note that Columnar previously provided a driver for Oracle Database, built on the Oracle Instant Client, in the private driver registry (requiring a license). For the convenience of existing users, that driver has been made available from the dbc CDN, sans license requirement, as version 0.7.1. It will no longer receive updates, and it is recommended to migrate to/start with the official driver as soon as possible. We are actively working on full feature parity in the new driver. Unlike the legacy driver, the official driver is fully standalone and does not require the Oracle Instant Client.