Oracle’s EM Grid Control on CentOS5/RHEL5: libdb.so.2 issue and resolution

CentOS5 and RHEL5 comes without libdb.so.2 library (old Sleepycat database software). The problem is that there is no RPM for this library in the repositories (newest is only compat-db-4.3 which provides libdb4-3.so). Oracle’s EM installer fails about libdb.so.2 with:

libdb.so.2 missing on CentOS5/RHEL5

Resolution which worked for me was to install Redhat 7.3 db1 package(!). Binary compability seems to work:

[root@oemgc ~]# wget ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/db1-1.85-8.i386.rpm
--12:32:23-- ftp://fr.rpmfind.net/linux/redhat/7.3/en/os/i386/RedHat/RPMS/db1-1.85-8.i386.rpm
=> `db1-1.85-8.i386.rpm'
Resolving fr.rpmfind.net... 194.199.20.114
Connecting to fr.rpmfind.net|194.199.20.114|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /linux/redhat/7.3/en/os/i386/RedHat/RPMS ... done.
==> SIZE db1-1.85-8.i386.rpm ... 42581
==> PASV ... done. ==> RETR db1-1.85-8.i386.rpm ... done.
Length: 42581 (42K)
100%[=============================================================>] 42,581 230K/s in 0.2s
12:32:25 (230 KB/s) - `db1-1.85-8.i386.rpm' saved [42581]
[root@oemgc ~]# rpm -Uhv db1-1.85-8.i386.rpm
warning: db1-1.85-8.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:db1 ########################################### [100%]
[root@oemgc ~]# rpm -ql db1
/usr/bin/db1_dump185
/usr/lib/libdb.so.2
/usr/lib/libdb1.so.2
/usr/share/doc/db1-1.85
/usr/share/doc/db1-1.85/LICENSE
/usr/share/doc/db1-1.85/README
/usr/share/doc/db1-1.85/changelog
[root@oemgc ~]#

5 Responses to “Oracle’s EM Grid Control on CentOS5/RHEL5: libdb.so.2 issue and resolution”

  1. Dave says:

    Hi there!

    Actually, there is an easier way. This is from the Oracle 10.2 release notes found here:

    http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15659/toc.htm#CJAHFHCJ

    There is actually a compatible library already installed as part of the gdbm-1.8.0-xx.x.x install, which is available for RHEL/OEL/CentOS 5. All you need to do is add a symlink:

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

    I hope this helps. I struggled for a few hours finding this out! :-) It is not particularly well documented that this symlink is required.

    – Dave

  2. admin says:

    Thanks for info :)

  3. Aureny Jr. says:

    Dave’s solution worked just perfectly for me.
    Thanks, mate.

  4. easyreading says:

    Wonderful!!
    Solve my issue!

  5. GAVIN says:

    THANKS! – why cannot a Metalink note be published if this is an error which is going to be faced by the entire community …. regards – gavin