Upgrade Oracle Database 12c Release 2(12.2) RAC on RHEL7.3 with RU
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的更多相关文章
- 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 ...
- 转: 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 ...
- 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以前的版本中,如果要实现列自增长,需要通过序 ...
- 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 ...
- 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. ...
- Oracle Database 12c Release 2安装详解
第1章 Oracle Database 12c Release 2安装详解 1.1 下载方法 oracle官网https://www.oracle.com 1)打开官方网站,找到下载连接 2)选择更多 ...
- Oracle Database 12c Release 1下载安装(自身经历)
1.访问Oracle官网:https://www.oracle.com/index.html,下载Oracle Database 12c Release 1 (注意:File1和File2都要下载!! ...
- 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 ...
- Oracle Database 12c Release 2安装过程实录
前言----------公司数据库用的是oracle,由于oracle数据库没有做监控,所有搭个环境用于测试zabbix通过orabbix插件监控oracle数据库,下面先搭建oracle数据库. 简 ...
随机推荐
- php5.6+apache2.4+linux搭建php环境
前言 最近突然想搭建个人博客,尽管笔者擅长java-web,但综合各种原因,于是选择了大众化的php+mysql搭建个人博客.对于php,只闻其大名,但从未学过,于是,笔者将从php环境搭建开始,到服 ...
- 用python实现一个简单的聊天功能,tcp,udp,socketserver版本
基于tcp协议版本 服务器端 import socket server = socket.socket() server.bind(('127.0.0.1', 8001)) server.listen ...
- Python中操作HTTP请求的urllib模块详解
urllib 是 Python 标准库中用于网络请求的库.该库有四个模块,分别是urllib.request,urllib.error,urllib.parse,urllib.robotparser. ...
- Python入门与基本概念
简介:本学习笔记基于ubuntu,Ubuntu已经内置了python2.7,python2.7既包含老版本的属性,有含有新版本的一些特性,用于对3.x版本的过渡,可以拿来入门学习,入门之后可以再学习p ...
- MS SQL Server数据库查询优化技巧
[摘 要]本文主要是对MS SQL Server数据库查询优化技巧进行了说明和分析,对索引使用.查询条件以及数据表的设计等进行了阐述.中国论文网 http://www.xzbu.com/2/view- ...
- 怎么配置eclipse的联想功能
第一步:打开Eclipse,windows下,打开“window”→“Preferences” :mac下,打开“偏好设置”. 第二步:选择“Java”,展开,“Editor”,选择“Content ...
- Android sdcard之read-only
AndroidManifest.xml是否加入了SDCard的权限设置 <!-- 创建与删除文件权限 --> <uses-permission android:name=" ...
- solidity 语法学习
基于 cryptozombies.io ZombieFactory pragma solidity ^0.4.19; contract ZombieFactory { // 事件, web3.js 可 ...
- LeetCode 题解之Minimum Index Sum of Two Lists
1.题目描述 2.问题分析 直接是用hash table 解决问题 3.代码 vector<string> findRestaurant(vector<string>& ...
- leetcode 之 Degree of an Array
1.题目描述 Given a non-empty array of non-negative integers nums, the degree of this array is defined as ...