/oracle-ai-data-platform-workbench-spark-connectors:aidp-jdbc-customfrom oracle-ai-data-platform-workbench-spark-connectors
Connect to ANY database that has a JDBC driver from an AIDP notebook using Spark's native `format("jdbc")`. Use when the user mentions a DB without a dedicated AIDP connector — SQLite, ClickHouse, DuckDB, generic JDBC URL — or wants to use a custom JDBC driver they uploaded. Auth is driver-specific.
Ships in oracle-ai-data-platform-workbench-spark-connectors. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
aidp-jdbc-custom — Generic JDBC escape hatchThe catch-all skill for any DB with a JDBC driver. Skips the AIDP aidataplatform format and uses native Spark JDBC. Useful for DBs like SQLite, ClickHouse, DuckDB, IBM DB2, SAP HANA, or any niche driver the user has uploaded.
aidp-* skill in this plugin..jar JDBC driver they want to use.aidataplatform format gives the connector pushdown and connection pooling that this skill doesn't.aidp-snowflake. The Spark connector is much better than raw JDBC.The plugin ships a helper that loads a JDBC JAR into a running Spark session via Java's URLClassLoader + DriverManager. It works without admin access and without restarting the kernel.
import os
from oracle_ai_data_platform_connectors.jdbc import (
add_jdbc_jar_at_runtime, download_jdbc_jar,
)
# Download once (Maven Central is reachable from AIDP clusters)
jar = download_jdbc_jar(
maven_url="https://repo1.maven.org/maven2/org/xerial/sqlite-jdbc/3.46.0.0/sqlite-jdbc-3.46.0.0.jar",
target_path="/tmp/sqlite-jdbc-3.46.0.0.jar",
)
# Register with the running Spark session
add_jdbc_jar_at_runtime(spark, jar_path=jar, driver_class="org.sqlite.JDBC")
# Now standard Spark JDBC works
df = (spark.read.format("jdbc")
.option("url", "jdbc:sqlite::memory:")
.option("driver", "org.sqlite.JDBC")
.option("dbtable", "(SELECT 1 AS c1, 2 AS c2, 3 AS c3)")
.option("fetchsize","1000")
.load())
df.show()
The helper is implemented at scripts/oracle_ai_data_platform_connectors/jdbc/runtime_load.py — internally it builds a URLClassLoader rooted at the existing thread context loader, calls DriverManager.registerDriver, and sets the JVM thread context class loader so Spark's Utils.classForName resolves the driver class.
For frequently-used drivers, upload the JAR to a Volume and attach via the cluster Library tab. This persists across cluster restarts. Requires cluster admin access. After attach + restart:
# Driver class is now on the system classpath; no runtime trick needed.
df = (spark.read.format("jdbc")
.option("url", JDBC_URL).option("driver", DRIVER)
.option("dbtable", TABLE).load())
df = (spark.read.format("jdbc")
.option("url", "jdbc:<vendor>://<host>:<port>/<db>")
.option("driver", "<full.class.Name>")
.option("user", os.environ["CUST_DB_USER"])
.option("password", os.environ["CUST_DB_PASSWORD"])
.option("dbtable", os.environ["CUST_DB_TABLE"])
.option("fetchsize", "10000")
.load())
| DB | Driver class | URL prefix |
|---|---|---|
| SQLite | org.sqlite.JDBC | jdbc:sqlite: |
| ClickHouse | com.clickhouse.jdbc.ClickHouseDriver | jdbc:clickhouse:// |
| DuckDB | org.duckdb.DuckDBDriver | jdbc:duckdb: |
| IBM DB2 | com.ibm.db2.jcc.DB2Driver | jdbc:db2:// |
| SAP HANA | com.sap.db.jdbc.Driver | jdbc:sap:// |
| Vertica | com.vertica.jdbc.Driver | jdbc:vertica:// |
dbtable accepts a subquery — wrap in parens to filter at the source: option("dbtable", "(SELECT * FROM big_table WHERE date > '2025-01-01') t").fetchsize=10000 is a good default; smaller values create driver chatter, larger values risk OOM on the executor.option("partitionColumn", ...).option("lowerBound", ...).option("upperBound", ...).option("numPartitions", N). Without these the read is single-partition and serial.ClassNotFoundException: <driver class>. Re-check that the JAR is attached to the running cluster (not just uploaded to a Volume).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ahmedawan-oracle/claude-code-plugins --plugin oracle-ai-data-platform-workbench-spark-connectorsNone: SKILL.md is the whole skill.
25 skills in this plugin
/aidp-alh`aidp-alh` — Oracle AI Lakehouse / ADW / ATP via Spark JDBCConnect from an AIDP notebook to Oracle AI Lakehouse (ALH), Autonomous Data Warehouse (ADW), or Autonomous Transaction Processing (ATP) via Spark JDBC. Use when the user mentions ALH, AI Lakehouse, ADW, ATP, Autonomous Database, or wants to query a 26ai-backed Oracle Autonomous DB from Spark. Covers wallet (mTLS), IAM DB-Token (with on-executor refresh for long jobs), and API Key auth paths./aidp-aws-s3`aidp-aws-s3` — AWS S3 via the S3A connectorRead and write AWS S3 (`s3a://`) from an AIDP notebook. Use when the user mentions S3, AWS S3 bucket, s3a, or has AWS access keys. Auth is access key + secret key via the Hadoop S3A connector. boto3 is also available for non-Spark management operations (list, copy)./aidp-azure-adls`aidp-azure-adls` — Azure ADLS Gen2 via OAuth client-credentialsRead and write Azure Data Lake Storage Gen2 (`abfss://`) from an AIDP notebook. Use when the user mentions ADLS, Azure Data Lake, abfss, or wants to ingest from a multi-cloud Azure source. Auth is OAuth client-credentials (Service Principal client_id + secret + tenant).Other plugins' skills for the same job