a13698822086 发表于 2018-9-21 12:07:25

Oracle EBS12.2.5在Oracle Linux7.3上安装准备

  基础环境安装(本ERP是通过虚拟机进行安装)
  # free -h
  total      used      free      sharedbuff/cache   available
  Mem:            31G      629M         24G         10M      6.0G         30G
  Swap:         15G          0B         15G
  # df -h

  Filesystem          >  devtmpfs            16G   0   16G   0% /dev
  tmpfs               16G140K   16G   1% /dev/shm
  tmpfs               16G8.9M   16G   1% /run
  tmpfs               16G   0   16G   0% /sys/fs/cgroup
  /dev/mapper/ol-root   50G3.5G   47G   7% /
  /dev/sda1         1014M195M820M20% /boot
  /dev/mapper/ol-home384G   37M384G   1% /home
  tmpfs                3.2G   40K3.2G   1% /run/user/0
  (1)为Swap 添加5G交换空间
  dd 命令 创建swap用的分区文件 /var/swap
  分区大小设为5g
  # dd if=/dev/zero of=/var/swap bs=1024 count=5120000
  5120000+0 records in
  5120000+0 records out
  5242880000 bytes (5.2 GB) copied, 11.2504 s, 466 MB/s
  将文件变成swap分区
  root@localhost Downloads]# mkswap /var/swap

  Setting up swapspace version 1,>  no label, UUID=a5731643-78a0-4869-be54-1355741edc67
  # mkswap-f /var/swap
  mkswap: /var/swap: warning: wiping old swap signature.

  Setting up swapspace version 1,>  no label, UUID=0030a9b0-c720-4a7e-b717-2a4e07f1c9ee
  #
  开启swap
  # swapon /var/swap
  swapon: /var/swap: insecure permissions 0644, 0600 suggested.
  #
  查看swap
  # free -h
  total      used      free      sharedbuff/cache   available
  Mem:            31G      633M         24G         10M      6.0G         30G
  Swap:         20G          0B         20G
  #
  # more /proc/swaps

  Filename                              Type         >  /dev/dm-1                               partition       16515068      0       -1
  /var/swap                               file            5119996 0       -2
  开机自启动
  vi   /etc/fstab
  /var/swap               swap                  swap    defaults      0 0

  配置DNS
  # cd /etc/sysconfig/network-scripts/
  # vi ifcfg-ens160

  重启网络
  # service network restart
  Restarting network (via systemctl):
  检查是否能连接外网

  修改 /etc/hosts
  vim /etc/hosts
  192.168.1.105 oraerp.honglicheng.com oraerp
  192.168.1.105 honglicheng.com

  检查 oraerp   ,oraerp.honglicheng.com的连通性

  修改hostname
  # vim /etc/hostname
  oraerp

  检查hostname
  # hostnamectl --static
  oraerp
  #
  # hostnamectl --transient
  oraerp
  修改selinux
  vim /etc/selinux/config
  将SELINUX=enforcing修改为SELINUX=disabled

  检查NPTL
  # getconf GNU_LIBPTHREAD_VERSION

  设置hostname
  # vim /etc/sysconfig/network
  # Created by anaconda
  hostname=oraerp.honglicheng.com
  修改numa =off和transparent_hugepage=nerver
  Examples:(for numa =off)
  (1)RHEL 4, RHEL 5, RHEL 6 (/boot/grub/grub.conf)

  (2)RHEL 7 (/boot/grub2/grub.cfg)

  (3)RHEL 7 (setting defaults for newly installed kernels in /etc/default/grub)

  在EBS安装中过程中,numa 和transparent_hugepage参数设置如下:
  # vim /boot/grub2/grub.cfg


  EBS 预安装RPM包
  1、下载public-yum-ol7.repo到cd /etc/yum.repos.d
  # cd /etc/yum.repos.d
  # wget http://public-yum.oracle.com/public-yum-ol7.repo
  2、将enabled=0 修改为 enabled=1

  3、更新所有packages,然后安装EBS 预安装包。
  yum update
  yum install oracle-ebs-server-R12-preinstall
  4、Linux 安装EBS(DB和APP)内核参数设置

  Linux 安装Oracle EBS12的预安装文件包(Pre_install packages)检查。
  (1)预安装文件包如下

[*]  compat-libstdc++-296-2.96-144.0.2.el7.i686
[*]  openmotif21-2.1.30-11.EL7.i6861
[*]  xorg-x11-libs-compat-6.8.2-1.EL.33.0.1.i386


[*]  libXrender-0.9.8-2.1.el7.i686
[*]  perl-File-CheckTree-4.42-3.el7.noarch


[*]  binutils-2.23.52.0.1-16.el7.x86_64
[*]  compat-libstdc++-33-3.2.3-71.el7.i686
[*]  gcc-4.8.2-16.el7.x86_64
[*]  gcc-c++-4.8.2-16.el7.x86_64
[*]  gdbm-1.10-8.el7.i686
[*]  gdbm-1.10-8.el7.x86_64
[*]  glibc-2.17-55.el7.i686
[*]  glibc-2.17-55.el7.x86_64
[*]  glibc-common-2.17-55.el7.x86_64
[*]  glibc-devel-2.17-55.el7.i686
[*]  glibc-devel-2.17-55.el7.x86_64
[*]  libgcc-4.8.2-16.el7.i686
[*]  libgcc-4.8.2-16.el7.x86_64
[*]  libstdc++-devel-4.8.2-16.el7.i686
[*]  libstdc++-devel-4.8.2-16.el7.x86_64
[*]  libstdc++-4.8.2-16.el7.i686
[*]  libstdc++-4.8.2-16.el7.x86_64
[*]  libXi-1.7.2-2.1.el7.i686
[*]  libXp-1.0.2-2.1.el7.i686
[*]  libXp-1.0.2-2.1.el7.x86_64   =
[*]  libXtst-1.2.2-2.1.el7.i686
[*]  libaio-0.3.109-12.el7.i686
[*]  libaio-0.3.109-12.el7.x86_64
[*]  libgomp-4.8.2-16.el7.x86_64
[*]  make-3.82-21.el7.x86_64
[*]  redhat-lsb-4.1-24.0.1.el7.x86_64   =
[*]  sysstat-10.1.5-4.el7.x86_64
[*]  util-linux-2.23.2-16.el7.x86_64


[*]  compat-libcap1-1.10-7.el7.x86_64
[*]  compat-libstdc++-33-3.2.3-71.el7.x86_64
[*]  elfutils-libelf-devel-0.158-3.el7.x86_64=
[*]  libaio-devel-0.3.109-12.el7.i686
[*]  libaio-devel-0.3.109-12.el7.x86_64   =
[*]  xorg-x11-utils-7.5-13.1.el7.x86_64
  【注意】Note:The openmotif package version must be 2.1.30 (for example, openmotif-2.3.3-1 is not supported)
  (2)检查软件包命令如下:
  # rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n" | grep binutils
  binutils-2.25.1-22.base.el7.x86_64
  (3)host相关的rpm包安装
  yum installlxclxc-libs
  安装后检查
  # rpm -qa --qf "%{n}-%{v}-%{r}.%{arch}\n" | grep lxc
  设置/etc/security/limits.conf中相关参数,参数如下
  # vim /etc/security/limits.conf
  * hard nofile 65536
  * soft nofile 4096
  * hard nproc 16384
  * soft nproc 2047
  * hard stack 16384
  * soft stack 10240

  修改其他用户的打开文件数据(?) 将*的值修改为unlimited
  # vi /etc/security/limits.d/20-nproc.conf

  检查相关组件是否安装
  # which ar gcc g++ ksh linux32 make
  /usr/bin/ar
  /usr/bin/gcc
  /usr/bin/g++
  /usr/bin/ksh
  /usr/bin/linux32
  /usr/bin/make
  修改Bug1
  # unlink /usr/lib/libXtst.so.6
  # ln -s /usr/X11R6/lib/libXtst.so.6.1/usr/lib/libXtst.so.6
  修改Bug2
  # unzip p6078836_101330_LINUX.zip
  # mv /usr/lib/libdb.so.2 /usr/lib/libdb.so.6078836
  mv: cannot stat ‘/usr/lib/libdb.so.2’: No such file or directory
  # cp libdb.so.2 /usr/lib
  重新连接动态库
  Ldconfig -v
  查看安装用户组和相关用户
  # cat /etc/group

  #>  uid=54322(applmgr) gid=54322(dba) groups=54322(dba)
  #

  #>  uid=54321(oracle) gid=54322(dba) groups=54322(dba)
  创建EBS安装目录
  # mkdir -p /home/oraebs/{db,apps}
  # chmod 775 /home/oraebs/
  # chown oracle:dba /home/oraebs/
  # mkdir /home/oraInventory
  # chmod 777 /home/oraInventory/
  # chown -R oracle:dba /home/oraInventory/

  # chown -R oracle:dba /home/oraebs/db/
  # chown -R applmgr:/home/oraebs/dba apps/

  创建/etc/oraInst.loc文件
  vim/etc/oraInst.loc
  inventory_loc=/home/oraInventory
  inst_group=dba

  安装和配置VNC
  (1)安装VNC
  # yum install tigervnc-server -y
  (2)配置VNC
  (ERP安装过程中不需要cp)
  只需要进行如下操作:
  mv /usr/lib/systemd/system/vncserver@.service /usr/lib/systemd/system/vncserver@:1.service
  cat/usr/lib/systemd/system/vncserver@:1.service

  Vim /usr/lib/systemd/system/vncserver@:1.service

  将写为登录的用户,本次安装使用root,%i替换为1,保存wq!
  vnc默认使用5900以上的端口

页: [1]
查看完整版本: Oracle EBS12.2.5在Oracle Linux7.3上安装准备