EBS 12.1.3 from RHEL5 to RHEL7 http issues, libdb.so.2

os: centos 7.6
ebs: R12.1.3

啓動 app 時報錯如下

# su - appldev2
$ cd $ADMIN_SCRIPTS_HOME
$ ./adstrtal.sh apps/apps
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server/

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

查看 log 文件

$ cat /ebsfs/EBSPROD2/inst/apps/EBSDEV22_oes09/logs/ora/10.1.3/opmn/HTTP_Server~1.log
--------
20/06/06 20:46:06 Start process
--------
/ebsfs/EBSPROD2/inst/apps/EBSDEV22_oes09/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/ebsfs/EBSPROD2/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

使用 ldd 看下 httpd 還缺少哪些so庫文件

# ldd /ebsfs/EBSPROD2/apps/tech_st/10.1.3/Apache/Apache/bin/httpd
	linux-gate.so.1 =>  (0xf7703000)
	libdms2.so => not found
	libdl.so.2 => /usr/lib/libdl.so.2 (0xf76d8000)
	libcrypt.so.1 => /usr/lib/libcrypt.so.1 (0xf76a7000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0xf768c000)
	libdb.so.2 => not found
	libm.so.6 => /usr/lib/libm.so.6 (0xf7649000)
	libc.so.6 => /usr/lib/libc.so.6 (0xf747e000)
	/lib/ld-linux.so.2 (0xf7704000)
	libfreebl3.so => /usr/lib/libfreebl3.so (0xf747a000)

libdms2.so

這個可以不用理會

# find / -name "libdms2.so"
/ebsfs/EBSPROD2/apps/tech_st/10.1.2/lib/libdms2.so
/ebsfs/EBSPROD2/apps/tech_st/10.1.3/lib/libdms2.so

libdb.so.2

描述如下

OS Library Patch for Oracle HTTP Server (on Oracle Linux 5, RHEL 5, Oracle Linux 6, RHEL 6, Oracle Linux 7, RHEL 7 and SLES 12 only)
Download and apply the patch 6078836 from My Oracle Support to fix an issue with the Oracle HTTP Server (missing libdb.so.2) bundled with the E-Business Suite technology stack.
Note that this patch (which includes a required operating system library) must be applied before installing Oracle E-Business Suite.

從 rhel 5 上拷貝個 libgdbm.so.2.0.0 ,然後做個軟鏈

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

Review note ‘Oracle Application Server 10g (10.1.2) Installation Requirements for Oracle Linux 5 and Red Hat Linux 5 (Doc ID 564174.1)’.

This requirement is outlined in the ‘Follow Operating System Requirements for OL 5.x or RHEL 5.x’ section.

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 that 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.

參考:
<<Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 (Doc ID 761566.1)>>

<<Attempting to Start Apache (adapcctl.sh) Throws an ‘Error While Loading Shared Libraries: libdb.so.2’ on Linux (Doc ID 879522.1)>>

<<Oracle Application Server 10g (10.1.2) Installation Requirements for Oracle Linux 5 and Red Hat Linux 5 (Doc ID 564174.1)>>

https://community.oracle.com/message/10438184

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章