The moose likes Servlets and the fly likes 'ocijdbc8.dll error' Any idea what's wrong Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark " Watch " New topic

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

Neha Sharma
Ranch Hand

Joined: Jul 13, 2001
Posts: 126
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.
C:\Neha>java JdbcCheckup
Please enter information to test connection to the database user: muser
password: muser
database(a TNSNAME entry):
Connecting to the database...Connecting...
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 (ocijdbc8.dll) in
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at oracle.jdbc.oci8.OCIDBAccess.logon(
at oracle.jdbc.driver.OracleConnection.<init>(
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at JdbcCheckup.main(
a hui
Ranch Hand

Joined: Oct 14, 2000
Posts: 39
Have you checked if your class path has a reference to the Oracle package?
It is sorta covered in the JavaRanch Style Guide.
subject: 'ocijdbc8.dll error' Any idea what's wrong
It's not a secret anymore!