This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while getting database connection in solaris7.0

 
naga bush
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.,I got the solutions. I tried with thin driver and the programs is working fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic