Upgrade Oracle Database 12c Release 2(12.2) RAC on RHEL7.3

-- [ RU: 26610291 (GRID INFRASTRUCTURE RELEASE UPDATE 12.2.0.1.170814) ]

1. 解压补丁包

unzip p26610291_122010_Linux-x86-64.zip -d /ups/soft/

  

2. 更新opatch工具包

su - root
mv /ups/oracle/12.2/grid/OPatch /ups/oracle/12.2/grid/OPatch_20171010

cd /ups/soft
unzip p6880880_122010_Linux-x86-64.zip -d /ups/oracle/12.2/grid
chown -R grid:oinstall /ups/oracle/12.2/grid/OPatch
chmod -R +x /ups/oracle/12.2/grid/OPatch

su - oracle
cd /ups/soft
mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch_$(date +%Y%m%d)
unzip p6880880_122010_Linux-x86-64.zip -d /ups/oracle/database/product/12.2/db_1/

  

3. Run OPatch Conflict Check

For Grid Infrastructure Home, as home user:
su - grid

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /ups/soft/26610291/26609817
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /ups/soft/26610291/26609966
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /ups/soft/26610291/25586399

For Database home, as home user:

su - oracle
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /ups/soft/26610291/26609817
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /ups/soft/26610291/26609966

  

4. Run OPatch SystemSpace Check

For Grid Infrastructure Home, as home user:
su - grid
cat >> /tmp/patch_list_gihome.txt << EOF
/ups/soft/26610291/25586399
/ups/soft/26610291/26609966
/ups/soft/26610291/26609817
EOF

$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt

For Database home, as home user:
su - oracle
cat >> /tmp/patch_list_dbhome.txt << EOF
/ups/soft/26610291/26609966
/ups/soft/26610291/26609817
EOF

$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt

5. 检查系统软件包是否缺失

su - grid
$ORACLE_HOME/OPatch/opatch prereq CheckSystemCommandAvailable -phBaseDir /ups/soft/26610291/26609817

[grid@orc2 ~]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemCommandAvailable -phBaseDir /ups/soft/26610291/26609817
Oracle Interim Patch Installer version 12.2.0.1.9
Copyright (c) 2017, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : /ups/oracle/12.2/grid
Central Inventory : /ups/oracle/oraInventory
   from           : /ups/oracle/12.2/grid/oraInst.loc
OPatch version    : 12.2.0.1.9
OUI version       : 12.2.0.1.4
Log file location : /ups/oracle/12.2/grid/cfgtoollogs/opatch/opatch2017-10-10_21-41-19PM_1.log

Invoking prereq "checksystemcommandavailable"

Prereq "checkSystemCommandAvailable" for patch 26609817 failed.

The details are:
Missing command :fuser

#如上缺少fuser命令,则安装该软件包再进行升级
# 检查命令软件包名称
yum provides "fuser"
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
rhel-Packages/filelists_db                                                                                                                                            | 3.3 MB  00:00:00
psmisc-22.20-11.el7.x86_64 : Utilities for managing processes on your system
Repo        : rhel-Packages
Matched from:
Filename    : /usr/sbin/fuser

# 发现缺少psmisc软件包
yum -y install psmisc

  

6. opatchauto安装RU补丁包

opatchauto
su - root
2.6.1 Add the directory containing the opatchauto to the $PATH environment variable. For example:
export PATH=$PATH:/ups/oracle/12.2/grid/OPatch
2.6.2 To patch the GI home and all Oracle RAC database homes of the same version:
/ups/oracle/12.2/grid/OPatch/opatchauto apply /ups/soft/26610291
2.6.3 To patch only the GI home:
opatchauto apply <UNZIPPED_PATCH_LOCATION>/26610291 -oh <GI_HOME>
2.6.4 To patch one or more Oracle RAC database homes:
opatchauto apply <UNZIPPED_PATCH_LOCATION>/26610291 -oh <oracle_home1_path>,<oracle_home2_path>
2.6.5 To roll back the patch from the GI home and each Oracle RAC database home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/26610291
2.6.6 To roll back the patch from the GI home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/26610291 -oh <path to GI home>
2.6.7 To roll back the patch from the Oracle RAC database home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/26610291 -oh <oracle_home1_path>,<oracle_home2_path>

  

7. 结果检查

sqlplus "/ as sysdba"
set lines 168 pages 999
col DESCRIPTION for a40
col status for a10
col version for a10
select patch_id,PATCH_UID,STATUS,VERSION,BUNDLE_ID,to_char(ACTION_TIME,'yyyy-mm-dd hh24:mi:ss') ACTION_TIME,DESCRIPTION from dba_registry_sqlpatch;
  PATCH_ID  PATCH_UID STATUS     VERSION       BUNDLE_ID ACTION_TIME         DESCRIPTION
---------- ---------- ---------- ------------ ---------- ------------------- ----------------------------------------
  26609817   21483023 SUCCESS    12.2.0.1         170814 2017-10-11 09:37:18 DATABASE RELEASE UPDATE 12.2.0.1.170814

SQL>

 

Upgrade Oracle Database 12c Release 2(12.2) RAC on RHEL7.3 with RU的更多相关文章

  1. Installing Oracle Database 12c Release 2(12.2) RAC on RHEL7.3 in Silent Mode

    概要 在RHEL7静默方式安装oracle database 12.2 RAC. 一.环境配置 1. 配置hosts文件 cp /etc/hosts /etc/hosts_$(date +%Y%d%m ...

  2. 转: Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition

    http://www.cnblogs.com/xqzt/p/4395053.html Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Ent ...

  3. Oracle列自增实现(2)-Identity Columns in Oracle Database 12c Release 1 (12.1)

    Oracle列自增-Identity Columns in Oracle Database 12c Release 1 (12.1) 在ORACLE 12C以前的版本中,如果要实现列自增长,需要通过序 ...

  4. Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition

    Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) 最近因需要在Oracle 数据库上建立ODI的资料档案库,需要安装Oracle Database ...

  5. 12 Things Developers Will Love About Oracle Database 12c Release 2

    by Chris Saxon-Oracle It's Here: Oracle Database 12c Release 2 (12.2) Is available on Oracle Cloud. ...

  6. Oracle Database 12c Release 2安装详解

    第1章 Oracle Database 12c Release 2安装详解 1.1 下载方法 oracle官网https://www.oracle.com 1)打开官方网站,找到下载连接 2)选择更多 ...

  7. Oracle Database 12c Release 1下载安装(自身经历)

    1.访问Oracle官网:https://www.oracle.com/index.html,下载Oracle Database 12c Release 1 (注意:File1和File2都要下载!! ...

  8. Oracle Database 12c Release 1 Installation On Oracle Linux 6.4 x86_64

    Create groups and users [root@vmdb12c ~]# groupadd oinstall [root@vmdb12c ~]# groupadd dba [root@vmd ...

  9. Oracle Database 12c Release 2安装过程实录

    前言----------公司数据库用的是oracle,由于oracle数据库没有做监控,所有搭个环境用于测试zabbix通过orabbix插件监控oracle数据库,下面先搭建oracle数据库. 简 ...

随机推荐

  1. [javaSE] 位运算符(&|^)

    位运算是直接对二进制进行计算 左移 << 右移 >> 先把整数换成四个8bit 0000-0000 0000-0000 0000-0000 0000-0000 这个二进制左右移 ...

  2. 记录:springmvc + mybatis + maven 搭建配置流程

    前言:不会配置 spring mvc,不知道为什么那样配置,也不知道从何下手,那么看这里就对了. 在 IDEA 中搭建 maven + springmvc + mybatis: 一.在 IDEA 中首 ...

  3. springJDBC 中JdbcTemplate 类方法使用

    一,Dao IUserinfDao package com.dkt.dao; import java.util.List; import com.dkt.entity.Userinfo; public ...

  4. js-数组中查找特定元素并返回所有该元素的索引

    //在数组中查找所有出现的x,并返回一个包含匹配索引的数组 function findall(a,x){ var results=[], len=a.length, pos=0; while(pos& ...

  5. Centos7配置

    1.静态ip配置 1.1  cd  /etc/sysconfig/network-scripts/ 1.2 vim ifcfg-ens33 (可通过ls查看  一般为第一个) (网关DNS1可以通过V ...

  6. requestURI的组成部分

    使用 java EE HttpServletRequest对象获取的 request.getRequestURL(); request.getRequestURI(); request.getCont ...

  7. 【AOP】spring 的AOP编程报错:[Xlint:invalidAbsoluteTypeName]error

    AOP来发过程中,报错如下: warning no match for this type name: net.shopxx.wx.institution.controller [Xlint:inva ...

  8. 5.String StringBuffer StringBuilder

    String,StringBuffer和StringBuilder三者的讲解 对于StringBuffer和StringBuilder是对Stirng的一个优化. 之前已经说过了,String对象一旦 ...

  9. git添加公钥后报错sign_and_send_pubkey: signing failed: agent refused operation

    在服务器添加完公钥后报错 sign_and_send_pubkey: signing failed: agent refused operation 解决方案: eval "$(ssh-ag ...

  10. 在 Azure 中的 Linux 虚拟机上使用 SSL 证书保护 Web 服务器

    若要保护 Web 服务器,可以使用安全套接字层 (SSL) 证书来加密 Web 流量. 这些 SSL 证书可存储在 Azure Key Vault 中,并可安全部署到 Azure 中的 Linux 虚 ...