• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jdbc oci8 connectivity

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
im trying to connect to oracle server which is in
linux. From a different machine in which i have oracle client and windows 2000 im trying to connect
im using oci8 driver.
im getting the error
java.lang.UnsatisfiedLinkError: do_open
at oracle.jdbc.oci8.OCIDBAccess.do_open(Native Method)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at Offline$connect.run(Offline.java:126)
pl any body help me
thanx in advance
sundar
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you need to set the Path as well as classpath when using the OCI drivers:
JDBC OCI Driver:
If you are installing the JDBC OCI driver, you must also set the following value for the library path environment variable
On Solaris, set LD_LIBRARY_PATH as follows:
[Oracle Home]/lib

This directory contains the libocijdbc9.so shared object library.
On Windows NT, set PATH as follows:
[Oracle Home]\lib

This directory contains the ocijdbc8.dll dynamic link library.

you can read more in the Oracle9i JDBC Developer's Guide and Reference. The above exerpt was taken from chapter 2 - getting started.
Jamie
 
SOMASUNDAR SAMBATHINI
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx for reply
but it is working with oracle server in winodows 2000 machine
but it is not working with oracle clint
what should i do
thanx in advance
sundar
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic