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


While starting apache in Oracle Apps R12, below error is encountered.

Error:


--------

20/08/29 06:35:31 Start process

--------

/bispapps/apps122/Apps/inst/apps/VIS_ebsvis/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd

/bispapps/apps122/Apps/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: 

The library was missing.


Solution:


1. Shut down all Oracle Application Services.

2. As the LINUX root user, create a soft link as follows:

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

3. Startup all Oracle Application Services.



For Linux 7  copy  old version of libgdbm.so.2.0.0 this from any Linux 6 or 5 box.

The same steps works in Linux 8 as well.