Friday, January 4, 2013

Error while loading shared libraries: - After Migrating REHL4 to REHL5

We have migrated Oracle Agile application from RedHat Linux 4 to RedHat Linux 5 and while starting up the Agile application we have received following error.

$ opmnctl startall
opmnctl: starting opmn and all managed processes...
opmn id=agile:6201
    1 of 2 processes started.


--> Process (index=1,uid=6575556334,pid=75645)
    failed to start a managed process after the maximum retry limit

From HTTP Serve log, we have found that Apache service failed while coming up. We have found below error message

/oracle/product/ startssl: execing httpd
/oracle/product/ Apache/Apache/bin/httpd: error while loading shared libraries: cannot open shared object file: No such file or directory

There is no shared library/usr/lib/ and found that the soft link is missing.

You may see this error with applications that are using Oracle Application services after cloning or migrating from REHL 4 to REHL5.

To resolve the issue follow the steps
1. Stop the Oracle Application Service
2. Login as root and create the soft link
   # ln -s /usr/lib/ /usr/lib/
3. Start the Oracle Application Service.

Satishbabu Gunukula, Oracle ACE

1 comment: