<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>www.jugpadova.it: JDBC url for oracle RAC</title>
    <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Java User Group [Padova]</description>
    <item>
      <title>JDBC url for oracle RAC</title>
      <description>If you have to connect to oracle &lt;span class="caps"&gt;RAC&lt;/span&gt; (Real Application Cluster) using &lt;span class="caps"&gt;JDBC&lt;/span&gt; with thin driver, the classic url:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;jdbc:oracle:thin:@&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;HOST&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;:1521:&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;SID&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
doesn&amp;#8217;t work and you get the error &lt;span class="caps"&gt;ORA&lt;/span&gt; &amp;#8211; 12505.&lt;br&gt;
Instead, you must use this url:
&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)
(ADDRESS=(PROTOCOL=TCP)(HOST=host1) (PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=host2) (PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=service)))&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
If you have an oracle client, like &lt;a href="http://www.toadsoft.com"&gt;toad&lt;/a&gt;, check the tsnames.ora for the correct values of &lt;span class="caps"&gt;SERVICE&lt;/span&gt;_NAME and host.
</description>
      <pubDate>Wed, 11 Apr 2007 20:07:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d5eb2504-76e7-4d47-b81c-aaba5ed70fc9</guid>
      <author>Enrico Giurin</author>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac</link>
      <category>Tips &amp; Tricks</category>
      <category>jdbc</category>
      <category>oracle</category>
      <trackback:ping>http://www.jugpadova.it/articles/trackback/28454</trackback:ping>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Magno</title>
      <description>&lt;p&gt;\o/ It&amp;#8217;s incredible right!&lt;/p&gt;</description>
      <pubDate>Mon, 13 Dec 2010 13:33:12 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:a0bcaa5c-e194-4979-b50b-6cf450f647e4</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54381</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Kristyan</title>
      <description>&lt;p&gt;Gracias&amp;#8230;&lt;/p&gt;</description>
      <pubDate>Tue, 11 May 2010 12:05:30 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:dada92a5-4d37-4ac6-bae7-0c49c0f1c054</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54076</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Kalidass</title>
      <description>&lt;p&gt;Some oracle forum posts seems to suggest that there is some issue with DB, but this post really helped.&lt;/p&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:33:38 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b9236790-f0c3-4366-aed8-6149429bd8d8</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54047</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Sachin</title>
      <description>&lt;p&gt;Thanks a lot for the posting.. 
It helped us to get through&lt;/p&gt;</description>
      <pubDate>Tue, 07 Jul 2009 11:05:09 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:59caf33e-08d9-47bc-8f1b-f26334b5bff4</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54018</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by pmadrid</title>
      <description>&lt;p&gt;Use this url: jdbc:oracle:thin:@host1^host2:1521:service_name&lt;/p&gt;</description>
      <pubDate>Wed, 04 Mar 2009 15:41:31 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:eb8b5025-7a02-46cb-ae2a-ccdfc6267586</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54013</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Tú Phạm</title>
      <description>&lt;p&gt;Thanks alot, this artical help me much&lt;/p&gt;</description>
      <pubDate>Wed, 21 Jan 2009 20:48:55 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:89beda9c-29f4-47c0-a881-e0e71a4ef6c9</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-54009</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Sloey</title>
      <description>&lt;p&gt;Unfortunately for me even this didn&amp;#8217;t work. I&amp;#8217;m using a WebSphere 5 server with connection pools on a system with a 9i client connecting to a 10g RAC. 
When the client didn&amp;#8217;t work I tried using jdbc as above, however I still get :
Connection not available while invoking method queueRequest for resource jdbc/racserver.
I can test the connection successfully but can&amp;#8217;t create a pooled connection.
J2CA0020E: The Connection Pool Manager could not allocate a Managed Connection: com.ibm.websphere.ce.j2c.ConnectionWaitTimeoutException&lt;/p&gt;</description>
      <pubDate>Wed, 16 Jul 2008 16:15:54 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:81fc2967-4cba-4557-8f4f-05b7a7159077</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-53990</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by feedogator</title>
      <description>&lt;p&gt;Thanks Enrico , it is very helpful for me&lt;/p&gt;</description>
      <pubDate>Wed, 23 Apr 2008 14:14:23 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:ce36c45d-3851-47a7-8a68-6a2818606881</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-53974</link>
    </item>
    <item>
      <title>"JDBC url for oracle RAC" by Tel Aviv</title>
      <description>&lt;p&gt;I kept getting this error over and over. I was hoping that a simple copy paste will solve it, as I just got sooooo annoyed from trying to solve it in the last 2 hours&amp;#8230; and praise the lord it worked :)
Changing the URLs as u stated did the trick and the connection worked flawlessly.&lt;/p&gt;


	&lt;p&gt;THANKS A LOT !&lt;/p&gt;</description>
      <pubDate>Mon, 07 Apr 2008 09:32:10 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a22ec114-07b7-4eb8-8c16-c38ac10c11bf</guid>
      <link>http://www.jugpadova.it/articles/2007/04/11/jdbc-url-for-oracle-rac#comment-53968</link>
    </item>
  </channel>
</rss>

