• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBC Oracle

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Java Ranchers,

When I attempt to get a Connection object from the driver manager, I use the syntax (as per Oracle JDBC doc):

Connection conn = DriverManager.getConnection
("jdbc racle ci:@MyHostString", "scott", "tiger");

My question is about the first argument "jdbc racle ci:@MyHostString":
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,
Murali.

[edited to disable smilies]
[ September 05, 2004: Message edited by: Jeanne Boyarsky ]
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Murali,

From the Oracle Tech Net, found through a Google search on "jdbc:oracle:oci", it looks like MyHostString can take the form hostname:port:SID, amongst others. Check out the link for more info.

Jules
 
reply
    Bookmark Topic Watch Topic
  • New Topic