<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Neha Prabhu on Medium]]></title>
        <description><![CDATA[Stories by Neha Prabhu on Medium]]></description>
        <link>https://medium.com/@neha_prabhu?source=rss-2c4bc0fab0f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7GIwksbokPSRxMSy6YhOPg.jpeg</url>
            <title>Stories by Neha Prabhu on Medium</title>
            <link>https://medium.com/@neha_prabhu?source=rss-2c4bc0fab0f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 23:52:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neha_prabhu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SQL to NoSQL : Data Migration Best Practices & Strategy]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@neha_prabhu/sql-to-nosql-data-migration-best-practices-strategy-cee9ae095b48?source=rss-2c4bc0fab0f8------2"><img src="https://cdn-images-1.medium.com/max/956/1*3eVliRVPGwYiJLeqqUu0TQ.png" width="956"></a></p><p class="medium-feed-snippet">Migrating from SQL databases to NoSQL can often seem complex and overwhelming. However, it doesn&#x2019;t have to be! With the right approach and&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@neha_prabhu/sql-to-nosql-data-migration-best-practices-strategy-cee9ae095b48?source=rss-2c4bc0fab0f8------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@neha_prabhu/sql-to-nosql-data-migration-best-practices-strategy-cee9ae095b48?source=rss-2c4bc0fab0f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cee9ae095b48</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[data-migration]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Neha Prabhu]]></dc:creator>
            <pubDate>Wed, 11 Dec 2024 18:54:21 GMT</pubDate>
            <atom:updated>2024-12-11T18:54:21.178Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Connecting to your Oracle Database using Databricks!]]></title>
            <link>https://medium.com/@neha_prabhu/connecting-to-your-oracle-database-using-databricks-c18b5d646495?source=rss-2c4bc0fab0f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c18b5d646495</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[connectivity]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[apache-spark]]></category>
            <dc:creator><![CDATA[Neha Prabhu]]></dc:creator>
            <pubDate>Sat, 15 Jun 2024 21:19:19 GMT</pubDate>
            <atom:updated>2024-06-15T21:19:19.613Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this article, we’ll be covering the steps involved in connecting to an Oracle Database through Databricks using Apache Spark &amp; Scala.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pyr3WPCG1cz7Owq06X5TMw.png" /></figure><h3><strong>Set up your Databricks Notebook</strong></h3><p>To connect to an Oracle instance, we need to install Oracle’s JDBC Driver into our Databricks Notebook — you can find the driver as a JAR file on their <a href="https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html">website</a>.</p><p>Now, we can follow these steps to get the ojdbc JAR file up and running on our Databricks cluster!</p><ol><li>Go to the <strong>Clusters</strong> page in the Databricks workspace.</li><li>Click on the cluster you want to attach the library to.</li><li>Click the <strong>Libraries</strong> tab.</li><li>Click the <strong>Install New</strong> button.</li><li>Select <strong>Upload</strong> as the library source.</li><li>Choose the JDBC driver JAR file (ojdbc8, or any version you prefer) from your local file system.</li><li>Click the <strong>Install</strong> button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDvcps1z1D74kkBGnyO9og.png" /><figcaption>ojdbc8.jar installed inside Libraries within our cluster</figcaption></figure><p><em>Note : The driver version didn’t seem to matter for me. All the drivers were compatible with my notebook and I chose to go with ojdbc8. I also installed the mongo-spark connector here for later use (you can ignore this!)</em></p><p>You may have to restart your cluster to get the driver working.</p><h3><strong>Let’s get coding in our Databricks Notebook!</strong></h3><p>We can use Apache Spark functions to help us connect to an Oracle Database. Specifically, the Spark read function should help us!</p><p>You may not need these import statements, but depending on what you plan to do with your notebook after connecting to the Oracle Database, you might want to include them!</p><pre>import java.util.Properties<br>import java.sql.DriverManager<br>import org.apache.spark.sql.{DataFrame, SparkSession}<br>import org.apache.spark.sql.types._</pre><pre>val oracleDF = spark.read<br>                  .format(&quot;jdbc&quot;)<br>                  .option(&quot;url&quot;,&quot;jdbc:oracle:thin:@//&lt;hostname&gt;:&lt;port&gt;/&lt;service_name&gt;&quot;)<br>                  .option(&quot;dbtable&quot;,&quot;&lt;table_name&gt;&quot;)<br>                  .option(&quot;user&quot;,&quot;&lt;username&gt;&quot;)<br>                  .option(&quot;password&quot;,&quot;&lt;password&gt;&quot;)<br>                  .option(&quot;driver&quot;,&quot;oracle.jdbc.driver.OracleDriver&quot;)<br>                  .load()<br><br>display(oracleDF)</pre><p>The JDBC connection URL specifies the location and type of the database that you want to connect to. In the example above, the URL is for connecting to an Oracle database, and the individual components of the URL are as follows:</p><ul><li>jdbc: This specifies that the protocol being used is the Java Database Connectivity (JDBC) API.</li><li>oracle: This is the name of the database driver that is being used to connect to the Oracle database.</li><li>thin: This is the type of Oracle JDBC driver that is being used. The thin driver is a pure Java driver that does not require any Oracle software to be installed on the client machine.</li><li>&lt;@//&lt;hostname&gt;:&lt;port&gt;&gt;For example, the server might be located at 168.20.169.140 and listening on port 1521.</li><li>&lt;service_name&gt;: This is the name of the Oracle database that you want to connect to.</li></ul><p>It’s that simple! But, sometimes we may run into issues — let’s review some typical ones we might see.</p><h3><strong>Common Issues We Might Face!</strong></h3><h4><em>SQLRecoverableException: IO Error: The network adapter could not establish the connection, Caused by: NetException, Caused by: UnknownHostException</em></h4><p>I received this issue a few times while connecting to my Oracle instance, but not to worry — here are a few ways we could resolve this.</p><p>This issue typically means that there&#39;s some form of a <em>network issue</em> and the client cannot connect to the Oracle Database. Some common causes for this error include:</p><ol><li><strong>Incorrect hostname or port number</strong> - Check to see if the hostname and port number used to connect to the database are accurate.</li><li><strong>VPN connectivity issue</strong> — Ensure that the VPN connection is established properly and that you’re able to access the database through the VPN setup.</li><li><strong>Firewall restrictions</strong> - Check to see if the firewall is blocking your connection. If so, you could potentially add an exception for the database port or temporarily disable the firewall and re-test the connection.</li><li><strong>Oracle Database is down</strong> - Verify if your Oracle Database is running and accessible.</li><li><strong>Incorrect username or password</strong> - Check to make sure that the username and password used to connect to the database are correct.</li></ol><h4>java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1</h4><p>This issue can be resolved by adding a simple statement in your spark read function’s options.</p><pre>.option(&quot;oracle.jdbc.timezoneAsRegion&quot;, &quot;false&quot;)</pre><p>Now we can successfully connect to our Oracle Database and use Spark to query our data!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c18b5d646495" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>