• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Thin driver

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I recently downloaded oracle 10g.I dont know how to use thin driver as database connectivity.Can anybody tell step by step how to specify thin driver right after downloading oracle.

Thankyou & Regards,
sudha.
 
Ranch Hand
Posts: 265
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sudha,

To access Oracle 10g from your Java application, you'll need to be sure ojdbc14.jar is in your classpath.

Follow the jdbc configuration instructions for your application.

Your driver classname will be oracle.jdbc.OracleDriver

your JDBC URL will probably look something like:


where IPNUMBER is replaced with your Oracle database's IP number, PORT with the port number, and SID with the SID or Service Name of the database.
[ April 26, 2008: Message edited by: Stevi Deter ]
 
sudha javvadi
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Stevi,

This might be a stupid question but I really dont know how to check whether ojdbc14.jar is in my classpath or not. Could you please tell me how to check the classpath.I am using eclipse IDE,do we need to configure oracle 10g with eclipse.If so how to do that.What are the other steps I have to do to create a table in oracle 10g and use it in java.Please help

thanks in advance,
sudha.
 
author & internet detective
Posts: 42151
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sudha,
There are two ways of specifying classpaths. If you are running a java program (with a main method), you right click the Eclipse project, choose properties and the look at the java build path.

If you are running a web page, you need to check the server classpath.
reply
    Bookmark Topic Watch Topic
  • New Topic