Win a copy of Functional Reactive Programming this week in the Other Languages 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