<?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>question Re: How to use JDBC connection string (Oracle TNSNAMES) for connecting to Hive Metastore DB (Oracle) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-JDBC-connection-string-Oracle-TNSNAMES-for/m-p/62088#M71376</link>
    <description>&lt;P&gt;I got a very helpful answer from the Cloudera Support and it did the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look for "Hive Metastore Server Advanced Configuration Snippet (Safety Valve) for hive-site.xml" in the Hive configuration, press (+) [Plus button] and specify the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the "Name" field: javax.jdo.option.ConnectionURL&lt;/P&gt;&lt;P&gt;in the "Value" field: jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(FAILOVER=on)(CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle-server1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=oracle-server2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ora_service_name.ora_domain_name)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: You will have to change the connection string correspondingly - I just showed an example of the failover-able (primary + standby DBs) Oracle TNS connection string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same trick can be used for "Sentry", but the corresponding parameter name is: "sentry.store.jdbc.url"&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 10:39:51 GMT</pubDate>
    <dc:creator>MaxU</dc:creator>
    <dc:date>2017-11-22T10:39:51Z</dc:date>
    <item>
      <title>How to use JDBC connection string (Oracle TNSNAMES) for connecting to Hive Metastore DB (Oracle)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-JDBC-connection-string-Oracle-TNSNAMES-for/m-p/61878#M71375</link>
      <description>&lt;P&gt;Hello Cloudera Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a primary and a standby Oracle clusters where our Hive Metastore DB is located.&lt;/P&gt;&lt;P&gt;I'd like to be able to specify a FAILOVER JDBC connection string which might access both primary and standby Oracle cluster.&lt;/P&gt;&lt;P&gt;I don't want to change manually values for "Hive Metastore Database Host" and "Hive Metastore Database Name" everytime when a primary and a standby Oracle DB's are switched over (their roles will be swapped).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i specify a JDBC connection string for the "Hive Metastore Database"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our CDH version: 5.11.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-JDBC-connection-string-Oracle-TNSNAMES-for/m-p/61878#M71375</guid>
      <dc:creator>MaxU</dc:creator>
      <dc:date>2022-09-16T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JDBC connection string (Oracle TNSNAMES) for connecting to Hive Metastore DB (Oracle)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-JDBC-connection-string-Oracle-TNSNAMES-for/m-p/62088#M71376</link>
      <description>&lt;P&gt;I got a very helpful answer from the Cloudera Support and it did the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look for "Hive Metastore Server Advanced Configuration Snippet (Safety Valve) for hive-site.xml" in the Hive configuration, press (+) [Plus button] and specify the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the "Name" field: javax.jdo.option.ConnectionURL&lt;/P&gt;&lt;P&gt;in the "Value" field: jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(FAILOVER=on)(CONNECT_TIMEOUT=3)(RETRY_COUNT=3)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle-server1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=oracle-server2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ora_service_name.ora_domain_name)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: You will have to change the connection string correspondingly - I just showed an example of the failover-able (primary + standby DBs) Oracle TNS connection string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same trick can be used for "Sentry", but the corresponding parameter name is: "sentry.store.jdbc.url"&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 10:39:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-JDBC-connection-string-Oracle-TNSNAMES-for/m-p/62088#M71376</guid>
      <dc:creator>MaxU</dc:creator>
      <dc:date>2017-11-22T10:39:51Z</dc:date>
    </item>
  </channel>
</rss>

