• 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 connection with oracle 10g

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
please provide me the code

what should i give at class.forName()
and what to put in the getConnection()
my user is hr and password is also hr
as it was given by the product when i installed

service name is oracle

when i run this program it is throwing ClassNotFoundException and
at getConnection method UnReportedException

i have set the class path like this
set CLASSPATH=ojdbc14.jar
and when i say %CLASSPATH% to check the classpath
it is not showing the classpath instead it is opening the ojdbc14.jar related window

please help in this problem

thanks in advance
 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Paul Sturrock reply,

This is covered in Oracle's documentation, all we could do here is repeat what is written. Read the "JDBC Developer's Guide and Reference". If you are still confused feel freee to ask more questions.



follow this link where most of parts of your question is already covered.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic