<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException in Fabric platform</title>
    <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/4094902#M9002</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You should take a look at this post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Trying-to-connect-to-an-Oracle-database/m-p/3766418#M5225" target="_blank"&gt;Solved: Re: Trying to connect to an Oracle database - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 08:41:59 GMT</pubDate>
    <dc:creator>amolt</dc:creator>
    <dc:date>2024-08-12T08:41:59Z</dc:date>
    <item>
      <title>Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3737938#M4711</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am trying to connect to an Oracle database, but the oracle driver is not being found by Pyspark.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First I uploaded the oracle jdbc driver v.11 in the builtin folder:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;!java -version&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;openjdk version "11.0.22" 2024-01-16 LTS &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OpenJDK Runtime Environment Microsoft-8909545 (build 11.0.22+7-LTS) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OpenJDK 64-Bit Server VM Microsoft-8909545 (build 11.0.22+7-LTS, mixed mode, sharing)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from pyspark.sql import SparkSession

spark = SparkSession.builder \
    .appName("Iniciando com Spark") \
    .config("spark.driver.extraClassPath", "/builtin/ojdbc11.jar") \
    .getOrCreate()

properties = {
    'driver': 'oracle.jdbc.driver.OracleDriver',
    'url': "jdbc:oracle:thin://hostname:1521/db_name",
    'user': "username",
    'password': "password",
    'dbtable': '(select id from dt.users) as t'
}

df1 = spark.read.format('jdbc') \
    .option('driver', properties['driver']) \
    .option('url', properties['url']) \
    .option('user', properties['user']) \
    .option('password', properties['password']) \
    .option('dbtable', properties['dbtable']) \
     .load()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File &lt;SPAN class=""&gt;~/cluster-env/trident_env/lib/python3.10/site-packages/py4j/java_gateway.py:1322&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;JavaMember.__call__&lt;/SPAN&gt;&lt;SPAN class=""&gt;(self, *args)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1316&lt;/SPAN&gt; command &lt;SPAN class=""&gt;=&lt;/SPAN&gt; proto&lt;SPAN class=""&gt;.&lt;/SPAN&gt;CALL_COMMAND_NAME &lt;SPAN class=""&gt;+&lt;/SPAN&gt;\ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1317&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;command_header &lt;SPAN class=""&gt;+&lt;/SPAN&gt;\ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1318&lt;/SPAN&gt; args_command &lt;SPAN class=""&gt;+&lt;/SPAN&gt;\ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1319&lt;/SPAN&gt; proto&lt;SPAN class=""&gt;.&lt;/SPAN&gt;END_COMMAND_PART&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1321&lt;/SPAN&gt; answer &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;gateway_client&lt;SPAN class=""&gt;.&lt;/SPAN&gt;send_command(command) &lt;SPAN class=""&gt;-&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1322&lt;/SPAN&gt; return_value &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;get_return_value&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1323&lt;/SPAN&gt; &lt;SPAN class=""&gt;answer&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;gateway_client&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;target_id&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1325&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt; temp_arg &lt;SPAN class=""&gt;in&lt;/SPAN&gt; temp_args: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;1326&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;hasattr&lt;/SPAN&gt;(temp_arg, &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;_detach&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File &lt;SPAN class=""&gt;/opt/spark/python/lib/pyspark.zip/pyspark/errors/exceptions/captured.py:169&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;capture_sql_exception.&amp;lt;locals&amp;gt;.deco&lt;/SPAN&gt;&lt;SPAN class=""&gt;(*a, **kw)&lt;/SPAN&gt; &lt;SPAN class=""&gt;167&lt;/SPAN&gt; &lt;SPAN class=""&gt;def&lt;/SPAN&gt; &lt;SPAN class=""&gt;deco&lt;/SPAN&gt;(&lt;SPAN class=""&gt;*&lt;/SPAN&gt;a: Any, &lt;SPAN class=""&gt;*&lt;/SPAN&gt;&lt;SPAN class=""&gt;*&lt;/SPAN&gt;kw: Any) &lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt; Any: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;168&lt;/SPAN&gt; &lt;SPAN class=""&gt;try&lt;/SPAN&gt;: &lt;SPAN class=""&gt;--&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;169&lt;/SPAN&gt; &lt;SPAN class=""&gt;return&lt;/SPAN&gt; &lt;SPAN class=""&gt;f&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;*&lt;/SPAN&gt;&lt;SPAN class=""&gt;a&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;*&lt;/SPAN&gt;&lt;SPAN class=""&gt;*&lt;/SPAN&gt;&lt;SPAN class=""&gt;kw&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;170&lt;/SPAN&gt; &lt;SPAN class=""&gt;except&lt;/SPAN&gt; Py4JJavaError &lt;SPAN class=""&gt;as&lt;/SPAN&gt; e: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;171&lt;/SPAN&gt; converted &lt;SPAN class=""&gt;=&lt;/SPAN&gt; convert_exception(e&lt;SPAN class=""&gt;.&lt;/SPAN&gt;java_exception) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File &lt;SPAN class=""&gt;~/cluster-env/trident_env/lib/python3.10/site-packages/py4j/protocol.py:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;326&lt;/SPAN&gt;, in &lt;SPAN class=""&gt;get_return_value&lt;/SPAN&gt;&lt;SPAN class=""&gt;(answer, gateway_client, target_id, name)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;324&lt;/SPAN&gt; value &lt;SPAN class=""&gt;=&lt;/SPAN&gt; OUTPUT_CONVERTER[&lt;SPAN class=""&gt;type&lt;/SPAN&gt;](answer[&lt;SPAN class=""&gt;2&lt;/SPAN&gt;:], gateway_client) &lt;SPAN class=""&gt;325&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; answer[&lt;SPAN class=""&gt;1&lt;/SPAN&gt;] &lt;SPAN class=""&gt;==&lt;/SPAN&gt; REFERENCE_TYPE: &lt;SPAN class=""&gt;--&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;326&lt;/SPAN&gt; &lt;SPAN class=""&gt;raise&lt;/SPAN&gt; Py4JJavaError( &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;327&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;328&lt;/SPAN&gt; &lt;SPAN class=""&gt;format&lt;/SPAN&gt;(target_id, &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;, name), value) &lt;SPAN class=""&gt;329&lt;/SPAN&gt; &lt;SPAN class=""&gt;else&lt;/SPAN&gt;: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;330&lt;/SPAN&gt; &lt;SPAN class=""&gt;raise&lt;/SPAN&gt; Py4JError( &lt;SPAN class=""&gt;331&lt;/SPAN&gt; &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;An error occurred while calling &lt;/SPAN&gt;&lt;SPAN class=""&gt;{0}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{1}&lt;/SPAN&gt;&lt;SPAN class=""&gt;{2}&lt;/SPAN&gt;&lt;SPAN class=""&gt;. Trace:&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;{3}&lt;/SPAN&gt;&lt;SPAN class=""&gt;\n&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;332&lt;/SPAN&gt; &lt;SPAN class=""&gt;format&lt;/SPAN&gt;(target_id, &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;, name, value)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o4395.load. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at org.apache.spark.sql.execution.datasources.jdbc.DriverRegistry$.register(DriverRegistry.scala:46)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.jdbc.JDBCOptions.$anonfun$driverClass$1(JDBCOptions.scala:103) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.jdbc.JDBCOptions.$anonfun$driverClass$1$adapted(JDBCOptions.scala:103) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at scala.Option.foreach(Option.scala:407) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.jdbc.JDBCOptions.&amp;lt;init&amp;gt;(JDBCOptions.scala:103) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.jdbc.JDBCOptions.&amp;lt;init&amp;gt;(JDBCOptions.scala:41) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.jdbc.JdbcRelationProvider.createRelation(JdbcRelationProvider.scala:34) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:346)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.DataFrameReader.loadV1Source(DataFrameReader.scala:236) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.DataFrameReader.$anonfun$load$2(DataFrameReader.scala:219) at scala.Option.getOrElse(Option.scala:189) at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:219) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:174)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:374) at py4j.Gateway.invoke(Gateway.java:282) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:238) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at java.base/java.lang.Thread.run(Thread.java:829)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also tried to use this code below, but the error persists:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;spark = SparkSession.builder \
    .appName("Iniciando com Spark") \
    .config("spark.jars", "/builtin/ojdbc11.jar") \
    .getOrCreate()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What is wrong?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 06:44:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3737938#M4711</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-03T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3739907#M4727</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;At this time, we are reaching out to the internal team to get some help on this .&lt;BR /&gt;We will update you once we hear back from them.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:52:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3739907#M4727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-04T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3740287#M4732</link>
      <description>&lt;P&gt;Ok, I'll wait for your next reply.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 14:07:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3740287#M4732</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-04T14:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3748637#M4870</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Apologies for the delay in reply from our side.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please try to load the jar via the following magic:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# Load jar directly to the Scala interpreter&lt;/P&gt;
&lt;P&gt;%load_new_custom_jar {mssparkutils.nbResPath}/builtin/Animation1.jar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Starting a new SparkSession doesn't work here. You can also drag and drop a jar file from notebook filesystem. Here's the doc: &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/how-to-use-notebook#notebook-resources" target="_blank"&gt;How to use notebooks - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:04:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3748637#M4870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-07T11:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3749905#M4896</link>
      <description>&lt;P&gt;Thanks for the suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try them out and let you know if they work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 23:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3749905#M4896</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-07T23:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3752092#M4957</link>
      <description>&lt;P&gt;I tested the code using the suggested syntax:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%load_new_custom_jar {mssparkutils.nbResPath}/builtin/ojdbc11.jar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However the error persists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o4395.load.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose this could be related to JDBC, JDK and Oracle interop versions.&lt;/P&gt;&lt;P&gt;I'm trying to access an Oracle 11.2.0.4 database, but the JDK defined in Fabric is JDK 11:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;openjdk version "11.0.22" 2024-01-16 LTS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OpenJDK Runtime Environment Microsoft-8909545 (build 11.0.22+7-LTS)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OpenJDK 64-Bit Server VM Microsoft-8909545 (build 11.0.22+7-LTS, mixed mode, sharing)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that to access Oracle DB 11.2, the correct JDK to use is not JDK11, but JDK 6, 7 or 8, according to the Oracle website:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to downgrade Fabric JDK11 to JDK8, for example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 20:56:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3752092#M4957</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-08T20:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3757627#M5055</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;At this time, we are reaching out to the internal team to get some help on this .&lt;BR /&gt;We will update you once we hear back from them.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 09:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3757627#M5055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-12T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3759729#M5093</link>
      <description>&lt;P&gt;Hi, all right.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 06:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3759729#M5093</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-13T06:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3759736#M5094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We got an information from internal team that&amp;nbsp;we cannot downgrade the JDK version.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 08:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3759736#M5094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-14T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3762856#M5142</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if we answered your query.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 08:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3762856#M5142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-14T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3765206#M5200</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if we answered your query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 06:04:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3765206#M5200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-15T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3767730#M5236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;, could you ask the internal team if there is a solution in Fabric Spark to connect to an Oracle 11 database using JDBC driver?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or do I need to update the Oracle database to a later version compatible with JDK11, which is the default JDK version installed on Fabric?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 23:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3767730#M5236</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-15T23:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3770331#M5255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time, we are reaching out to the internal team to get some help on this .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We will update you once we hear back from them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 07:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3770331#M5255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-18T07:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3773279#M5288</link>
      <description>&lt;P&gt;Ok!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 04:15:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3773279#M5288</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-03-19T04:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3789124#M5540</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Apologies for the issue you have been facing.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The best course of action is to open a support ticket.&lt;/P&gt;
&lt;P&gt;Please go ahead and raise a support ticket to reach our support team:&amp;nbsp;&lt;A href="https://support.fabric.microsoft.com/en-IN/support/" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After creating a Support ticket please provide the ticket number as it would help us to track for more information.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 10:43:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3789124#M5540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-25T10:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3801384#M5730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I opened a ticket and the team is already looking at this issue.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 05:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/3801384#M5730</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-04-01T05:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/4094902#M9002</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383869" data-lia-user-login="Rodrivieiras" class="lia-mention lia-mention-user"&gt;Rodrivieiras&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;You should take a look at this post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/Trying-to-connect-to-an-Oracle-database/m-p/3766418#M5225" target="_blank"&gt;Solved: Re: Trying to connect to an Oracle database - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 08:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/4094902#M9002</guid>
      <dc:creator>amolt</dc:creator>
      <dc:date>2024-08-12T08:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric notebook - Oracle connection error: java.lang.ClassNotFoundException</title>
      <link>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/4101185#M9059</link>
      <description>&lt;P&gt;Thanks for sharing&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="575509" data-lia-user-login="amolt" class="lia-mention lia-mention-user"&gt;amolt&lt;/a&gt;. I replied there.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 00:57:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Fabric-platform/Fabric-notebook-Oracle-connection-error-java-lang/m-p/4101185#M9059</guid>
      <dc:creator>Rodrivieiras</dc:creator>
      <dc:date>2024-08-15T00:57:55Z</dc:date>
    </item>
  </channel>
</rss>

