博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle EBS R12 - 解决在Oracle Linux 5.8 64上装完后http服务不能启动的问题
阅读量:4178 次
发布时间:2019-05-26

本文共 4870 字,大约阅读时间需要 16 分钟。

OS版本
[apdgss1i@ebsnsoa scripts]$ cat /proc/version
Linux version 2.6.32-300.10.1.el5uek (mockbuild@ca-build56.us.oracle.com) (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.

转载地址:http://ontai.baihongyu.com/

你可能感兴趣的文章
Docker容器实例通过非默认的网络命名空间访问外部网络
查看>>
RHEL/CentOS 7的FirewallD及其firewall-cmd命令概述
查看>>
RHEL/CentOS 7的kernel tunables及其sysctl命令概述
查看>>
RHEL/CentOS 7中Nginx的systemd service
查看>>
RHEL/CentOS 7的systemd及其systemctl命令概述
查看>>
RHEL/CentOS 7的systemd target及其中的multi-user.target
查看>>
RHEL/CentOS 7中通过systemd service持久化网络命名空间
查看>>
Docker daemon及容器实例的DNS配置详解
查看>>
RHEL/CentOS 7中的网络暨network.service与NetworkManager.service详解
查看>>
RHEL/CentOS 7中的iptables.service与firewalld.service概述
查看>>
RHEL/CentOS 7中的SELinux概述
查看>>
SELinux的运行模式与安全策略详解
查看>>
Linux资源的SELinux context详解
查看>>
SELinux检查与Nginx的反向代理的典型错配案例及解决
查看>>
SELinux检查与Apache HTTP服务器的文件访问典型错配案例及解决
查看>>
Docker容器启动时的第一个进程的设置总结
查看>>
eclipse遇到的第一个问题
查看>>
Java中的内存管理(栈和堆、方法区)
查看>>
二进制 转换方法
查看>>
数组相关(定义、访问、遍历、复制/扩容、排序)
查看>>