Oracle EBS R12 - 解决在Oracle Linux 5.8 64上装完后http服务不能启动的问题

OS版本
[apdgss1i@ebsnsoa scripts]$ cat /proc/version
Linux version 2.6.32-300.10.1.el5uek ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50))

#1 SMP Wed Feb 22 17:37:40 EST 2012
[apdgss1i@ebsnsoa scripts]$ lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-

noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
Release:        5.8
Codename:       Carthage
[apdgss1i@ebsnsoa scripts]$


手动重起apache时的错误日志
[apdgss1i@ebsnsoa scripts]$ view /u03/ap/dgss1i/inst/apps/dgss1i_ebsnsoa/logs/ora/10.1.3/opmn/HTTP_Server~1.log
--------
13/01/18 19:24:36 Start process
--------
/u03/ap/dgss1i/inst/apps/dgss1i_ebsnsoa/ora/10.1.3/Apache/Apache/bin/apachectl startssl: execing httpd
/u03/ap/dgss1i/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

....


[apdgss1i@ebsnsoa ~]$ ldd /u03/ap/dgss1i/apps/tech_st/10.1.3/Apache/Apache/bin/httpd
        linux-gate.so.1 =>  (0xf775e000)
        libdms2.so => not found
        libdl.so.2 => /lib/libdl.so.2 (0x43d24000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xf7719000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x43d08000)
        libdb.so.2 => not found
        libm.so.6 => /lib/libm.so.6 (0x43d2b000)
        libc.so.6 => /lib/libc.so.6 (0x43bac000)
        /lib/ld-linux.so.2 (0x43b8d000)


Google一圈发现是少了一个包和一个软链接
[root@ebsnsoa ~]# yum install gdbm.i386 -y
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gdbm.i386 0:1.8.0-26.2.1.el5_6.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================
 Package        Arch           Version                         Repository      Size
====================================================================================
Installing:
 gdbm           i386           1.8.0-26.2.1.el5_6.1            base            28 k

Transaction Summary
====================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 28 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : gdbm                                                         1/1
error: failed to stat /media/OL5.8 x86_64 dvd 20120229: No such file or directory

Installed:
  gdbm.i386 0:1.8.0-26.2.1.el5_6.1

Complete!
[root@ebsnsoa ~]# ldconfig
[root@ebsnsoa ~]# rpm -ql gdbm.i386
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.so.2.0.0
/usr/share/doc/gdbm-1.8.0
/usr/share/doc/gdbm-1.8.0/COPYING
/usr/share/doc/gdbm-1.8.0/NEWS
/usr/share/doc/gdbm-1.8.0/README


软链接做好再手动启下http试试
[root@ebsnsoa ~]#  ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
[root@ebsnsoa ~]# ls -l /usr/lib/libdb.so.2
lrwxrwxrwx 1 root root 25 Jan 18 19:44 /usr/lib/libdb.so.2 -> /usr/lib/libgdbm.so.2.0.0
[root@ebsnsoa ~]# su - apdgss1i
[apdgss1i@ebsnsoa scripts]$ adapcctl.sh start

You are running adapcctl.sh version 120.7.12010000.2

Starting OPMN managed Oracle HTTP Server (OHS) instance ...
opmnctl: opmn is already running.
opmnctl: starting opmn managed processes...

adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u03/ap/dgss1i/inst/apps/dgss1i_ebsnsoa/logs/appl/admin/log/adapcctl.txt for more

information ...

[apdgss1i@ebsnsoa scripts]$ adapcctl.sh status

You are running adapcctl.sh version 120.7.12010000.2

Checking status of OPMN managed Oracle HTTP Server (OHS) instance ...

Processes in Instance: dgss1i_ebsnsoa.ebsnsoa.ad.example.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
OC4JGroup:default_group          | OC4J:oafm          |   15860 | Alive
OC4JGroup:default_group          | OC4J:forms         |   15859 | Alive
OC4JGroup:default_group          | OC4J:oacore        |   15858 | Alive
HTTP_Server                      | HTTP_Server        |   16839 | Alive


adapcctl.sh: exiting with status 0

adapcctl.sh: check the logfile /u03/ap/dgss1i/inst/apps/dgss1i_ebsnsoa/logs/appl/admin/log/adapcctl.txt for more

information ...

到这里应该已经可以打开EBS登录页面了


REF

https://forums.oracle.com/forums/thread.jspa?threadID=2256091

For Oracle Enterprise Linux 5 and Red Hat Enterprise Linux 5 only (not applicable to SuSE SLES10), a link titled

"libdb.so.2" must be created by the root user..:

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
This link must be created in the 32bit library location (i.e., /usr/lib), so the /usr/lib/libgdbm.so.2.0.0 must be present

there. If it is not present, then install the gdbm-1.8.0-26.2.1.i386.rpm package and it should be available after that. The

/usr/lib64/libgdbm.so.2.0.0 is not used in this case.


你可能感兴趣的:(Oracle EBS R12 - 解决在Oracle Linux 5.8 64上装完后http服务不能启动的问题)