<?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: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143927#M12608</link>
    <description>&lt;P&gt;I struggled with this myself just recently, the main piece is selecting the correct connection type, as you will see below.  For SID use 'oracle', if you are using Service name use 'oracle_service'.&lt;/P&gt;

&lt;P&gt;If you are using a SID follow this format:&lt;/P&gt;

&lt;P&gt;[SID Example]&lt;BR /&gt;
connection_type = oracle&lt;BR /&gt;
database = sid&lt;BR /&gt;
host = hostname&lt;BR /&gt;
jdbcUseSSL = 0&lt;BR /&gt;
port = 1521&lt;/P&gt;

&lt;P&gt;If you are using a Service Name follow this format:&lt;BR /&gt;
[Service Name Example]&lt;BR /&gt;
connection_type = oracle_service&lt;BR /&gt;
database = service_name&lt;BR /&gt;
host = hostname or ip address&lt;BR /&gt;
jdbcUseSSL = 0&lt;BR /&gt;
port = 1563&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:41:03 GMT</pubDate>
    <dc:creator>icyfeverr</dc:creator>
    <dc:date>2020-09-29T07:41:03Z</dc:date>
    <item>
      <title>DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143922#M12603</link>
      <description>&lt;P&gt;I am trying to connect the oracle db with the service name, but the following warning pops up:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Validating connection with URL [jdbc:oracle:thin:@{host}:1521:{service_name}] failed, please verify that the connection is configured correctly.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;May you advise what is the right configuration for using Service name instead of SID?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 02:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143922#M12603</guid>
      <dc:creator>karabsze</dc:creator>
      <dc:date>2015-04-15T02:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143923#M12604</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Thin-style Service Name Syntax

Thin-style service names are supported only by the JDBC Thin driver. The syntax is:

@//host_name:port_number/service_name

For example:

jdbc:oracle:thin:scott/tiger@//myhost:1521/myservicename
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I would try:&lt;/P&gt;

&lt;P&gt;jdbc:oracle:thin:@//oracle.hostserver2.mydomain.ca:1522/ABCD&lt;BR /&gt;
or &lt;BR /&gt;
[jdbc:oracle:thin:@//{your_host}:1521/{your_service_name}]&lt;/P&gt;

&lt;P&gt;for more information see this link:&lt;BR /&gt;
&lt;A href="http://docs.oracle.com/cd/B28359_01/java.111/b31224/urls.htm#BEIDHCBA" target="_blank"&gt;http://docs.oracle.com/cd/B28359_01/java.111/b31224/urls.htm#BEIDHCBA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:28:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143923#M12604</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-28T19:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143924#M12605</link>
      <description>&lt;P&gt;Hi fdi,&lt;BR /&gt;
Thanks for you reply.&lt;BR /&gt;
I know about the thin style but I am not sure how I can setup it in DBConnect V2&lt;/P&gt;

&lt;H1&gt;In the db_connections.conf&lt;/H1&gt;

&lt;P&gt;[TEST_CONNECTION]&lt;BR /&gt;
connection_type = oracle&lt;BR /&gt;
database = test.services&lt;BR /&gt;
host = host.com&lt;BR /&gt;
identity = test_user&lt;BR /&gt;
port = 1521&lt;/P&gt;

&lt;H1&gt;readonly = 1&lt;/H1&gt;

&lt;P&gt;The connection string is generated by above configuration and the ":" inside &lt;BR /&gt;
jdbc:oracle:thin:@{host}&lt;STRONG&gt;:&lt;/STRONG&gt;1521*&lt;EM&gt;:&lt;/EM&gt;*{service_name}&lt;BR /&gt;
cannot be skipped....i have no way to construct the string like below format&lt;/P&gt;

&lt;P&gt;jdbc:oracle:thin:@//oracle.hostserver2.mydomain.ca:1522/ABCD&lt;BR /&gt;
or&lt;BR /&gt;
[jdbc:oracle:thin:@//{your_host}:1521/{your_service_name}]&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143924#M12605</guid>
      <dc:creator>karabsze</dc:creator>
      <dc:date>2020-09-28T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143925#M12606</link>
      <description>&lt;P&gt;The connect string format is defined in the DBX v2 "db_connection_types.conf" file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[oracle]
displayName = Oracle
serviceClass = com.splunk.dbx2.OracleJDBC
jdbcUrlFormat = jdbc:oracle:thin:@//&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;
jdbcDriverClass = oracle.jdbc.OracleDriver
database = XE
testQuery = SELECT 1 FROM DUAL
port = 1521
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure you copy the file from the default folder to the local folder before making changes. See &lt;A href="http://docs.splunk.com/Documentation/DBX/2.0.0/DeployDBX/databasespec" target="_blank"&gt;the documentation&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143925#M12606</guid>
      <dc:creator>pmdba</dc:creator>
      <dc:date>2020-09-28T19:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143926#M12607</link>
      <description>&lt;P&gt;I am also having this issue. Can someone confirm that Oracle DB 12.1.0.2.0 is supported with this app? The database matrix on the user documentation only lists that Oracle DB 11g works with JDBC driver ojdbc6. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 14:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143926#M12607</guid>
      <dc:creator>mmensch</dc:creator>
      <dc:date>2015-04-16T14:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143927#M12608</link>
      <description>&lt;P&gt;I struggled with this myself just recently, the main piece is selecting the correct connection type, as you will see below.  For SID use 'oracle', if you are using Service name use 'oracle_service'.&lt;/P&gt;

&lt;P&gt;If you are using a SID follow this format:&lt;/P&gt;

&lt;P&gt;[SID Example]&lt;BR /&gt;
connection_type = oracle&lt;BR /&gt;
database = sid&lt;BR /&gt;
host = hostname&lt;BR /&gt;
jdbcUseSSL = 0&lt;BR /&gt;
port = 1521&lt;/P&gt;

&lt;P&gt;If you are using a Service Name follow this format:&lt;BR /&gt;
[Service Name Example]&lt;BR /&gt;
connection_type = oracle_service&lt;BR /&gt;
database = service_name&lt;BR /&gt;
host = hostname or ip address&lt;BR /&gt;
jdbcUseSSL = 0&lt;BR /&gt;
port = 1563&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/143927#M12608</guid>
      <dc:creator>icyfeverr</dc:creator>
      <dc:date>2020-09-29T07:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: DB Connect 2: How to configure a connection to an Oracle database with the service name instead of SID?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/584790#M76084</link>
      <description>&lt;P&gt;Thanks! this work for me totally!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/DB-Connect-2-How-to-configure-a-connection-to-an-Oracle-database/m-p/584790#M76084</guid>
      <dc:creator>MadiAvalos</dc:creator>
      <dc:date>2022-02-11T18:12:58Z</dc:date>
    </item>
  </channel>
</rss>

