aahhh...the infamous *thin* driver

On 3/26/07, Jason Purcell (J) <[EMAIL PROTECTED]> wrote:
>
>
>
> Solution:
>
> Connection conn =
> DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION
> =(ENABLE=BROKEN)(LOAD_BALANCE = yes)(ADDRESS=(PROTOCOL=TCP)(HOST =
> database01)(PORT = 1530))      (ADDRESS = (PROTOCOL = TCP)(HOST =
> database02)(PORT = 1530))(ADDRESS = (PROTOCOL = TCP)(HOST =
> database03)(PORT = 1530))(ADDRESS = (PROTOCOL = TCP)(HOST =
> database04)(PORT = 1530)) (CONNECT_DATA =(SERVICE_NAME =
> servname)(FAILOVER_MODE =(TYPE=session)(METHOD=basic)(RETRIES=10)
> (DELAY=10))))", "username","password");
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jason Purcell (J)
> Sent: 20 March 2007 14:38
> To: [email protected]
> Subject: [CTJUG Forum] Accessing a cluster from JDBC
>
>
>
> Hi...
>
> How do I create a RAC connection (using JDBC) to connect to an Oracle
> database within a cluster?
>
> I have the service name, but the usual JDBC URL requires a SID.
>
> Kind regards,
> Jason.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> >
>


-- 
In places where life has no value, death has its price.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to