Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'ocijdbc8.dll error' Any idea what's wrong

 
Neha Sharma
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Art,
I'm testing JDBC thin driver with oracle supplied code on my machine, which does not have oracle 8i. But I'm trying to connect to a Oracle 8i server.
I'm getting following error(I've pasted the full commandline statements here), do you have an idea.
Thanks
Neha
C:\Neha>java JdbcCheckup
Please enter information to test connection to the database user: muser
password: muser
database(a TNSNAME entry): 13.231.232.222:1521:MKBVOL
Connecting to the database...Connecting...
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 (ocijdbc8.dll) in
java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1380)
at java.lang.Runtime.loadLibrary0(Runtime.java:766)
at java.lang.System.loadLibrary(System.java:849)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:523)
at java.sql.DriverManager.getConnection(DriverManager.java:183)
at JdbcCheckup.main(JdbcCheckup.java:35)
 
a hui
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked if your class path has a reference to the Oracle package?
AH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic