File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Problem while getting database connection in solaris7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem while getting database connection in solaris7.0" Watch "Problem while getting database connection in solaris7.0" New topic
Author

Problem while getting database connection in solaris7.0

naga bush
Greenhorn

Joined: Jan 29, 2001
Posts: 7
Hi.,
I am getting problem when connecting to oracle 8i database through java program. os is sun solaris7.0.
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.getConnection("jdbc racle ci8@sundb","username","password");i have given username and password according to software installation.

The driver is loaded . But the error is while connecting to database.
Exception in thread "main" java.lang.UnsatisfiedLinkError . no ocijdbc8 in java.library.path.
Is it classpath problem. But i am unable to find in which folder all the ocidrivers are available. Please help if u have encounter the same problem.
naga bush
Greenhorn

Joined: Jan 29, 2001
Posts: 7
Hi.,I got the solutions. I tried with thin driver and the programs is working fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while getting database connection in solaris7.0