<?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: How to use Oracle Wallet to connect from databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58647#M31228</link>
    <description>&lt;P&gt;Did you try any way using spark?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;spark.read \&lt;BR /&gt;.format("jdbc") \&lt;BR /&gt;.option("url", url_file) \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 02:29:56 GMT</pubDate>
    <dc:creator>heeiow</dc:creator>
    <dc:date>2024-01-30T02:29:56Z</dc:date>
    <item>
      <title>How to use Oracle Wallet to connect from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/55339#M30312</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to onnect Databricks to Oracle DAS / Autonomous Database using a cloud wallet, What are the typical steps and best practices to follow. Appreciate an example code snippet for connecting to the above data source&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 17:53:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/55339#M30312</guid>
      <dc:creator>RKNutalapati</dc:creator>
      <dc:date>2023-12-15T17:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Oracle Wallet to connect from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58633#M31220</link>
      <description>&lt;P&gt;Any update?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:32:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58633#M31220</guid>
      <dc:creator>heeiow</dc:creator>
      <dc:date>2024-01-29T21:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Oracle Wallet to connect from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58646#M31227</link>
      <description>&lt;P&gt;&amp;nbsp;Followed below steps to build the connection.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Unzip Oracle Wallet objects and copy them to a secure location accessible by your Databricks workspace.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Collaborate with your Network team and Oracle Autonomous Instance Admins to open firewalls between your workspace to connect and retreive data..&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Install&amp;nbsp;Python oracledb library. (&lt;A href="https://python-oracledb.readthedocs.io/en/latest/user_guide/installation.html#installation" target="_blank" rel="noopener"&gt;2. Installing python-oracledb — python-oracledb 2.0.1 documentation)&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Code Snippet&lt;/LI&gt;&lt;/OL&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;&lt;LI-CODE lang="python"&gt;import oracledb

con = oracledb.connect(user='&amp;lt;YOUR USER_NAME&amp;gt;',
                       password='&amp;lt;YOUR PASSWORD&amp;gt;',
                       dsn='&amp;lt;Network Service Name&amp;gt;',  #Refer tnsnames.ora   
                       config_dir='&amp;lt;WALLET FOLDER PATH&amp;gt;',
                       wallet_location="&amp;lt;WALLET FOLDER PATH&amp;gt;"
                       wallet_password="&amp;lt;PASSWORD&amp;gt;"
                     )
# Create a cursor
cursor = con.cursor()

# Execute a query
query = 'SELECT * FROM &amp;lt;Schema&amp;gt;.&amp;lt;TableName&amp;gt;'
cursor.execute(query)

# Fetch results
results = cursor.fetchall()
for row in results:
 print(row)

# Close cursor and connection
cursor.close()
con.close()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Other references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.oracle.com/opal/post/easy-way-to-connect-python-applications-to-oracle-autonomous-databases" target="_blank"&gt;https://blogs.oracle.com/opal/post/easy-way-to-connect-python-applications-to-oracle-autonomous-databases&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/@laurent.leturgez/how-to-bring-your-oracle-autonomous-database-data-into-the-lakehouse-427d01183300" target="_blank"&gt;https://medium.com/@laurent.leturgez/how-to-bring-your-oracle-autonomous-database-data-into-the-lakehouse-427d01183300 &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 02:10:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58646#M31227</guid>
      <dc:creator>RKNutalapati</dc:creator>
      <dc:date>2024-01-30T02:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Oracle Wallet to connect from databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58647#M31228</link>
      <description>&lt;P&gt;Did you try any way using spark?&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;spark.read \&lt;BR /&gt;.format("jdbc") \&lt;BR /&gt;.option("url", url_file) \&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 02:29:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-use-oracle-wallet-to-connect-from-databricks/m-p/58647#M31228</guid>
      <dc:creator>heeiow</dc:creator>
      <dc:date>2024-01-30T02:29:56Z</dc:date>
    </item>
  </channel>
</rss>

