error while loading shared libraries: libdb.so.2: cannot open shared object file

Scenario:While starting Apache after clone we faced the following error.[applmgr@sachin scripts]$ sh adapcctl.sh start

You are running adapcctl.sh version 120.7.12010000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance …

adapcctl.sh: exiting with status 204
adapcctl.sh: check the

Check the following log file :

/db/VIS/inst/apps/VIS_doyen/logs/ora/10.1.3/opmn/HTTP_Server~1.log

Error :

/db/VIS/inst/apps/VIS_doyen/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/db/VIS/apps/tech_st/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

Cause:

http web server unable to start due to missing library.

Solution:

create link for library file as below

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2

Now start Apache and check the same.

[applmgr@trinity scripts]$ sh adapcctl.sh start
You are running adapcctl.sh version 120.7.12010000.2
Starting OPMN managed Oracle HTTP Server (OHS) instance …
adapcctl.sh: exiting with status 0

Now you should be able to access the application.