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. Runtime初识

    什么是Runtime   我们写的代码在程序运行过程中都会被转化成runtime的C代码执行,例如[target doSomething];会被转化成objc_msgSend(target, @sel ...

  2. ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock 问题修改

    ubuntu 常见错误–Could not get lock /var/lib/dpkg/lock 通过终端安装程序sudo apt-get install xxx或者apt-get update时出 ...

  3. 撰写html标签的快捷方式2

    1.写一个含有类的标签. div.demo-inline + tap键 就会生成如下<div class="demo-inline"></div> 2.CS ...

  4. php-fpm.conf 重要参数 max_children 和 request_terminate_timeout

    php-fpm.conf 重要参数 max_children 和 request_terminate_timeout php-fpm.conf有两个至关重要的参数:一个是”max_children”, ...

  5. linux基础学习之软件安装以及常用命令(三)

    添加和查看用户: [root@localhost ~]# useradd anderson [root@localhost ~]# cat /etc/passwd 显示如下: [root@localh ...

  6. e.stopPropagation()

    1. 定义和用法 不再派发事件. 终止事件在传播过程的捕获.目标处理或起泡阶段进一步传播.调用该方法后,该节点上处理该事件的处理程序将被调用,事件不再被分派到其他节点. 2. 语法 event.sto ...

  7. WPF ListView 使用GridView 带有Header 以及点击header排序 sort

    ListView: <ListView x:Name="lvFiles" VerticalAlignment="Stretch" Background=& ...

  8. SQL注入 payload 记录

    使用 REGEXP盲注 payload select user() from users where user_id=1 and (select(user)from users where user_ ...

  9. vmware centos 安装

    一.分区 一块硬盘主分区+扩展分区最多只能有4个,其中扩展分区最多只能有1个.扩展分区不能写入数据,只能包含逻辑分区.这些都不是linux的限制,而是硬盘结构的限制. 分区号 第一种分区法: |--- ...

  10. Oracle EBS 锁

    这里仅提供查询锁和解锁.有时,锁是正常的,所以杀掉正锁着的进程有一定的风险性. 具体步骤如下: -- 1.0 查看 holder的进程 , 'Holder: ', 'Waiter: ') || sid ...