We are migrating WAS 184.108.40.206 from AIX to Linux.
The installation is done completely. However I am getting the following error in Oracle connection.
The test connection operation failed for data source TEST on server testEntApp_01 at node ws_nodename with the following exception: java.sql.SQLException: java.lang.UnsatisfiedLinkError: ocijdbc10 (/oracle/product/10.2.0/libocijdbc10.so: invalid ELF header
I copied the Oracle client from AIX to Linux. Not sure if copying Oracle client from AIX to Linux will work or am I suppose to install new oracle client for Linux OS.
And help or direction to the solution will be appreciated.
You are using OCI driver to access the Oracle database. Is there any specific reason for that? General recommendation is to use JDBC Type 4 thin driver to access Oracle database. Type 4 driver doesn't require any Oracle client installs. All you need is the Type 4 driver in classpath.
Since you are using OCI Thick driver, you cannot copy the AIX folder to Linux. The OCI drivers use native code compiled specifically for the host environment. So AIX OCI driver will never work for Linux. It will give you lot of wierd errors, core dump etc.
Just install Oracle client on the Linux machine, which will get you to the correct driver. Load that shared library in WAS as you were doing in AIX and you should be good to go.
Screaming fools! It's nothing more than a tiny ad: