A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
Joined: May 07, 2002
Sep 04, 2004 18:56:00
When I attempt to get a Connection object from the driver manager, I use the syntax (as per Oracle
Connection conn = DriverManager.getConnection
ci:@MyHostString", "scott", "tiger");
My question is about the first argument "jdbc
Is 'MyHostString' the service name or the Oracle SID?
Specifically in a RAC environment, where I have multiple instances and a single service, which on do I specify there? Service name or the ORACLE_SID?
Thanks a lot in advance,
[edited to disable smilies]
[ September 05, 2004: Message edited by: Jeanne Boyarsky ]
Joined: Aug 02, 2004
Sep 05, 2004 03:40:00
Oracle Tech Net
, found through a Google search on "jdbc
ci", it looks like MyHostString can take the form hostname:port:SID, amongst others. Check out the link for more info.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JDBC Oracle
Oracle d.b URL explanation please
Oracle JDBC connection in a servlet
Strange problem in Tom CAT + oracle +JDBC connection
problem with Connection object in a servlet
Need a guide how to connect JBoss 3.2.5 to Oracle 9i
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015