OracleDatabase 11g 11.2.0.1.0
Thereare 1 products installed in this Oracle Home.
Interimpatches (1) :
Patch 8898852 : applied on Fri Oct 25 17:08:23 CST 2013
UniquePatch ID: 12383575
Created on 12 Apr 2010, 05:52:21 hrs PST8PDT
Bugs fixed:
8898852(可以看到补丁已经成功安装)
Racsystem comprising of multiple nodes
Local node = rac1
Remote node = rac2
OPatchsucceeded.
可以看到这个补丁已经安装成功,接下来同样的方式在其他节点执行一边,这里就不在演示,总之个别补丁的安装非常简单,只要操作过一次就基本能够掌握,接下来我们就来安装比较复杂的P9655006补丁,首先把补丁程序上传到grid用户的home目录,然后创建一个存放目录/home/grid/stage/patch,进行解压操作,解压的时候采用unzip命令,如下:
[grid@rac1~]$ unzip p9655006_112010_LINUX.zip -d /home/grid/stage/patch
inflating: stage/patch/9655006/files/bin/gnsd
inflating: stage/patch/9655006/files/bin/gnsd.bin
inflating: stage/patch/9655006/files/bin/oclskd.bin
inflating: stage/patch/9655006/files/bin/ocrdump.bin
inflating: stage/patch/9655006/files/bin/acfsdriverstate
……(省略)
inflating:stage/patch/9654983/files/javavm/install/jvmursc.sql
inflating: stage/patch/9654983/patchmd.xml
creating: stage/patch/9654983/custom/
creating: stage/patch/9654983/custom/scripts/
inflating: stage/patch/9654983/custom/scripts/pre
inflating: stage/patch/9654983/custom/scripts/post
inflating: stage/patch/bundle.xml
extracting: stage/patch/README.txt
inflating: stage/patch/README.html
[grid@rac1~]$ cd stage/patch/
[grid@rac1patch]$ ls
9654983 9655006 bundle.xml README.html README.txt
5.3.2. 前提条件核实
可以看到通过解压得到2个文件夹(9654983和9655006)和一个README.html说明文档,首先我们还是应该认真阅读下该补丁的说明文档,这里我要提醒每个技术人员,记到每次在安装补丁前都应该对补丁的说明文档进行认真的阅读,防止安装过程出现意外,首先来看2.2补丁安装的先决条件,部分截图如下:
该补丁主要有两点需要注意的,提前对环境进行准备:
第一点:要求Opatch工具的版本必须是11.2.0.1.3及之后,我们来通过opatch version命令查看下当前版本信息,如下:
[grid@rac1OPatch]$ ./opatch version
InvokingOPatch 11.1.0.6.6
OPatchVersion: 11.1.0.6.6
OPatchsucceeded.
可以看到版本不符合要求,这就需要我们在metalink上去下载符合要求的Opatch工具,下载地址在说明文档中有连接,我们直接点击进入连接下载p6880880_112000_LINUX.zip压缩文件,然后通过下面的命令,解压到crs_home目录覆盖原来的Opatach文件,如下:
[grid@rac1~]$ unzip p6880880_112000_LINUX.zip -d /u01/app/grid/
Archive: p6880880_112000_LINUX.zip
creating: /u01/app/grid/OPatch/oplan/
inflating:/u01/app/grid/OPatch/oplan/README.html
inflating:/u01/app/grid/OPatch/oplan/README.txt
creating: /u01/app/grid/OPatch/oplan/jlib/
inflating: /u01/app/grid/OPatch/oplan/jlib/oplan.jar
……
然后切换到oracle用户,同样解压到oracle_home目录,如下
[oracle@rac1~]$ unzip p6880880_112000_LINUX.zip -d /u01/app/oracle/product/11.2.0/db_1/
Archive: p6880880_112000_LINUX.zip
creating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/
inflating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/README.html
inflating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/README.txt
creating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/
inflating: /u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/oplan.jar
inflating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/oracle.oplan.classpath.jar
inflating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/automation.jar
inflating: /u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/OsysModel.jar
inflating:/u01/app/oracle/product/11.2.0/db_1/OPatch/oplan/jlib/EMrepoDrivers.jar
……
然后分别再用grid和oracle用户确认下其对应的OPatch工具的版本情况,是否已经更新,如下
[grid@rac1OPatch]$ ./opatch version
OPatchVersion: 11.2.0.3.5
OPatchsucceeded
[oracle@rac1OPatch]$ ./opatch version
OPatchVersion: 11.2.0.3.5
OPatchsucceeded