<?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 DB2 JDBC Connection from Databricks cluster in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/85844#M37272</link>
    <description>&lt;P&gt;Has anyone successfully connected to a DB2 database on ZOS from a Databricks cluster using a JDBC connection?&lt;/P&gt;&lt;P&gt;I also need to specify an SSL certificate path and not sure if I need to use an init script on the cluster to do so.&lt;/P&gt;&lt;P&gt;Any examples would be very much appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 15:12:07 GMT</pubDate>
    <dc:creator>Karl</dc:creator>
    <dc:date>2024-08-28T15:12:07Z</dc:date>
    <item>
      <title>DB2 JDBC Connection from Databricks cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/85844#M37272</link>
      <description>&lt;P&gt;Has anyone successfully connected to a DB2 database on ZOS from a Databricks cluster using a JDBC connection?&lt;/P&gt;&lt;P&gt;I also need to specify an SSL certificate path and not sure if I need to use an init script on the cluster to do so.&lt;/P&gt;&lt;P&gt;Any examples would be very much appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 15:12:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/85844#M37272</guid>
      <dc:creator>Karl</dc:creator>
      <dc:date>2024-08-28T15:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 JDBC Connection from Databricks cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/108719#M43128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/77132"&gt;@Karl&lt;/a&gt;&amp;nbsp;, Greetings!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've outlined the steps below to connect from Databricks to IBM DB2 using JDBC:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 1: Obtain the DB2 JDBC Driver&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Visit the IBM website to download the appropriate JDBC driver for DB2 on z/OS.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Reference Document:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads" target="_blank" rel="noopener"&gt;IBM DB2 JDBC Driver Versions and Downloads&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 2: Attach JDBC Driver to Cluster&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;In the Databricks cluster, navigate to the "Libraries" tab.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the DBFS file path containing the JDBC driver JAR.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Install the JAR file to the cluster.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Step 3: Create a Notebook and Connect to IBM DB2&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Follow the provided documentation to establish the JDBC connection.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Execute the cell to establish the JDBC connection.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Once connected, execute SQL queries in subsequent cells to interact with the IBM DB2 database.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Reference Document:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.databricks.com/en/connect/external-systems/jdbc.html" target="_blank" rel="noopener"&gt;Databricks JDBC Guide&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JDBC URL:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;jdbc:&lt;/SPAN&gt;&lt;A href="https://databricks.lightning.force.com/lightning/r/Case/500Vp000004kNx1IAE/view" target="_blank" rel="noopener"&gt;db2://host-name:50001/BLUDB:sslConnection=true&lt;/A&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference Document:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.ibm.com/docs/en/db2woc?topic=programmatically-jdbc" target="_blank" rel="noopener"&gt;IBM DB2 for z/OS JDBC Connectivity Guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By following these steps, you can establish a JDBC connection from Databricks to your IBM DB2 database and execute SQL queries for data interaction.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Please let me know if this helps and leave a like if this information is useful, followups are appreciated.&lt;/P&gt;
&lt;P class="p1"&gt;Regards,&lt;/P&gt;
&lt;P class="p1"&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 08:03:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/108719#M43128</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2025-02-04T08:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: DB2 JDBC Connection from Databricks cluster</title>
      <link>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/127387#M47945</link>
      <description>&lt;P&gt;How do I install the db2 jar lib without the libraries tab? Is there a way to to it on init script ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 21:59:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/db2-jdbc-connection-from-databricks-cluster/m-p/127387#M47945</guid>
      <dc:creator>FRB1984</dc:creator>
      <dc:date>2025-08-04T21:59:14Z</dc:date>
    </item>
  </channel>
</rss>

