I need to use the ojdbc jar file which is in workspace>Driver inside my notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 09:17 PM
Hi, Currently I'm working on a project . Where I need to connect with Oracle database from databricks notebook. To do this I need Ojdbc jar file. But my client has installed that jar file in workspace>Driver and not in the cluster library. So to use this I need this jar file in my notebook . How can I install this jar file which is there in the workspace inside my notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 12:00 AM
do this in your notebook:
# Path to the ojdbc JAR file in the workspace
jar_path = "/Workspace/Driver/ojdbc8.jar"
# Install the JAR file from the workspace into the cluster
dbutils.library.install(jar_path)
# Restart the cluster to ensure the JAR file is loaded
dbutils.library.restartPython()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 12:48 AM
Hi thanks for your time . This is the error I'm geting now
'LibraryHandler' object has no attribute 'install'
Follwed the below steps

