Oracle 11.2.0.4 RAC RHEL 7.2 x86_64安装

概述

系统环境

服务器型号 ProLiant BL660c Gen9
操作系统版本 RHEL 7.2 x86_64
主机名 xxxx1/xxxx2
Pub IP x.x.x.x/17
VIP IP x.x.x.x/19
SCAN IP x.x.x.x
私网IP 192.168.x.x
数据库安装版本 Oracle Enterprise Database RAC 11.2.0.4

安装需求参考:

Installation walk-through – Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (文档 ID 1951613.1)
Requirements for Installing Oracle 11.2.0.4 RDBMS on OL7 or RHEL7 64-bit (x86-64) (文档 ID 1962100.1)
Installation of Oracle 11.2.0.4 Database Software on OL7 fails with “undefined reference to symbol ‘B_DestroyKeyObject’” error (文档 ID 1965691.1)
Oracle Database (RDBMS) on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) (文档 ID 169706.1)
Install of Clusterware fails while running root.sh on OL7 – ohasd fails to start (文档 ID 1959008.1)
ALERT: Disable Transparent HugePages on SLES11, RHEL6, RHEL7, OL6, OL7 and UEK2 Kernels (文档 ID 1557478.1)
Oracle Linux 7 – How to disable Transparent HugePages for RHCK kernel? (文档 ID 2066217.1)

安装前准备

  1. 操作系统环境

# uname -a
Linux xxxx2 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)

  1. 检查要求的软件包

# rpm -q –queryformat “%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n” binutils.x86_64 \
elfutils-libelf-devel.x86_64 \
compat-libstdc++-33.x86_64 \
compat-libcap1.x86_64 \
gcc.x86_64 \
gcc-c++.x86_64 \
glibc.i686 \
glibc.x86_64 \
glibc-devel.i686 \
glibc-devel.x86_64 \
ksh-*.x86_64 \
libaio.i686 \
libaio.x86_64 \
libaio-devel.i686 \
libaio-devel.x86_64 \
libgcc.i686 \
libgcc.x86_64 \
libstdc++.i686 \
libstdc++.x86_64 \
libstdc++-devel.i686 \
libstdc++-devel.x86_64 \
libXi.i686 \
libXi.x86_64 \
libXtst.i686 \
libXtst.x86_64 \
make.x86_64 \
sysstat.x86_64 \
cpp.x86_64 \
glibc-headers.x86_64 \
mpfr.x86_64 \
xorg-x11-utils.x86_64 | grep “not installed\|未安装”

有输出的软件包表明未安装,注意:在RHEL 7.2上compat-libstdc++-33.x86_64包不存在,下载了CentOS 7.2的包:compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm

配置yum

# mkdir /mnt/iso
# mount -o loop /tmp/soft/sf7.2/rhel-server-7.2-x86_64-dvd.iso /mnt/iso
# cd /etc/yum.repos.d
# cp media.repo media.repo.bak
# vi media.repo
[InstallMedia]
name=Red Hat Enterprise Linux 7.2
mediaid=1446216863.790260
metadata_expire=-1
gpgcheck=0
cost=500
enabled=1
baseurl=file:///mnt/iso

安装缺失包
# yum install xxx -y

  1. 检查/etc/hosts文件

# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
x.x.x.16 xxxx1
x.x.x.17 xxxx2
x.x.x.18 xxxx1-vip
x.x.x.19 xxxx2-vip
x.x.x.20 xxxx-cluster-scan
x.x.x.16 xxxx1-priv
x.x.x.17 xxxx2-priv

注意:不要缺少127.0.0.1   localhost这条

  1. 创建用户

/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/groupadd -g 507 asmoper
/usr/sbin/useradd -u 501 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -m grid
/usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba -d /home/oracle -m oracle
echo ora123|passwd –stdin oracle
echo grid123|passwd –stdin grid

  1. 检查防火墙和selinux

在RHEL 7中,防火墙firewalld取代了iptables
# systemctl status firewalld
如果firewalld是运行状态,则关闭iptables服务
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl is-enabled firewalld
# /usr/sbin/sestatus -v

如果selinux为enable状态,则修改/etc/selinux/config文件:
SELINUX=disabled
并重启服务器

  1. 创建lv和目录

# mkdir /oracle
# lvcreate -l 1280 -n oraclelv rhel00
# mkfs.xfs /dev/rhel00/oraclelv
向/etc/fstab中添加如下内容:
/dev/rhel00/oraclelv      /oracle                 xfs     defaults        0 0
# mount /oracle
# chown oracle:oinstall /oracle
创建Oracle需要使用的目录
chmod 775 /oracle
mkdir -p /oracle/oraInventory
chown -R grid:oinstall /oracle/oraInventory
chmod -R 775 /oracle/oraInventory
mkdir -p /oracle/grid
chown -R grid:oinstall /oracle/grid
chmod -R 775 /oracle/grid
mkdir -p /oracle/product/11.2.0/grid
chown -R grid:oinstall /oracle/product/11.2.0/grid
chmod -R 775 /oracle/product/11.2.0/grid
mkdir -p /oracle/cfgtoollogs
chown -R grid:oinstall /oracle/cfgtoollogs
chmod -R 775 /oracle/cfgtoollogs
mkdir -p /oracle/product/11.2.0/db_1
chown -R oracle:oinstall /oracle/product/11.2.0/db_1
chmod -R 775 /oracle/product/11.2.0/db_1
mkdir -p /oracle/diag
chown -R oracle:oinstall /oracle/diag
mkdir -p /oracle/admin
chown -R oracle:oinstall /oracle/admin

  1. 设置内核参数

向/etc/sysctl.conf中添加或修改如下参数:
kernel.shmmax = 268435456000
kernel.shmall = 4294967296
kernel.shmmni = 4096
kernel.sem = 5010 641280 5010 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.nr_hugepages = 92200
vm.vfs_cache_pressure=200
vm.swappiness=10
vm.min_free_kbytes=524288
vm.dirty_ratio = 5
vm.dirty_background_ratio=5
vm.dirty_writeback_centisecs=100
vm.dirty_expire_centisecs=100
vm.drop_caches=3
vm.overcommit_memory=2
kernel.panic = 10
kernel.sysrq=1
注意,需要根据主机内存大小来确定kernel.shmmax、kernel.shmall和vm.nr_hugepages的值

执行以下命令生效
# /sbin/sysctl -p

  1. 禁用Transparent HugePages

# cat /sys/kernel/mm/transparent_hugepage/enabled
[always] madvise never <4096

[vm]
transparent_hugepages=never
重启主机,检查
# cat /sys/kernel/mm/transparent_hugepage/enabled
always madvise [never]

  1. 禁用avahi-daemon

# systemctl stop avahi-daemon
# systemctl disable avahi-daemon
# systemctl status avahi-daemon

  1. 设置RemoveIPC=false

# vi /etc/systemd/logind.conf
RemoveIPC=no
重启systemd-logind服务或重启主机
# systemctl daemon-reload
# systemctl restart systemd-logind
参考:ALERT: Setting RemoveIPC=yes on Redhat 7.2 Crashes ASM and Database Instances as Well as Any Application That Uses a Shared Memory Segment (SHM) or Semaphores (SEM) (文档 ID 2081410.1)

如果后续OS升级后,也需要检查这个参数,以避免相关问题

  1. 配置SSH对等性

mkdir ~/.ssh
ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub xxxx1
ssh-copy-id -i ~/.ssh/id_rsa.pub xxxx2

注意:oracle和grid用户都需要配置SSH对等性。在两个节点上测试ssh等价性:
ssh xxxx1 date
ssh xxxx2 date

  1. 修改ntp

打开/etc/sysconfig/ntpd文件,修改如下:
# Command line options for ntpd
OPTIONS=”-x”
修改完成,需要重启ntpd服务
# systemctl restart ntpd
# ps -ef | grep ntp | grep -v grep
ntp  72819     1 0 09:34 ? 00:00:00 /usr/sbin/ntpd -u ntp:ntp -x
root 72822 72819 0 09:34 ? 00:00:00 /usr/sbin/ntpd -u ntp:ntp -x

  1. 修改limits

vi /etc/security/limits.conf
*             –   memlock        unlimited
*          soft   memlock        unlimited
*          hard   memlock        unlimited
grid soft nproc 16384
grid hard nproc 16384
grid soft nofile 65536
grid hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft nofile 65536
oracle hard nofile 65536

vi /etc/security/limits.d/20-nproc.conf
*          soft    nproc     16384
root       soft    nproc     unlimited

  1. 修改login

vi /etc/pam.d/login,添加:
session required pam_limits.so

  1. 修改profile

vi /etc/profile,添加

if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
  if [ $SHELL = &quot;/bin/ksh&quot; ]; then
    ulimit -p 16384
    ulimit -n 65536
  else
    ulimit -u 16384 -n 65536
  fi
  umask 022
fi
  1. 设置用户环境变量

grid用户
cat >> ~/.bash_profile<<EOF
ORACLE_BASE=/oracle/grid; export ORACLE_BASE
ORACLE_HOME=/oracle/product/11.2.0/grid; export ORACLE_HOME
LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
PATH=\$PATH:\$HOME/bin:\$ORACLE_HOME/bin; export PATH
EOF

oracle用户
cat >> ~/.bash_profile<<EOF
export ORACLE_BASE=/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/11.2.0/db_1
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
export PATH=\$PATH:\$HOME/bin:\$ORACLE_HOME/bin:\$ORACLE_BASE/product/11.2.0/grid/bin
export ORACLE_SID=xxxx1
alias cdtrace=’cd \$ORACLE_BASE/diag/rdbms/xxxx/\$ORACLE_SID/trace’
EOF

  1. 准备安装介质

p13390677_112040_Linux-x86-64_1of7.zip    # db安装包
p13390677_112040_Linux-x86-64_2of7.zip    # db安装包
p13390677_112040_Linux-x86-64_3of7.zip    # grid安装包
使用unzip在相应的用户中解压

  1. 安装前检查

$ ./runcluvfy.sh stage -post hwos -n xxxx1,xxxx2 -verbose

  1. 修改/ocrvote目录权限

# chown grid:oinstall /ocrvote
# su – grid

$ mkdir /ocrvote/xxxx1

  1. 安装perl-Switch

在In Perl 5.10版本往上, Switch模块默认不安装,并且在RHEL 7.2的安装介质中不带该安装包,需要手工下载安装,否则Opatch auto安装会失败,报错如下:
# opatch auto /tmp/22646198/22646198 -ocmrf /tmp/ocm.rsp
Can’t locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /oracle/product/11.2.0/grid/OPatch/crs/auto_patch.pl line 2734.
BEGIN failed–compilation aborted at /oracle/product/11.2.0/grid/OPatch/crs/auto_patch.pl line 2734.
http://search.cpan.org/~chorny/Switch-2.17/Switch.pm上下载安装包。

安装过程如下:
测试use Switch模块报错
# perl -e ‘use Switch’
Can’t locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1.
BEGIN failed–compilation aborted at -e line 1.
# pwd
/tmp
# tar xvfz Switch-2.17.tar.gz
Switch-2.17
Switch-2.17/Changes
Switch-2.17/Makefile.PL
Switch-2.17/MANIFEST
Switch-2.17/META.json
Switch-2.17/META.yml
Switch-2.17/README
Switch-2.17/Switch.pm
Switch-2.17/t
Switch-2.17/t/given.t
Switch-2.17/t/nested.t
Switch-2.17/t/switch.t
# cd Switch-2.17
# perl Makefile.PL
Checking if your kit is complete…
Looks good
Writing Makefile for Switch
# make
cp Switch.pm blib/lib/Switch.pm
Manifying blib/man3/Switch.3pm
# make install
Installing /usr/local/share/perl5/Switch.pm
Installing /usr/local/share/man/man3/Switch.3pm
Appending installation info to /usr/lib64/perl5/perllocal.pod
测试use Switch模块通过
# perl -e ‘use Switch’
参考:Opatch Auto fails with: Can’t locate Switch.pm in @INC (文档 ID 1915430.1)
# tar xvfz ExtUtils-MakeMaker-7.24.tar.gz
# cd ExtUtils-MakeMaker-7.24
# perl Makefile.PL
# make
# make install

安装Grid软件

  1. 解压grid软件

$ unzip -q p13390677_112040_Linux-x86-64_3of7.zip

  1. 对grid软件打补丁19404309

$ unzip -q p19404309_112040_Linux-x86-64.zip
$ cd b19404309
$ export ORA_SHIPS=/oracle/soft
$ cp grid/cvu_prereq.xml $ORA_SHIPS/grid/stage/cvu

  1. 安装执行命令

# /opt/VRTS/install/installsfrac62 -configure

根据提示,输入如下参数:
Do you want to continue? [y,n,q] (y)
Enter DISPLAY environment variable: [b] x.x.x.x:0.0
Enter Oracle UNIX user name: [b] grid
Enter Oracle UNIX group name: [b] (oinstall)
Enter absolute path of Oracle Base directory: [b] /oracle/grid
Enter absolute path of Oracle Clusterware/Grid Infrastructure Home directory: [b] /oracle/product/11.2.0/grid

Enter absolute path of Oracle Clusterware install image: [b] /oracle/soft/grid
Oracle Version Detected: 11.2.0.4

由于存在BUG,只安装Oracle Grid Infrastructure软件,后面打完补丁后再配置GI

实际上NTP已经运行了,可能是Oracle安装包的Bug
# systemctl status ntpd

  • ntpd.service – Network Time Service
  • Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
    Active: active (running) since 四 2016-06-02 20:08:04 CST; 39min ago
    Process: 15679 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
    Main PID: 15709 (ntpd)
    CGroup: /system.slice/ntpd.service
    ├─15709 /usr/sbin/ntpd -u ntp:ntp -x
    └─15711 /usr/sbin/ntpd -u ntp:ntp -x

    这里,实际上grid软件只安装到节点1,只在节点1上执行:
    # /oracle/oraInventory/orainstRoot.sh
    # /oracle/product/11.2.0/grid/root.sh

    节点2上还没有复制过来
    $ cd $ORACLE_HOME
    $ ls -l
    总用量 0

    打补丁18370031

    以下操作只需要在节点1上完成,节点2上还没有grid软件

    1. 更新Opatch

    # chmod g+w /oracle/product/11.2.0/grid
    $ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.old
    $ unzip -q p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME
    $ ls -l $ORACLE_HOME | grep OPatch
    drwxr-x— 10 grid oinstall 4096 8月  18 2015 OPatch
    drwxr-xr-x  8 grid oinstall 4096 6月   2 21:36 OPatch.old
    $ $ORACLE_HOME/OPatch/opatch version
    OPatch Version: 11.2.0.3.12
    OPatch succeeded.
    # chmod g-w /oracle/product/11.2.0/grid

    1. 打补丁

    $ unzip -q p18370031_112040_Linux-x86-64.zip -d /tmp/18370031
    $ cd /tmp
    $ $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
    OCM Installation Response Generator 10.3.7.0.0 – Production
    Copyright (c) 2005, 2012, Oracle and/or its affiliates.  All rights reserved.
    Provide your email address to be informed of security issues, install and
    initiate Oracle Configuration Manager. Easier for you if you use your My
    Oracle Support Email address/User Name.
    Visit http://www.oracle.com/support/policies.html for details.
    Email address/User Name:
    You have not provided an email address for notification of security issues.
    Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:  Y
    The OCM configuration response file (ocm.rsp) was successfully created.
    $ cd /tmp/18370031/18370031
    $ $ORACLE_HOME/OPatch/opatch apply -oh /oracle/product/11.2.0/grid -ocmrf /tmp/ocm.rsp

    配置Grid

    1. 克隆grid软件到节点2

    # tar -cvpf grid_soft.tar admin cfgtoollogs diag grid oraInventory product
    # cd /oracle
    # scp grid@x.x.x.x:/oracle/grid_soft.tar ./
    # tar xvf grid_soft.tar
    # /oracle/oraInventory/orainstRoot.sh
    # /oracle/product/11.2.0/grid/root.sh

    1. 克隆 ORACLE_HOME配置

    节点1
    # cd /oracle/oraInventory
    # rm -rf *
    # su – grid
    $ cd $ORACLE_HOME/clone/bin
    $ perl clone.pl -silent -debug ORACLE_BASE=/oracle/grid ORACLE_HOME=/oracle/product/11.2.0/grid ORACLE_HOME_NAME=Ora11g_gridinfrahome1  INVENTORY_LOCATION=/oracle/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'”CLUSTER_NODES={xxxx1,xxxx2}”‘  -O'”LOCAL_NODE=xxxx1“‘ CRS=TRUE -ignoreSysPrereqs

    配置完成执行:
    # /oracle/product/11.2.0/grid/root.sh
    节点2
    # cd /oracle/oraInventory
    # rm -rf *
    # su – grid
    $ cd $ORACLE_HOME/clone/bin
    $ perl clone.pl -silent -debug ORACLE_BASE=/oracle/grid ORACLE_HOME=/oracle/product/11.2.0/grid ORACLE_HOME_NAME=Ora11g_gridinfrahome1  INVENTORY_LOCATION=/oracle/oraInventory OSDBA_GROUP=oinstall OSOPER_GROUP=dba -O'”CLUSTER_NODES={xxxx1,xxxx2}”‘  -O'”LOCAL_NODE=xxxx2“‘ CRS=TRUE -ignoreSysPrereqs

    # /oracle/product/11.2.0/grid/root.sh

    1. 进行Cluster配置

    # su – grid
    $ export LANG=C
    $ export DISPLAY=x.x.x.x:0.0
    $ $ORACLE_HOME/crs/config/config.sh

    在节点1执行:
    # /oracle/product/11.2.0/grid/root.sh
    在节点2执行:
    # /oracle/product/11.2.0/grid/root.sh

    $ crsctl status res -t
    ————————————————————–
    NAME           TARGET  STATE   SERVER       STATE_DETAILS
    ————————————————————–
    Local Resources
    ————————————————————–
    ora.LISTENER.lsnr
    ONLINE  ONLINE  xxxx1
    ONLINE  ONLINE  xxxx2
    ora.asm
    OFFLINE OFFLINE xxxx1    Instance Shutdown
    OFFLINE OFFLINE xxxx2
    ora.gsd
    OFFLINE OFFLINE xxxx1
    OFFLINE OFFLINE xxxx2
    ora.net1.network
    ONLINE  ONLINE  xxxx1
    ONLINE  ONLINE  xxxx2
    ora.ons
    ONLINE  ONLINE  xxxx1
    ONLINE  ONLINE  xxxx2
    ————————————————————–
    Cluster Resources
    ————————————————————–
    ora.LISTENER_SCAN1.lsnr
    1        ONLINE  ONLINE  xxxx1
    ora.cvu
    1        ONLINE  ONLINE  xxxx1
    ora.xxxx1.vip
    1        ONLINE  ONLINE  xxxx1
    ora.xxxx2.vip
    1        ONLINE  ONLINE  xxxx2
    ora.oc4j
    1        ONLINE  ONLINE  xxxx1
    ora.scan1.vip
    1        ONLINE  ONLINE  xxxx1

    安装DB 软件

    1. 解压DB软件

    $ unzip -q p13390677_112040_Linux-x86-64_1of7.zip
    $ unzip -q p13390677_112040_Linux-x86-64_2of7.zip

    1. 对db软件打补丁19404309

    $ unzip -q p19404309_112040_Linux-x86-64.zip
    $ cd b19404309
    $ export ORA_SHIPS=/oracle/soft
    $ cp database/cvu_prereq.xml $ORA_SHIPS/database/stage/cvu

    1. 安装执行命令

    # /opt/VRTS/install/installsfrac62 -configure

    根据提示,输入以下参数:
    Enter DISPLAY environment variable: [b] (x.x.x.x:0.0)
    Enter Oracle UNIX user name: [b] (grid) oracle
    Enter Oracle UNIX group name: [b] (oinstall)
    Enter absolute path of Oracle Base directory: [b] (/oracle/grid) /oracle
    The permissions for the root (/) directory will not be modified for the specified Oracle Base directory, and it may cause the Oracle 11g Release 2 installation to
    fail. Do you want to continue ? [y,n,q] (y)
    Enter absolute path of Oracle Clusterware/Grid Infrastructure Home directory: [b] (/oracle/product/11.2.0/grid)
    Enter absolute path of Oracle Database Home directory: [b] /oracle/product/11.2.0/db_1
    Enter absolute path of Oracle Database install image: [b] /oracle/soft/database
    Oracle Version Detected: 11.2.0.4

    同样时钟同步NTP校验也是存在Bug

    这个问题是Bug 19692824,参考Installation of Oracle 11.2.0.4 Database Software on OL7 fails with “undefined reference to symbol ‘B_DestroyKeyObject’” error (文档 ID 1965691.1)。Oracle建议Ignore,安装完后打Patch 19692824。其实不用,另开一个窗口,直接修改ins_emagent.mk文件

    $ vi $ORACLE_HOME/sysman/lib/ins_emagent.mk
    #===========================
    #  emdctl
    #===========================
    $(SYSMANBIN)emdctl:
    $(MK_EMAGENT_NMECTL)
    修改为:
    #===========================
    #  emdctl
    #===========================
    $(SYSMANBIN)emdctl:
    $(MK_EMAGENT_NMECTL) -lnnz11
    然后点击Retry继续安装

    在两个节点上按顺序执行/oracle/product/11.2.0/db_1/root.sh脚本

    安装PSU

    1. 介质

    p6880880_112000_Linux-x86-64.zip
    p22646198_112040_Linux-x86-64.zip
    由于grid软件Opatch已打,此处不需要再升级Grid的Opatch,只需要升级Db的OPatch

    1. 升级Opatch软件

    $ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.old
    $ unzip -q p6880880_112000_Linux-x86-64.zip -d $ORACLE_HOME
    $ $ORACLE_HOME/OPatch/opatch version
    OPatch Version: 11.2.0.3.12
    OPatch succeeded.

    1. 安装PSU

    使用grid用户解压
    $ unzip -q p22646198_112040_Linux-x86-64.zip -d /tmp/22646198
    使用grid用户生成ocm.rsp文件
    $ cd /tmp/
    $ $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
    使用root用户执行
    注意:在RHEL 7.2上需要安装perl Switch模块,否则opatch auto会失败
    # export PATH=$PATH:/oracle/product/11.2.0/grid/OPatch
    # export LANG=C
    # opatch auto /tmp/22646198/22646198 -ocmrf /tmp/ocm.rsp
    # opatch auto /tmp/22646198/22646198 -oh /oracle/product/11.2.0/db_1 -ocmrf /tmp/ocm.rsp

    后续建库

    没有太大问题,略…..

    关于紫砂壶

    感悟技术人生
    此条目发表在Oracle基础知识分类目录,贴了标签。将固定链接加入收藏夹。