aspose file tools*
The moose likes JDBC and the fly likes jdbc connection with oracle 10g Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc connection with oracle 10g" Watch "jdbc connection with oracle 10g" New topic
Author

jdbc connection with oracle 10g

swapna marepally
Greenhorn

Joined: Apr 04, 2007
Posts: 3
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
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

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.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc connection with oracle 10g
 
Similar Threads
java/sql/Savepoint Exception
database connectivity
JDBC connection using eclipse ide
Connecting to an Oracle DB
Setting ojdbc14.jar as classpath.