[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1563
  • Last Modified:

Can't find library ocijdbc9 (libocijdbc9.so)

Hi i'm having the folowing problme

Initialization of bean failed; nested exception is java.lang.UnsatisfiedLinkError: Can't find       library ocijdbc9  (libocijdbc9.so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/sbclocal/apps/IBM/WebSphere/AppServer/SF5112/Base/java/bin/../jre/bin
java.library.path=/sbclocal/apps/IBM/WebSphere/AppServer/SF5112/Base/java/bin/../jre/bin:/sbclocal/ apps/IBM/WebSphere/AppServer/SF5112/Base/java/jre/bin/classic:/sbclocal/apps/IBM/WebSphere/         AppServer/SF5112/Base/java/jre/bin:/sbclocal/apps/IBM/WebSphere/AppServer/SF5112/Base/bin:/opt/mqm/ java/lib:/opt/wemps/lib:/usr/lib


i have the  libocijdbc9.so in

/xxx/run/tp/oracle/client/v9.2.0.1.0/lib

and have given it on process definition/JVM as well

and also  i have ojdbc14.jar and ojdbc14_g.jar at

/xxx/run/tp/oracle/client/v9.2.0.1.0/jdbc/lib

and have given it on process definition/JVM as well


but still i have the above error

pls help
0
Chakri25
Asked:
Chakri25
  • 5
  • 4
1 Solution
 
objectsCommented:
Add /xxx/run/tp/oracle/client/v9.2.0.1.0/lib to LD_LIBRARY_PATH
0
 
Chakri25Author Commented:
yes it is added!
0
 
objectsCommented:
why isn't it listed above then?  how are you starting the app?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Chakri25Author Commented:
the libocijdbc9.so is in /xxx/run/tp/oracle/client/v9.2.0.1.0/lib

and i have 2 ways of starting the server

a script wsstart and the script have set env and points to the path above like this

setenv ORACLE_HOME /sbcimp/run/tp/oracle/client/v9.2.0.1.0
setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib:/xyz/ConnectD/ndm/lib:/sbclocal/ConnectD/ndm/src/user_exit_lib.o:${ORACLE_HOME}/lib/libocijdbc9.so



and thru WAS admin console also i start it, maybe i should use this WAS admin console to start the server, but my apps are in this server
0
 
objectsCommented:
> setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib:/xyz/ConnectD/ndm/lib:/sbclocal/ConnectD/ndm/src/user_exit_lib.o:${ORACLE_HOME}/lib/libocijdbc9.so

that should be:

setenv LD_LIBRARY_PATH ${ORACLE_HOME}/lib:/xyz/ConnectD/ndm/lib:/sbclocal/ConnectD/ndm/src:${ORACLE_HOME}/lib

0
 
Chakri25Author Commented:
yes changed to ${ORACLE_HOME}/lib

but no luck
0
 
objectsCommented:
so whats the exact error now?
0
 
Chakri25Author Commented:
the script wsstart starts the dmgr
and dmgr test connection says success , tat means it sets the LD_PATH

but server1 which is under dmgr does not seems to find the LD_PATH
and not able to find libocijdbc9.so

but my Q: is  i have put dbc:oracle:thin: in my URL of the WAS admin console
i,e i'm assuming for the dmgr

and the logs of server1 which starts does not print LD_PATH

hope this gives some useful info

can u also tell me pls , wat is usually the topology, cell, node etc and wat does they stand for
0
 
Chakri25Author Commented:
hi all
whoever is follwoing this forum, i found an answer myself, so i want to assing the points to myself or close the forum, how i do this . the soln is


I added the .so to the libraries section for the cell
and its path info

Environment / Shared Libraries / libocijdbc9.so
in Variables I updated the class  path to match the version 9.2.0.4.0-32bit
and swapped classes12.zip for ojdbc14.jar
(tried both just in case)
but 14 is the required version for  5.1.x WAS
see ORACLE_JDBC_DRIVER_PATH   /sbcimp/run/tp/oracle/client/v9.2.0.4.0-32bit/jdbc/lib  

0
 
moduloCommented:
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now