Friday 21 August 2015

error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory




Issue
++++++

After the complete 12.1.1 installation , apache is not coming up and below is error message .

[appsdemo@appsdba scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: TEST_appsdba.appsdba.user.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |    9697 | Alive
OC4JGroup:default_group          | OC4J:forms         |    9626 | Alive
OC4JGroup:default_group          | OC4J:oacore        |    9543 | Alive
HTTP_Server                      | HTTP_Server        |     N/A | Down


[appsdemo@appsdba scripts]$ adapcctl.sh start

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...
================================================================================
opmn id=appsdba.user.com:6207
    0 of 1 processes started.

ias-instance id=TEST_appsdba.appsdba.user.com
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server/

Error
--> Process (index=1,uid=886842578,pid=10277)
    failed to start a managed process after the maximum retry limit
    Log:
    /d01/apps/inst/apps/TEST_appsdba/logs/ora/10.1.3/opmn/HTTP_Server~1.log


adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /d01/apps/inst/apps/TEST_appsdba/logs/appl/admin/log/adapcctl.txt for more information ...


[appsdemo@appsdba scripts]$ cat /d01/apps/inst/apps/TEST_appsdba/logs/ora/10.1.3/opmn/HTTP_Server~1.log

--------
15/05/24 16:54:14 Start process
--------
/d01/apps/inst/apps/TEST_appsdba/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/d01/apps/10.1.3/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory


--------
15/05/24 16:54:16 Start process
--------
/d01/apps/inst/apps/TEST_appsdba/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/d01/apps/10.1.3/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

--------
15/05/24 16:58:19 Start process
--------
/d01/apps/inst/apps/TEST_appsdba/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/d01/apps/10.1.3/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory

--------
15/05/24 16:58:21 Start process
--------
/d01/apps/inst/apps/TEST_appsdba/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/d01/apps/10.1.3/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
[appsdemo@appsdba scripts]$


Cause:

http web server unable to start due to missing library.

Solution:

1) Shutdown all application services.
2) create link for library file as below


[root@appsdba ~]# ls -ltrh /usr/lib/libgdbm.so.2.0.0
-rwxr-xr-x 1 root root 24K Jun  5  2007 /usr/lib/libgdbm.so.2.0.0
[root@appsdba ~]# ls -ltrh /usr/lib/libdb.so.2
ls: /usr/lib/libdb.so.2: No such file or directory
[root@appsdba ~]# ln -s   /usr/lib/libgdbm.so.2.0.0  /usr/lib/libdb.so.2
[root@appsdba ~]#





[appsdemo@appsdba scripts]$ adopmnctl.sh status

You are running adopmnctl.sh version 120.6

Checking status of OPMN managed processes...

Processes in Instance: TEST_appsdba.appsdba.user.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |   11203 | Alive
OC4JGroup:default_group          | OC4J:forms         |   11132 | Alive
OC4JGroup:default_group          | OC4J:oacore        |   11048 | Alive
HTTP_Server                      | HTTP_Server        |   10991 | Alive


adopmnctl.sh: exiting with status 0

adopmnctl.sh: check the logfile /d01/apps/inst/apps/TEST_appsdba/logs/appl/admin/log/adopmnctl.txt for more information ...

[appsdemo@appsdba scripts]$

No comments:

Post a Comment