Thursday, 7 January 2021

Attempting to Start Apache (adapcctl.sh) Throws an 'Error While Loading Shared Libraries: libdb.so.2' on Linux

Issue:

After cloning or installing an Oracle E-Business Suite Release 12 instance on a Linux based server, an error similar to the following may occur while starting up the Apache service.


Note: This issue may occur on E-Business Suite release 12.0.x or release 12.1.x. It may also occur on any Linux release 5.x (or higher).

Cause:

The error is very clear about the missing soft link. It would show this error:
...
<physical Path>/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
<physical Path>/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

...

Soft link libdb.so.2 is missing.

Solution:

To implement the solution, execute the following steps:

1. Shut down all services on the Application tier

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

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

3. Start up all services on the Application tier

NOTE: Linux release 7 (or higher) delivers a version of libgdbm.so that is higher than 2.0.0. A soft link to a version of libgdbm.so is higher than 2.0.0 may trigger the same error. A potential solution is to manually copy libgdbm.so.2.0.0 from an earlier Linux environment (5 of 6) and use it to create the link. Until the publishing of this note, this error does not occur when creating a softlink to libgdbm.so.2.0.0.

No comments:

Post a Comment