Patch 21352635 - Database Patch Set Update 11.2.0.4.8

一、OPatch工具检查及升级

OPatch工具包,在安装目录$ORACLE_HOME下,PSU安装升级,都是通过OPatch来完成的。PSU的升级安装对OPatch的版本有一定的要求,关于这一点,可以查看PSU的Readme文档。例如,要安装p21352635_112040_Linux-x86-64,则必须要11.2.0.3.6或更高版本的OPatch。

1.1、确定当前系统的OPatch版本。

方法如下所示:

[oracle@Oracle11g ~]$cd /u01/app/oracle/product/11.2.0/db_1/OPatch/

[oracle@Oracle11g OPatch]$./opatch version

Invoking OPatch 11.1.0.6.6

OPatch Version: 11.1.0.6.6

OPatch succeeded.

显然,当前系统的OPatch版本不适合安装补丁p21352635_112040_Linux-x86-64,要先升级OPatch,升级步骤如下:

1.2、备份当前版本的OPatch

[oracle@Oracle11g db_1]$ tar cvf OPatch.tar OPatch/   # 也可以直接覆盖

[oracle@Oracle11g db_1]$ cd OPatch

[oracle@Oracle11g OPatch]$ rm -rf *   --删除文件

1.3、下载对于版本的OPatch解压至$ORACLE_HOME目录下

然后授予执行权限。

[oracle@Oracle11g opatchs]$ cd  /home/oracle/opatchs   --这个是存放补丁包的目录

[oracle@Oracle11g opatchs]$ ls -ltr

总计 122932

drwxrwxr-x 10 oracle oinstall     4096 2015-09-01 21352635

-rw-rw-r--  1 oracle oinstall    65235 2015-10-24 PatchSearch.xml

-rw-r--r--  1 oracle oinstall 72935280 2017-06-19 p21352635_112040_Linux-x86-64.zip安全漏洞的补丁包

-rw-r--r--  1 oracle oinstall 52733900 2017-06-19 p6880880_112000_Linux-x86-64.zip  --升级opatch的补丁包

[oracle@Oracle11g opatchs]$ unzip p6880880_112000_Linux-x86-64.zip -d /u01/app/oracle/product/11.2.0/db_1 

--解压opatch升级包至$ORACLE_HOME目录下

[oracle@Oracle11g OPatch]$ cd /u01/app/oracle/product/11.2.0/db_1/OPatch

[oracle@Oracle11g OPatch]$ chmod +x opatch opatch.bat opatchdiag opatchdiag.bat

1.4、重新验证OPatch版本

[oracle@Oracle11g OPatch]$ cd

/u01/app/oracle/product/11.2.0/db_1/OPatch

 

[oracle@Oracle11g OPatch]$./opatch version

OPatch Version: 11.2.0.3.12

OPatch succeeded.–okopatch版本升级成功

二、应用补丁

主要,首先必须保证数据库实例+监听正常关闭。

[oracle@Oracle11g opatchs]$ cd  /home/oracle/opatchs这是存放补丁包的路径

[oracle@Oracle11g opatchs]$ unzip p21352635_112040_Linux-x86-64.zip

……

篇幅很长,略

……

[oracle@Oracle11g opatchs]$ cd 21352635/

[oracle@Oracle11g 21352635]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatchprereqCheckConflictAgainstOHWithDetail -ph ./  --这是预安装的检查

Oracle 中间补丁程序安装程序版本 11.2.0.3.12

版权所有 (c) 2017, Oracle Corporation。保留所有权利。

PREREQ session

Oracle Home       : /u01/app/oracle/product/11.2.0/db_1

Central Inventory : /u01/app/oraInventory

from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc

OPatch version    : 11.2.0.3.12

OUI version       : 11.2.0.1.0

Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2017-05-26_20-34-20下午_1.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

[oracle@Oracle11g 21352635]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch  apply 

--安装补丁包

Oracle Interim Patch Installer version 11.2.0.3.6

Copyright (c) 2013, Oracle Corporation.  All rights reserved.

 

Oracle Home       : /u01/app/oracle/product/11.2.0/db_1

Central Inventory : /u01/app/oraInventory

   from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc

OPatch version    : 11.2.0.3.6

OUI version       : 11.2.0.4.0

Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2016-07-12_09-40-56AM_1.log

 

Verifying environment and performing prerequisite checks...

OPatch continues with these patches:   17478514  18031668  18522509  19121551  19769489  20299013  20760982  21352635 

 

Do you want to proceed? [y|n]

 

...省略部分内容...

 

Backing up files...

Applying sub-patch '17478514' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.sdo, 11.2.0.4.0...

 

Patching component oracle.sysman.agent, 10.2.0.4.5...

 

Patching component oracle.xdk, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.sdo.locator, 11.2.0.4.0...

 

Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...

 

Patching component oracle.xdk.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '18031668' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.ldap.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.crs, 11.2.0.4.0...

 

Patching component oracle.precomp.common, 11.2.0.4.0...

 

Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...

 

Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '18522509' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.precomp.common, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '19121551' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.precomp.common, 11.2.0.4.0...

 

Patching component oracle.sysman.console.db, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.ordim.client, 11.2.0.4.0...

 

Patching component oracle.ordim.jai, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '19769489' to OH '/u01/app/oracle/product/11.2.0/db_1'

ApplySession: Optional component(s) [ oracle.sysman.agent, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.

 

Patching component oracle.precomp.common, 11.2.0.4.0...

Patching component oracle.ovm, 11.2.0.4.0...

 

Patching component oracle.xdk, 11.2.0.4.0...

 

Patching component oracle.rdbms.util, 11.2.0.4.0...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.xdk.parser.java, 11.2.0.4.0...

 

Patching component oracle.oraolap, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.xdk.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '20299013' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.rdbms.dv, 11.2.0.4.0...

 

Patching component oracle.rdbms.oci, 11.2.0.4.0...

 

Patching component oracle.precomp.common, 11.2.0.4.0...

 

Patching component oracle.sysman.agent, 10.2.0.4.5...

 

Patching component oracle.xdk, 11.2.0.4.0...

 

Patching component oracle.sysman.common, 10.2.0.4.5...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.xdk.parser.java, 11.2.0.4.0...

 

Patching component oracle.sysman.console.db, 11.2.0.4.0...

 

Patching component oracle.xdk.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.sysman.common.core, 10.2.0.4.5...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Patching component oracle.rdbms.deconfig, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '20760982' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.sysman.console.db, 11.2.0.4.0...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch '21352635' to OH '/u01/app/oracle/product/11.2.0/db_1'

 

Patching component oracle.sysman.agent, 10.2.0.4.5...

 

Patching component oracle.rdbms.rsf, 11.2.0.4.0...

 

Patching component oracle.rdbms.rman, 11.2.0.4.0...

 

Patching component oracle.rdbms, 11.2.0.4.0...

 

Verifying the update...

Composite patch 21352635 successfully applied.

Log file location: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2016-07-12_09-40-56AM_1.log

 

OPatch succeeded.

四、运行catbundle.sql和utlrp.sql脚本,对于RAC环境,仅需要在一个节点上运行。

(1)、catbundle.sql将补丁信息反射到数据库中,使数据库知道你最后一次打了什么补丁或者回滚了哪些补丁。

[oracle@Oracle11g 21352635]$ cd $ORACLE_HOME/rdbms/admin

[oracle@Oracle11g admin]$ sqlplus /nolog

SQL> CONNECT / AS SYSDBA

SQL> STARTUP;

SQL>@catbundle.sql  psu apply

SQL>exit

(2)、utlrp.sql脚本可以在数据库运行的状态下编译数据库中的invalid对象,Oracle建议在对数据库进行迁移、升级、降级后都运行一遍utlrp.sql以编译无效对象。

cd $ORACLE_HOME/rdbms/admin

sqlplus /nolog

SQL> CONNECT / AS SYSDBA

SQL>@utlrp.sql

(3)、查看 $ORACLE_HOME/cfgtoollogs/catbundle or

$ORACLE_BASE/cfgtoollogs/catbundle目录下的的日志文件是否记录错误。

catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log

catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log

至此,本次patch过程结束。

三、确认升级后补丁信息

(1)、通过OPatch的信息库记录,可以看到补丁信息。

[oracle@Oracle11g 21352635]$ $ORACLE_HOME/OPatch/opatch  lsinventory

Oracle Interim Patch Installer version 11.2.0.3.6

Copyright (c) 2013, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/11.2.0/db_1

Central Inventory : /u01/app/oraInventory

from           : /u01/app/oracle/product/11.2.0/db_1/oraInst.loc

OPatch version    : 11.2.0.3.6

OUI version       : 11.2.0.4.0

Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2016-07-12_11-01-23AM_1.log

Lsinventory Output file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2016-07-12_11-01-23AM.txt

--------------------------------------------------------------------------------

Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.4.0

There are 1 product(s) installed in this Oracle Home.

Interim patches (1) :

Patch  21352635     : applied on Tue Jul 12 09:50:04 CST 2016

Unique Patch ID:  19227862

Patch description:  "Database Patch Set Update : 11.2.0.4.8 (21352635)"

Created on 1 Sep 2015, 07:49:44 hrs

Sub-patch  20760982; "Database Patch Set Update : 11.2.0.4.7 (20760982)"

Sub-patch  20299013; "Database Patch Set Update : 11.2.0.4.6 (20299013)"

…….

篇幅太长略

……

--------------------------------------------------------------------------------

OPatch succeeded.

使用opatch工具 打补丁Patch 21352635 -(Database Patch Set Update 11.2.0.4.8)的更多相关文章

  1. Patch 21352635 - Database Patch Set Update 11.2.0.4.8

    一.CPU和PSU 近日,将数据库从9.2.0.6升级到11.2.0.4后,发现11.2.0.4通过DBLINK访问其他的9i库时发生ORA-02072错误,通过Google找到解决方案,即升级到PS ...

  2. Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct2014) - 傲游云浏览

    Skip Headers Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct ...

  3. 单机Oracle+asm(11.2.0.3.0) Patch Set Update(11.2.0.3.7 )

    之前写过一篇关于PSU升级的案例,参考如下: http://blog.csdn.net/jyjxs/article/details/8983880 但是,感觉有些地方理解的不是很透彻明白,照猫画虎的比 ...

  4. Oracle Database 11g Release 2(11.2.0.3.0) RAC On Redhat Linux 5.8 Using Vmware Workstation 9.0

    一,简介 二,配置虚拟机 1,创建虚拟机 (1)添加三块儿网卡:   主节点 二节点 eth0:    公网  192.168.1.20/24   NAT eth0:    公网  192.168.1 ...

  5. opatch on-line patch and standby-fisrt patch

    opatch on-line patch and standby-fisrt patch on-line patch 有缺陷,不建议使用,standby-fisrt patch 可以考虑使用 #### ...

  6. Oracle 补丁及opatch 工具介绍

    一. CPU(Critical Patch Update) 一个CPU内包含了对多个安全漏洞的修复,并且也包括相应必需的非安全漏洞的补丁.CPU是累积型的,只要安装最新发布的CPU即可,其中包括之前发 ...

  7. [转帖]Oracle 补丁体系(PSR/PSU/CPU) 及 opatch 工具 介绍

    Oracle 补丁体系(PSR/PSU/CPU) 及 opatch 工具 介绍 原文:http://blog.csdn.net/tianlesoftware/article/details/58095 ...

  8. 转://Oracle补丁及opatch工具介绍

    一. CPU(Critical Patch Update) 一个CPU内包含了对多个安全漏洞的修复,并且也包括相应必需的非安全漏洞的补丁.CPU是累积型的,只要安装最新发布的CPU即可,其中包括之前发 ...

  9. Oracle 补丁体系 及 opatch 工具 介绍

    一. CPU(Critical Patch Update) 一个CPU内包含了对多个安全漏洞的修复,并且也包括相应必需的非安全漏洞的补丁.CPU是累积型的,只要安装最新发布的CPU即可,其中包括之前发 ...

随机推荐

  1. bzoj1658: [Usaco2006 Mar]Water Slides 滑水

    Description It's a hot summer day, and Farmer John is letting Betsy go to the water park where she i ...

  2. 20145225唐振遠《网络对抗》Exp5 MSF基础应用

    基础问题回答 用自己的话解释什么是exploit,payload,encode? exploit就相当于是载具,将真正要负责攻击的代码传送到靶机中,我觉得老师上课举的火箭和卫星的例子非常形象,火箭只是 ...

  3. C# 获取枚举的描述属性

    在使用枚举类型时,我们需要取名称和值,甚至有时候还需要取枚举类型的描述.通过反射,我们能获取到枚举类型的描述属性. 首先我们需要给枚举类型添加描述属性(属性都没有是不可能取到的),[Descripti ...

  4. Python3基础 time 索引值访问元组中的年月日时分秒

             Python : 3.7.0          OS : Ubuntu 18.04.1 LTS         IDE : PyCharm 2018.2.4       Conda ...

  5. bootstrap5

    列表组的使用 ul.list-group > li.list-group-item *5... 列表组中可以放置徽标: 在li中放置 span.badge. bootstrap中的情景类: 实际 ...

  6. hdu4528 小明系列故事——捉迷藏(记录状态的BFS)题解

    思路: 一道BFS题,和以前的BFS有点不同,这里的vis数组需要记录每次走时的状态,所以开了3维,只对该状态下的vis修改. 注意坑点:S的位置是可以走的 代码: #include<queue ...

  7. JDBC中 execute 与 executeUpdate的区别

    相同点 execute与executeUpdate的相同点:都可以执行增加,删除,修改 不同点 execute可以执行查询语句 然后通过getResultSet,把结果集取出来 executeUpda ...

  8. 【译】Asp.net core应用在 Kubernetes上内存使用率过高问题分析

    原文:https://blog.markvincze.com/troubleshooting-high-memory-usage-with-asp-net-core-on-kubernetes/ ps ...

  9. json库的编译方法和vs2010中导入第三方库的方法

    json库的编译方法和vs2010中导入第三方库的方法 一.去相应官网下载json.cpp文件 Jsoncpp下载:https://sourceforge.net/projects/jsoncpp/  ...

  10. 为什么我的电脑win系统没有便笺功能?为什么我在开始菜单里找不到便笺功能?

    有些网友表示,为什么我的电脑没有便笺功能?为什么我在开始菜单里找不到便笺功能? 从问题可以基本判断出来,这些网友使用的Win7版本有可能是买笔记本或者台式电脑时预装的Win7家庭普通版或者Win7精简 ...