SlideShare a Scribd company logo
如何安装 Oracle one-
off 临时小补丁及注意事项


     by Maclean.liu
           liu.maclean@gmail.com
       www.oracledatabase12g.com
About Me

l Email:liu.maclean@gmail.com
l Blog:www.oracledatabase12g.com
l Oracle Certified Database Administrator Master 10g
and 11g
l Over 6 years experience with Oracle DBA technology
l Over 7 years experience with Linux technology
l Member Independent Oracle Users Group
l Member All China Users Group
l Presents for advanced Oracle topics: RAC,
DataGuard, Performance Tuning and Oracle Internal.
Oracle Database 的补丁除去我们最常见的 Patch set 大补丁集(就是那种动辄 1、2 个 G 的补丁包)外,还包括
Critical Patch Update(CPU)和 Patch Set Update(PSU),one-off Patch(一次性补丁);在数据库使用过程中出现某些
问题后(最常见的是出现 ORA-00600、ORA-07445 错误),通过 DBA 与 MOS 的协作将问题定位到某个大版本上
的具体 Bug,如果该 Bug 在该版本上现有 one-off patch 的话,我们可以通过 one-off patch 的实施来解决问
题,one-off patch 具有如下特点:



   1. one-off patch 的 patch 包一般都很小,因为它是为了修正一个或多个 bug 所特制,它一般只包含必要
      的 inventory xml 信息,以及和 bug 相关的共享库文件(一般是.o 或者.a 文件)




   2. one-off patch 绝大多数是随需随制,一般是 Oracle 内部人员发现 Bug 或者客户在生产过程中遇到
      Bug 后,向 Oracle development 开发部门提出 patch building 的 Request ,开发人员接到
      building 或 backport 的要求后会为客户系统指定的数据库版本和操作系统平台特制一个补丁(如果还没
      有的话);举例来说可能一个 bug 在 Linux 平台的 10.2.0.4 版本中已有 one-off patch,但客户在
      Solaris Sparc 平台上 10.2.0.3 上碰到同样的 bug,那么这个时候就可以提交 SR 要求 Oracle 开发部
      门 backport 这个 patch




   3. 绝大多数 one-off patch 只需要用 Opatch 工具 apply 即可,不需要升级/修正数据字典,这一点和
      Patch set/CPU/PSU 是不同的




   4. one-off patch 是针对某个特殊版本的,如 10.2.0.4 上的 one-off patch 只能针对 10.2.0.4 实施,而
      在 10.2.0.4.8(10.2.0.4 的 PSU 8)上该 one-off patch 可能是一个 conflicting Bug 即有冲突的一次
      性 bug 补丁;针对这种情况 Oracle 一般会给出当前版本上的替代 one-off patch,例如
      6996030″MERGE LABEL REQUEST ON TOP OF 10.2.0.4 FOR AUDIT TRAIL CLEAN-UP”是
      10.2.0.4 上的一个 one-off patch,但在 10.2.0.4.4 上 6996030 是一个 conflicting bug 存在冲突,
      这样我们就需要一个替代品、一个 10.2.0.4.4 上的 Equivalent patch 等价补丁,在我们的例子中这个
      patch 是 9650152 “MERGE REQUEST ON TOP OF 10.2.0.4.4 FOR BUGS 9589005 6805009
      6991606″




   5. 实施 one-off patch 意味着你的数据库软件将与其他主流版本的数据库在行为方式上有所区别,另一方
      面你需要考虑到如果发现了新的 Bug 并考虑打上另一个 one-off patch 时可能存在 Conflicting 冲突。
      大多数情况下 one-off patch 可以迅速帮我们解决 Bug,但反过来说实施任意一个 one-off patch 时我
      们可能冒着今后花费更多时间去维护数据库补丁的风险;就这一点来看,应用 one-off patch 有着它明
      显的缺点




   6. 在 11g 中提出了 hot patch 的概念,这里的 patch 就是指的 one-off patch;就目前看来 online-
      patching 只是一个噱头,因为真正具备在线实施能力的 patch 少之又少,你很难从 MOS 上的 patch 专
      栏中找到一个可用的 online-patch
7. 一个我个人的观点:Oracle GCS 会通过 stack call、trace、dump 等信息将问题定位到 bug,最为常
      见的是 ORA-00600、ORA-07445 等内部错误,这些错误因为有着明确的 error argument、stack
      call 等信息可以让 GCS 精确地定位故障,而对于另一些问题例如 process spin、异常等待事件等不产
      生明确 argument、stack、dump 的问题时,定位就要困难一些。我们经常可以看到一些 bug note,
      在客户 apply one-off patch 并设置特定 event 后 one-off patch 并不起作用,导致这种情况的原因多
      种多样,一种可能是 patch 在开发过程中存在问题(补丁代码没有被正确触发),另一种则是 bug 没有被准
      确定位。




我们目前的问题在于虽然 one-off patch 存在这样那样的问题,但很多时候又不得不实施 one-off patch(大多数原
因是停机时间限制);以及在一个已经实施了诸多 Patch set、PSU、CPU 和 one-off patch 的环境中新增 one-off
patch,为了更好地完成这项工作,我们有必要在具体实施补丁前完成以下的预备工作:




1.在定位到具体 Bug 后我们可以获得一个 Bug No#,使用该 No#到 My Oracle Support 上的 Patches & Updates
专栏中搜索该 Bug 相关的 patch 信息,这里存在三种情况:

   • 最好的情况是指定的数据库版本和操作系统平台上存在相关的 patch



   • 指定数据库版本上有 patch,注意这里的指定数据库版本需要精确到具体的 PSU,但没有指定操作系统
      平台上的,这个时候可以提交 SR 要求在指定平台上 build 一个




   • 指定数据库版本上没有 patch,注意这里的指定数据库版本需要精确到具体的 PSU,例如 10.2.0.4 上
      的 patch 是不能直接用在 10.2.0.4.x 上的;针对这种情况我们可以首先查询 Metalink Note“Patch
      Set Updates – One-off Patch Conflict Resolution”,可以从这个 Note 中查到指定 one-off
      patch 是否被包含在某个 psu 中,或者在某个 psu 上有特定的等价补丁(Equivalent on top),一部分
      one-off patch 在不同的 psu 之间还存在通用性,如 10.2.0.4.4 上的部分 patch 可以在 10.2.0.4.5 上
      实施,具体是否通用可以参考下文中冲突检查的方法来检验。如果都没有等价补丁也没有通用补丁那么
      需要提交 SR 让 Oracle 开发部门去 merge 一个




2.更复杂的情况是在现有版本上已经应用了某些特定的 patch(psu、cpu、或者其他 one-off patch),我们要保证需
要新增的 one-off patch 之间不存在 conflict 关系,也不会和系统中已有的 patch 发生 conflict,这时候我们可以使
用 opatch prereq 命令来做冲突检查并得到相关建议,如:




[oracle@rh2 tmp]$ /s01/db_1/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.1.3
Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.    All rights reserved.


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from              : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_21-41-39PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


Lsinventory Output file location : /s01/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-
06_21-41-39PM.txt


--------------------------------------------------------------------------------
Installed Top-level Products (2):


Oracle Database 10g                                                   10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3                             10.2.0.4.0
There are 2 products installed in this Oracle Home.


Interim patches (2) :


Patch   9654991       : applied on Fri May 06 21:33:38 CST 2011
Unique Patch ID:    12816418

 Created on 30 Jun 2010, 18:30:40 hrs PST8PDT

 Bugs fixed:

  9714832, 9713537, 9678695, 9655017, 9173248, 8309642, 9678697, 9678690

  9573054, 9654991

 This patch overlays patches:

  9352164

 This patch needs patches:

  9352164

 as prerequisites


Patch   9352164       : applied on Fri May 06 21:29:20 CST 2011
Unique Patch ID:    12307477

 Created on 1 Apr 2010, 11:33:14 hrs PST8PDT

 Bugs fixed:


/* 以上示例环境中实施了 10.2.0.4 上的 psu4(9352164)和 psu5(9654991) */
/* 在示例环境中我们试图实施补丁 7527908 和 9696904,这 2 个 merge patch 是针对 psu4(10.2.0.4.4)版本的,
但在 psu5(10.2.0.4.5)上没有相应的替代补丁,我们需要检测这 2 个 patch 是否和 psu5 发生冲突 */


[oracle@rh2 ~]$ mkdir $ORACLE_HOME/patches


/* 在 Oracle HOME 下创建存放 patch 的目录 */


[oracle@rh2 ~]$ cd $ORACLE_HOME/patches


[oracle@rh2 patches]$ unzip /home/oracle/patch/p7527908_102044_Linux-x86-64.zip


Archive:   /home/oracle/patch/p7527908_102044_Linux-x86-64.zip

 creating: 7527908/

 creating: 7527908/files/

 creating: 7527908/files/lib/

 creating: 7527908/files/lib/libserver10.a/

 inflating: 7527908/files/lib/libserver10.a/ktm.o

 inflating: 7527908/files/lib/libserver10.a/ktu.o

 inflating: 7527908/files/lib/libserver10.a/ktusm.o

 creating: 7527908/etc/

 creating: 7527908/etc/config/

 inflating: 7527908/etc/config/inventory

 inflating: 7527908/etc/config/actions

 creating: 7527908/etc/xml/

 inflating: 7527908/etc/xml/GenericActions.xml

 inflating: 7527908/etc/xml/ShiphomeDirectoryStructure.xml

 inflating: 7527908/README.txt


[oracle@rh2 patches]$ unzip ~/patch/p9696904_102044_Linux-x86-64.zip
Archive:   /home/oracle/patch/p9696904_102044_Linux-x86-64.zip

 creating: 9696904/

 creating: 9696904/files/

 creating: 9696904/files/lib/

 creating: 9696904/files/lib/libserver10.a/

 inflating: 9696904/files/lib/libserver10.a/kks1.o

 inflating: 9696904/files/lib/libserver10.a/kksc.o

 inflating: 9696904/files/lib/libserver10.a/kksh.o

 inflating: 9696904/files/lib/libserver10.a/ksmp.o

 inflating: 9696904/files/lib/libserver10.a/kspt.o

 creating: 9696904/etc/
creating: 9696904/etc/config/

 inflating: 9696904/etc/config/inventory

 inflating: 9696904/etc/config/actions

 creating: 9696904/etc/xml/

 inflating: 9696904/etc/xml/GenericActions.xml

 inflating: 9696904/etc/xml/ShiphomeDirectoryStructure.xml

 inflating: 9696904/README.txt




接下来我们首先检查以上 2 个 patch 之间是否存在 conflict 冲突,这里我们会用到 opatch prereq
CheckConflictAmongPatchesWithDetail 命令:




[oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq
CheckConflictAmongPatchesWithDetail -phBaseDir $ORACLE_HOME/patches



Invoking OPatch 11.2.0.1.3
Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.    All rights reserved.


PREREQ session
Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from            : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-07-18PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt
Invoking prereq "checkconflictamongpatcheswithdetail"


Prereq "checkConflictAmongPatchesWithDetail" passed.


OPatch succeeded.


/* 可以看到以上补丁间冲突检查发现需要实施的补丁间不存在冲突 */
接着我们需要为将要实施的补丁与系统中现有的补丁检查是否存在冲突,这里我们要用到 opatch prereq
CheckConflictAgainstOHWithDetail 命令,如:




[oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /s01/db_1/patches/9696904



Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


PREREQ session


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from            : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-08-44PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" passed.


OPatch succeeded.


[oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
-phBaseDir /s01/db_1/patches/7527908
Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


PREREQ session
Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from            : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-08-57PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" passed.


OPatch succeeded.


/* 在这里另外举一个检查后发现冲突的例子 */


[oracle@rh2 tmp]$ /s01/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail
-phBaseDir 8557428
Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


PREREQ session


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from            : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-38-25PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


Invoking prereq "checkconflictagainstohwithdetail"


ZOP-47: The patch(es) has supersets with other patches installed in the Oracle Home (or)
among themselves.
ZOP-40: The patch(es) has conflicts with other patches installed in the Oracle Home (or)
among themselves.


Prereq "checkConflictAgainstOHWithDetail" failed.


Summary of Conflict Analysis:


There are no patches that can be applied now.


Following patches have conflicts. Please contact Oracle Support and get the merged patch
of the patches :
9352164


Following patches are not required, as they are subset of the patches in Oracle Home or
subset of the patches in the given list :


Following patches will be rolled back from Oracle Home on application of the patches in
the given list :
9352164
Conflicts/Supersets for each patch are:


Patch : 8557428
      Bug Conflict with 9352164
      Conflicting bugs are:
      8479537,    7462072,   8210889,     6404447


OPatch succeeded.


/* 可以看到以上发现了 8557428 one-off patch 与 9352164(PSU4)之间存在冲突,
 引发冲突的 Bug 是 8479537, 7462072, 8210889, 6404447
 opatch 建议用户提交合并 8557428 和 9352164 补丁的服务要求 */




通过以上检查可以发现虽然是针对 psu4(10.2.0.4.4)发布的 one-off patch,但在对 psu5(10.2.0.4.5)的 ORACLE
HOME 做 checkConflict 时未发现冲突,接着我们 opatch apply -report 命令来预演补丁实施,使用-report 选项让
opatch 仅报告其所会做的操作,而不真正去实施这些操作:




[oracle@rh2 db_1]$ cd patches/7527908/
[oracle@rh2 7527908]$ ls
etc   files   README.txt
[oracle@rh2 7527908]$ /s01/db_1/OPatch/opatch apply -report
Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


Oracle Home       : /s01/db_1
Central Inventory : /s01/oraInventory

    from         : /etc/oraInst.loc
OPatch version    : 11.2.0.1.3
OUI version       : 10.2.0.4.0
OUI location      : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-19-25PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


ApplySession applying interim patch '7527908' to OH '/s01/db_1'


Running prerequisite checks...
[Report: skip "rm -rf /s01/db_1/ccr"]
[Report: skip unzipping "/s01/db_1/OPatch/ocm/ocm.zip"]
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:   Yes
[Report: Skip calling "/bin/sh /s01/db_1/ccr/bin/setupCCR -R
/s01/db_1/.patch_storage/ocmRespFile -S OPatch -V 11.2.0.1.3" under "/s01/db_1/ccr/bin"]


OPatch detected non-cluster Oracle Home from the inventory and will patch the local
system only.


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/s01/db_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Users request no RAC file generation.   Do not create MP files.
Skip patching component oracle.rdbms, 10.2.0.4.0 and its actions.
The actions are reported here, but are not performed.


Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/ktm.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/ktu.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/ktusm.o"
Running make for target ioracle
ApplySession skipping inventory update.


Verifying the update...
Inventory and System verification is performed here.


The local system has been patched and can be restarted.


OPatch succeeded.


[oracle@rh2 patches]$ cd 9696904/
[oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch apply -report
Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory
 from            : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-22-11PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


ApplySession applying interim patch '9696904' to OH '/s01/db_1'


Running prerequisite checks...
[Report: skip "rm -rf /s01/db_1/ccr"]
[Report: skip unzipping "/s01/db_1/OPatch/ocm/ocm.zip"]
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:    Yes
[Report: Skip calling "/bin/sh /s01/db_1/ccr/bin/setupCCR -R
/s01/db_1/.patch_storage/ocmRespFile -S
OPatch -V 11.2.0.1.3" under "/s01/db_1/ccr/bin"]


OPatch detected non-cluster Oracle Home from the inventory and will patch the local
system only.


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/s01/db_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Users request no RAC file generation.   Do not create MP files.


Skip patching component oracle.rdbms, 10.2.0.4.0 and its actions.
The actions are reported here, but are not performed.


Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/kks1.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/kksc.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/kksh.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/ksmp.o"
Updating archive file "/s01/db_1/lib/libserver10.a"    with "lib/libserver10.a/kspt.o"
Running make for target ioracle
ApplySession skipping inventory update.


Verifying the update...
Inventory and System verification is performed here.


The local system has been patched and can be restarted.


OPatch succeeded.
以上使用 opatch apply -report 进一步确认了实施以上补丁不会引起冲突或其他失败,我们可以放心地正式应用补
丁了!




[oracle@rh2 patches]$ cd 7527908/




[oracle@rh2 7527908]$ /s01/db_1/OPatch/opatch apply



Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


Oracle Home       : /s01/db_1
Central Inventory : /s01/oraInventory

 from            : /etc/oraInst.loc
OPatch version    : 11.2.0.1.3
OUI version       : 10.2.0.4.0
OUI location      : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-24-46PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


ApplySession applying interim patch '7527908' to OH '/s01/db_1'


Running prerequisite checks...
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:   Yes


OPatch detected non-cluster Oracle Home from the inventory and will patch the local
system only.


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/s01/db_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '7527908' for restore. This might take a while...
Backing up files affected by the patch '7527908' for rollback. This might take a while...


Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/ktm.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/ktu.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/ktusm.o"
Running make for target ioracle
ApplySession adding interim patch '7527908' to inventory


Verifying the update...
Inventory check OK: Patch ID 7527908 is registered in Oracle Home inventory with proper
meta-data.
Files check OK: Files from Patch ID 7527908 are present in Oracle Home.


The local system has been patched and can be restarted.


OPatch succeeded.




/* 以下正式安装 one-off 临时小布丁! */


[oracle@rh2 7527908]$ cd ..
[oracle@rh2 patches]$ cd 9696904/



[oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch apply



Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.   All rights reserved.


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory
from         : /etc/oraInst.loc
OPatch version    : 11.2.0.1.3
OUI version       : 10.2.0.4.0
OUI location      : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-25-58PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


ApplySession applying interim patch '9696904' to OH '/s01/db_1'


Running prerequisite checks...
Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:


You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:   Yes


OPatch detected non-cluster Oracle Home from the inventory and will patch the local
system only.


Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/s01/db_1')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '9696904' for restore. This might take a while...
Backing up files affected by the patch '9696904' for rollback. This might take a while...


Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/kks1.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/kksc.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/kksh.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/ksmp.o"
Updating archive file "/s01/db_1/lib/libserver10.a"   with "lib/libserver10.a/kspt.o"
Running make for target ioracle
ApplySession adding interim patch '9696904' to inventory
Verifying the update...
Inventory check OK: Patch ID 9696904 is registered in Oracle Home inventory with proper
meta-data.
Files check OK: Files from Patch ID 9696904 are present in Oracle Home.


The local system has been patched and can be restarted.


OPatch succeeded.


[oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.1.3


Oracle Interim Patch Installer version 11.2.0.1.3
Copyright (c) 2010, Oracle Corporation.    All rights reserved.


Oracle Home         : /s01/db_1
Central Inventory : /s01/oraInventory

 from              : /etc/oraInst.loc
OPatch version      : 11.2.0.1.3
OUI version         : 10.2.0.4.0
OUI location        : /s01/db_1/oui
Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-28-56PM.log


Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt


Lsinventory Output file location : /s01/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05-
06_22-28-56PM.txt


--------------------------------------------------------------------------------
Installed Top-level Products (2):


Oracle Database 10g                                                   10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3                             10.2.0.4.0
There are 2 products installed in this Oracle Home.


Interim patches (4) :


Patch   9696904       : applied on Fri May 06 22:26:37 CST 2011
Unique Patch ID:    12575150

 Created on 10 May 2010, 23:22:02 hrs PST8PDT

 Bugs fixed:

  7025450, 8575528, 6904068
This patch overlays patches:

  9352164

 This patch needs patches:

  9352164

 as prerequisites


Patch   7527908       : applied on Fri May 06 22:25:33 CST 2011
Unique Patch ID:    12546933

 Created on 30 Apr 2010, 12:48:09 hrs PST8PDT

 Bugs fixed:

  7527908

 This patch overlays patches:

  9352164

 This patch needs patches:

  9352164

 as prerequisites


Patch   9654991       : applied on Fri May 06 21:33:38 CST 2011
Unique Patch ID:    12816418

 Created on 30 Jun 2010, 18:30:40 hrs PST8PDT

 Bugs fixed:

  9714832, 9713537, 9678695, 9655017, 9173248, 8309642, 9678697, 9678690

  9573054, 9654991

 This patch overlays patches:

  9352164

 This patch needs patches:

  9352164

 as prerequisites


Patch   9352164       : applied on Fri May 06 21:29:20 CST 2011
Unique Patch ID:    12307477

 Created on 1 Apr 2010, 11:33:14 hrs PST8PDT

 Bugs fixed:
.............................................................


/* Applied one-off patch successfully, That's great! */




© 2011, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追求法律责
任.

More Related Content

DOCX
Vbox virtual box在oracle linux 5 - shoug 梁洪响
maclean liu
 
PDF
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
PDF
Erp 2.50 openbravo environment installation openbravo-wiki
yaranusa
 
ODP
Use bonding driver with ethernet
SUSE Labs Taipei
 
ODP
Develop and Maintain a Distro with Open Build Service
SUSE Labs Taipei
 
DOC
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Raheel Syed
 
PDF
Oracle11g On Fedora14
kmsa
 
PDF
Upgrade 11.2.0.1 gi crs to 11.2.0.2 in linux
maclean liu
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
maclean liu
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Erp 2.50 openbravo environment installation openbravo-wiki
yaranusa
 
Use bonding driver with ethernet
SUSE Labs Taipei
 
Develop and Maintain a Distro with Open Build Service
SUSE Labs Taipei
 
Upgrade 10204-to-10205 on-2-node_rac_linux_x86_64_detail-steps_v0.1
Raheel Syed
 
Oracle11g On Fedora14
kmsa
 
Upgrade 11.2.0.1 gi crs to 11.2.0.2 in linux
maclean liu
 

What's hot (18)

KEY
Database version control - pf congres version
Harrie Verveer
 
PPTX
High Availability Server with DRBD in linux
Ali Rachman
 
ODP
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios
 
PDF
Oracle linux kube
Ahmed Mekawy
 
PDF
DNF Failed To Open Cache
VCP Muthukrishna
 
PDF
10 techniques from hacking labs1.3 miss confsp4
Manich Koomsusi
 
PDF
UKOUG Tech17 - Stay Secure With Oracle Solaris
JomaSoft
 
PDF
[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程
Jimmy Chang
 
PDF
Ora10g Rac Best Practices
vasanthkp
 
PDF
Installing the Oracle SOA Suite on Red Hat 6
TUSHAR VARSHNEY
 
DOCX
Oracle upgrade
Raj p
 
PDF
Defcon_Oracle_The_Making_of_the_2nd_sql_injection_worm
guest785f78
 
PPT
101 1.3 runlevels, shutdown, and reboot v2
Acácio Oliveira
 
PPT
101 1.3 runlevels , shutdown, and reboot
Acácio Oliveira
 
PDF
Oracle-11g-upgrade
Antonio Carlos dos Santos Jr
 
DOCX
Data Guard on EBS R12 DB 10g
Ibrahim Malek
 
PDF
Habilitar repositorio EPEL RHEL
Moisés Elías Araya
 
PDF
Hands-on ethernet driver
SUSE Labs Taipei
 
Database version control - pf congres version
Harrie Verveer
 
High Availability Server with DRBD in linux
Ali Rachman
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios
 
Oracle linux kube
Ahmed Mekawy
 
DNF Failed To Open Cache
VCP Muthukrishna
 
10 techniques from hacking labs1.3 miss confsp4
Manich Koomsusi
 
UKOUG Tech17 - Stay Secure With Oracle Solaris
JomaSoft
 
[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程
Jimmy Chang
 
Ora10g Rac Best Practices
vasanthkp
 
Installing the Oracle SOA Suite on Red Hat 6
TUSHAR VARSHNEY
 
Oracle upgrade
Raj p
 
Defcon_Oracle_The_Making_of_the_2nd_sql_injection_worm
guest785f78
 
101 1.3 runlevels, shutdown, and reboot v2
Acácio Oliveira
 
101 1.3 runlevels , shutdown, and reboot
Acácio Oliveira
 
Oracle-11g-upgrade
Antonio Carlos dos Santos Jr
 
Data Guard on EBS R12 DB 10g
Ibrahim Malek
 
Habilitar repositorio EPEL RHEL
Moisés Elías Araya
 
Hands-on ethernet driver
SUSE Labs Taipei
 
Ad

Viewers also liked (20)

PDF
为10g rac cluster添加节点
maclean liu
 
PPTX
Svithjod
sudaratkaenjan
 
PDF
Gaelic Football
Shane Kerr
 
PDF
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
maclean liu
 
PDF
11g新特性streams同步捕获
maclean liu
 
PDF
Permen tahun2013 nomor81a_lampiran1
Irma Muthiara Sari
 
PPTX
Devon house
Nanette Nerland
 
PPTX
Benchmarks riet picknicken
laurenztack
 
PDF
Building_brands_How_can_I_help_you
Molly Aaker
 
PPTX
123
H00202945
 
PDF
Permen tahun2013 nomor81a_lampiran3
Irma Muthiara Sari
 
DOCX
如何在Aix上运行prm for oracle database
maclean liu
 
PDF
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
maclean liu
 
PPTX
Que hago y_como_vivo
almeri1595
 
PDF
Assessing the biological effects form low dose exposures similar to medical a...
Leishman Associates
 
PPTX
Fr i final exam review
Liz Bucrek
 
PDF
Ioug 2010 oracle critical patch updates unwrapped presentation
maclean liu
 
PPTX
Presentation for Workshop on RTTC Curriculum Revision workshop
Stefaan Vande Walle
 
PPT
Plantilla3
bugatito
 
为10g rac cluster添加节点
maclean liu
 
Svithjod
sudaratkaenjan
 
Gaelic Football
Shane Kerr
 
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
maclean liu
 
11g新特性streams同步捕获
maclean liu
 
Permen tahun2013 nomor81a_lampiran1
Irma Muthiara Sari
 
Devon house
Nanette Nerland
 
Benchmarks riet picknicken
laurenztack
 
Building_brands_How_can_I_help_you
Molly Aaker
 
Permen tahun2013 nomor81a_lampiran3
Irma Muthiara Sari
 
如何在Aix上运行prm for oracle database
maclean liu
 
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
maclean liu
 
Que hago y_como_vivo
almeri1595
 
Assessing the biological effects form low dose exposures similar to medical a...
Leishman Associates
 
Fr i final exam review
Liz Bucrek
 
Ioug 2010 oracle critical patch updates unwrapped presentation
maclean liu
 
Presentation for Workshop on RTTC Curriculum Revision workshop
Stefaan Vande Walle
 
Plantilla3
bugatito
 
Ad

Similar to 如何安装Oracle one off临时小补丁及注意事项 (20)

PDF
还原Oracle中真实的cache recovery
maclean liu
 
DOCX
Install oracle service bus
Osama Mustafa
 
ODP
How to debug ocfs2 hang problem
Gang He
 
PDF
Devstack lab guide
openstackcisco
 
PDF
Dev stacklabguide
openstackcisco
 
PDF
Dataguard first apply patch
Palash Sarkar
 
PPTX
Operating System Assignment Help
Programming Homework Help
 
PDF
Oracle api gateway installation as cluster and single node
Osama Mustafa
 
PDF
Securing Containers, One Patch at a Time - Michael Crosby, Docker
Docker, Inc.
 
DOC
Resume_CQ_Edward
caiqi wang
 
PDF
Oracle PSU Release Notes 10/2012
Protect724
 
PPT
RAC - Test
Daralmadinah
 
PDF
Oracle business intelligence enterprise edition 11g
uzzal basak
 
PDF
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
Leighton Nelson
 
PDF
Kirill Rozin - Practical Wars for Automatization
Sergey Arkhipov
 
PDF
Spectre meltdown performance_tests - v0.3
David Pasek
 
PDF
ESM 5.5 Patch 1 Release Notes
Protect724
 
PDF
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
maclean liu
 
PDF
Introduction to PostgreSQL for System Administrators
Jignesh Shah
 
还原Oracle中真实的cache recovery
maclean liu
 
Install oracle service bus
Osama Mustafa
 
How to debug ocfs2 hang problem
Gang He
 
Devstack lab guide
openstackcisco
 
Dev stacklabguide
openstackcisco
 
Dataguard first apply patch
Palash Sarkar
 
Operating System Assignment Help
Programming Homework Help
 
Oracle api gateway installation as cluster and single node
Osama Mustafa
 
Securing Containers, One Patch at a Time - Michael Crosby, Docker
Docker, Inc.
 
Resume_CQ_Edward
caiqi wang
 
Oracle PSU Release Notes 10/2012
Protect724
 
RAC - Test
Daralmadinah
 
Oracle business intelligence enterprise edition 11g
uzzal basak
 
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
Leighton Nelson
 
Kirill Rozin - Practical Wars for Automatization
Sergey Arkhipov
 
Spectre meltdown performance_tests - v0.3
David Pasek
 
ESM 5.5 Patch 1 Release Notes
Protect724
 
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
maclean liu
 
Introduction to PostgreSQL for System Administrators
Jignesh Shah
 

More from maclean liu (20)

PDF
Mysql企业备份发展及实践
maclean liu
 
PDF
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
maclean liu
 
PDF
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
maclean liu
 
PDF
TomCat迁移步骤简述以及案例
maclean liu
 
PDF
PRM DUL Oracle Database Health Check
maclean liu
 
PDF
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
maclean liu
 
PDF
【诗檀软件】Mysql高可用方案
maclean liu
 
PPTX
Shoug at apouc2015 4min pitch_biotwang_v2
maclean liu
 
PPTX
Apouc 4min pitch_biotwang_v2
maclean liu
 
PDF
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
maclean liu
 
PDF
诗檀软件 Oracle开发优化基础
maclean liu
 
PDF
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
maclean liu
 
PDF
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
maclean liu
 
PDF
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
 
PDF
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
maclean liu
 
PDF
Prm dul is an oracle database recovery tool database
maclean liu
 
PDF
Oracle prm dul, jvm and os
maclean liu
 
PDF
Oracle dba必备技能 使用os watcher工具监控系统性能负载
maclean liu
 
PDF
Parnassus data recovery manager for oracle database user guide v0.3
maclean liu
 
DOCX
Oracle prm安装说明
maclean liu
 
Mysql企业备份发展及实践
maclean liu
 
Oracle専用データ復旧ソフトウェアprm dulユーザーズ・マニュアル
maclean liu
 
基于Oracle 12c data guard & far sync的低资源消耗两地三数据中心容灾方案
maclean liu
 
TomCat迁移步骤简述以及案例
maclean liu
 
PRM DUL Oracle Database Health Check
maclean liu
 
dbdao.com 汪伟华 my-sql-replication复制高可用配置方案
maclean liu
 
【诗檀软件】Mysql高可用方案
maclean liu
 
Shoug at apouc2015 4min pitch_biotwang_v2
maclean liu
 
Apouc 4min pitch_biotwang_v2
maclean liu
 
使用Oracle osw analyzer工具分析oswbb日志,并绘制系统性能走势图1
maclean liu
 
诗檀软件 Oracle开发优化基础
maclean liu
 
Orclrecove 1 pd-prm-dul testing for oracle database recovery_20141030_biot_wang
maclean liu
 
诗檀软件 – Oracle数据库修复专家 oracle数据块损坏知识2014-10-24
maclean liu
 
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
 
使用Virtual box在oracle linux 5.7上安装oracle database 11g release 2 rac的最佳实践
maclean liu
 
Prm dul is an oracle database recovery tool database
maclean liu
 
Oracle prm dul, jvm and os
maclean liu
 
Oracle dba必备技能 使用os watcher工具监控系统性能负载
maclean liu
 
Parnassus data recovery manager for oracle database user guide v0.3
maclean liu
 
Oracle prm安装说明
maclean liu
 

Recently uploaded (20)

PDF
Printable Catalan Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Amharic Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Chichewa Nyanja Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Explaining Sahih Muslim Book 6 – Hadith 106-123
MohdAzimYusuf
 
PDF
Printable Bengali Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Albanian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Krishna Famous Temple in India _ Visit Prem Mandir Vrindavan.pdf
Prem Mandir
 
PDF
The Power of Volunteering_ Examples That Inspire Change by David Bennett Gall...
David Bennett Galloway III
 
PDF
Printable Welsh Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Assamese Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PPTX
wwwwwww-Carmel_Consecration_to_Mary.pptx
chubachuchu414
 
PDF
Printable Bosnian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Tsonga Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Living the Catholic Faith Daily with SantoMission.pdf
santo mission
 
PDF
Printable Ukrainian Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Dari Persian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Tongan Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
PPTX
OVERFLOWING HARVEST OF A THANKFUL HEART (1) (1).pptx
IRVINGACACIO3
 
PDF
Printable Twi Akan Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
PDF
Printable Western Frisian Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Catalan Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Amharic Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Chichewa Nyanja Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Explaining Sahih Muslim Book 6 – Hadith 106-123
MohdAzimYusuf
 
Printable Bengali Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Albanian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Krishna Famous Temple in India _ Visit Prem Mandir Vrindavan.pdf
Prem Mandir
 
The Power of Volunteering_ Examples That Inspire Change by David Bennett Gall...
David Bennett Galloway III
 
Printable Welsh Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Assamese Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
wwwwwww-Carmel_Consecration_to_Mary.pptx
chubachuchu414
 
Printable Bosnian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Tsonga Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
Living the Catholic Faith Daily with SantoMission.pdf
santo mission
 
Printable Ukrainian Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Dari Persian Gospel Tract - Be Sure of Heaven.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Tongan Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
OVERFLOWING HARVEST OF A THANKFUL HEART (1) (1).pptx
IRVINGACACIO3
 
Printable Twi Akan Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 
Printable Western Frisian Gospel Tract - Do Not Fear Death.pdf
Filipino Tracts and Literature Society Inc.
 

如何安装Oracle one off临时小补丁及注意事项

  • 1. 如何安装 Oracle one- off 临时小补丁及注意事项 by Maclean.liu [email protected] www.oracledatabase12g.com
  • 2. About Me l Email:[email protected] l Blog:www.oracledatabase12g.com l Oracle Certified Database Administrator Master 10g and 11g l Over 6 years experience with Oracle DBA technology l Over 7 years experience with Linux technology l Member Independent Oracle Users Group l Member All China Users Group l Presents for advanced Oracle topics: RAC, DataGuard, Performance Tuning and Oracle Internal.
  • 3. Oracle Database 的补丁除去我们最常见的 Patch set 大补丁集(就是那种动辄 1、2 个 G 的补丁包)外,还包括 Critical Patch Update(CPU)和 Patch Set Update(PSU),one-off Patch(一次性补丁);在数据库使用过程中出现某些 问题后(最常见的是出现 ORA-00600、ORA-07445 错误),通过 DBA 与 MOS 的协作将问题定位到某个大版本上 的具体 Bug,如果该 Bug 在该版本上现有 one-off patch 的话,我们可以通过 one-off patch 的实施来解决问 题,one-off patch 具有如下特点: 1. one-off patch 的 patch 包一般都很小,因为它是为了修正一个或多个 bug 所特制,它一般只包含必要 的 inventory xml 信息,以及和 bug 相关的共享库文件(一般是.o 或者.a 文件) 2. one-off patch 绝大多数是随需随制,一般是 Oracle 内部人员发现 Bug 或者客户在生产过程中遇到 Bug 后,向 Oracle development 开发部门提出 patch building 的 Request ,开发人员接到 building 或 backport 的要求后会为客户系统指定的数据库版本和操作系统平台特制一个补丁(如果还没 有的话);举例来说可能一个 bug 在 Linux 平台的 10.2.0.4 版本中已有 one-off patch,但客户在 Solaris Sparc 平台上 10.2.0.3 上碰到同样的 bug,那么这个时候就可以提交 SR 要求 Oracle 开发部 门 backport 这个 patch 3. 绝大多数 one-off patch 只需要用 Opatch 工具 apply 即可,不需要升级/修正数据字典,这一点和 Patch set/CPU/PSU 是不同的 4. one-off patch 是针对某个特殊版本的,如 10.2.0.4 上的 one-off patch 只能针对 10.2.0.4 实施,而 在 10.2.0.4.8(10.2.0.4 的 PSU 8)上该 one-off patch 可能是一个 conflicting Bug 即有冲突的一次 性 bug 补丁;针对这种情况 Oracle 一般会给出当前版本上的替代 one-off patch,例如 6996030″MERGE LABEL REQUEST ON TOP OF 10.2.0.4 FOR AUDIT TRAIL CLEAN-UP”是 10.2.0.4 上的一个 one-off patch,但在 10.2.0.4.4 上 6996030 是一个 conflicting bug 存在冲突, 这样我们就需要一个替代品、一个 10.2.0.4.4 上的 Equivalent patch 等价补丁,在我们的例子中这个 patch 是 9650152 “MERGE REQUEST ON TOP OF 10.2.0.4.4 FOR BUGS 9589005 6805009 6991606″ 5. 实施 one-off patch 意味着你的数据库软件将与其他主流版本的数据库在行为方式上有所区别,另一方 面你需要考虑到如果发现了新的 Bug 并考虑打上另一个 one-off patch 时可能存在 Conflicting 冲突。 大多数情况下 one-off patch 可以迅速帮我们解决 Bug,但反过来说实施任意一个 one-off patch 时我 们可能冒着今后花费更多时间去维护数据库补丁的风险;就这一点来看,应用 one-off patch 有着它明 显的缺点 6. 在 11g 中提出了 hot patch 的概念,这里的 patch 就是指的 one-off patch;就目前看来 online- patching 只是一个噱头,因为真正具备在线实施能力的 patch 少之又少,你很难从 MOS 上的 patch 专 栏中找到一个可用的 online-patch
  • 4. 7. 一个我个人的观点:Oracle GCS 会通过 stack call、trace、dump 等信息将问题定位到 bug,最为常 见的是 ORA-00600、ORA-07445 等内部错误,这些错误因为有着明确的 error argument、stack call 等信息可以让 GCS 精确地定位故障,而对于另一些问题例如 process spin、异常等待事件等不产 生明确 argument、stack、dump 的问题时,定位就要困难一些。我们经常可以看到一些 bug note, 在客户 apply one-off patch 并设置特定 event 后 one-off patch 并不起作用,导致这种情况的原因多 种多样,一种可能是 patch 在开发过程中存在问题(补丁代码没有被正确触发),另一种则是 bug 没有被准 确定位。 我们目前的问题在于虽然 one-off patch 存在这样那样的问题,但很多时候又不得不实施 one-off patch(大多数原 因是停机时间限制);以及在一个已经实施了诸多 Patch set、PSU、CPU 和 one-off patch 的环境中新增 one-off patch,为了更好地完成这项工作,我们有必要在具体实施补丁前完成以下的预备工作: 1.在定位到具体 Bug 后我们可以获得一个 Bug No#,使用该 No#到 My Oracle Support 上的 Patches & Updates 专栏中搜索该 Bug 相关的 patch 信息,这里存在三种情况: • 最好的情况是指定的数据库版本和操作系统平台上存在相关的 patch • 指定数据库版本上有 patch,注意这里的指定数据库版本需要精确到具体的 PSU,但没有指定操作系统 平台上的,这个时候可以提交 SR 要求在指定平台上 build 一个 • 指定数据库版本上没有 patch,注意这里的指定数据库版本需要精确到具体的 PSU,例如 10.2.0.4 上 的 patch 是不能直接用在 10.2.0.4.x 上的;针对这种情况我们可以首先查询 Metalink Note“Patch Set Updates – One-off Patch Conflict Resolution”,可以从这个 Note 中查到指定 one-off patch 是否被包含在某个 psu 中,或者在某个 psu 上有特定的等价补丁(Equivalent on top),一部分 one-off patch 在不同的 psu 之间还存在通用性,如 10.2.0.4.4 上的部分 patch 可以在 10.2.0.4.5 上 实施,具体是否通用可以参考下文中冲突检查的方法来检验。如果都没有等价补丁也没有通用补丁那么 需要提交 SR 让 Oracle 开发部门去 merge 一个 2.更复杂的情况是在现有版本上已经应用了某些特定的 patch(psu、cpu、或者其他 one-off patch),我们要保证需 要新增的 one-off patch 之间不存在 conflict 关系,也不会和系统中已有的 patch 发生 conflict,这时候我们可以使 用 opatch prereq 命令来做冲突检查并得到相关建议,如: [oracle@rh2 tmp]$ /s01/db_1/OPatch/opatch lsinventory Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3
  • 5. Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_21-41-39PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Lsinventory Output file location : /s01/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05- 06_21-41-39PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (2): Oracle Database 10g 10.2.0.1.0 Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0 There are 2 products installed in this Oracle Home. Interim patches (2) : Patch 9654991 : applied on Fri May 06 21:33:38 CST 2011 Unique Patch ID: 12816418 Created on 30 Jun 2010, 18:30:40 hrs PST8PDT Bugs fixed: 9714832, 9713537, 9678695, 9655017, 9173248, 8309642, 9678697, 9678690 9573054, 9654991 This patch overlays patches: 9352164 This patch needs patches: 9352164 as prerequisites Patch 9352164 : applied on Fri May 06 21:29:20 CST 2011 Unique Patch ID: 12307477 Created on 1 Apr 2010, 11:33:14 hrs PST8PDT Bugs fixed: /* 以上示例环境中实施了 10.2.0.4 上的 psu4(9352164)和 psu5(9654991) */
  • 6. /* 在示例环境中我们试图实施补丁 7527908 和 9696904,这 2 个 merge patch 是针对 psu4(10.2.0.4.4)版本的, 但在 psu5(10.2.0.4.5)上没有相应的替代补丁,我们需要检测这 2 个 patch 是否和 psu5 发生冲突 */ [oracle@rh2 ~]$ mkdir $ORACLE_HOME/patches /* 在 Oracle HOME 下创建存放 patch 的目录 */ [oracle@rh2 ~]$ cd $ORACLE_HOME/patches [oracle@rh2 patches]$ unzip /home/oracle/patch/p7527908_102044_Linux-x86-64.zip Archive: /home/oracle/patch/p7527908_102044_Linux-x86-64.zip creating: 7527908/ creating: 7527908/files/ creating: 7527908/files/lib/ creating: 7527908/files/lib/libserver10.a/ inflating: 7527908/files/lib/libserver10.a/ktm.o inflating: 7527908/files/lib/libserver10.a/ktu.o inflating: 7527908/files/lib/libserver10.a/ktusm.o creating: 7527908/etc/ creating: 7527908/etc/config/ inflating: 7527908/etc/config/inventory inflating: 7527908/etc/config/actions creating: 7527908/etc/xml/ inflating: 7527908/etc/xml/GenericActions.xml inflating: 7527908/etc/xml/ShiphomeDirectoryStructure.xml inflating: 7527908/README.txt [oracle@rh2 patches]$ unzip ~/patch/p9696904_102044_Linux-x86-64.zip Archive: /home/oracle/patch/p9696904_102044_Linux-x86-64.zip creating: 9696904/ creating: 9696904/files/ creating: 9696904/files/lib/ creating: 9696904/files/lib/libserver10.a/ inflating: 9696904/files/lib/libserver10.a/kks1.o inflating: 9696904/files/lib/libserver10.a/kksc.o inflating: 9696904/files/lib/libserver10.a/kksh.o inflating: 9696904/files/lib/libserver10.a/ksmp.o inflating: 9696904/files/lib/libserver10.a/kspt.o creating: 9696904/etc/
  • 7. creating: 9696904/etc/config/ inflating: 9696904/etc/config/inventory inflating: 9696904/etc/config/actions creating: 9696904/etc/xml/ inflating: 9696904/etc/xml/GenericActions.xml inflating: 9696904/etc/xml/ShiphomeDirectoryStructure.xml inflating: 9696904/README.txt 接下来我们首先检查以上 2 个 patch 之间是否存在 conflict 冲突,这里我们会用到 opatch prereq CheckConflictAmongPatchesWithDetail 命令: [oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq CheckConflictAmongPatchesWithDetail -phBaseDir $ORACLE_HOME/patches Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-07-18PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Invoking prereq "checkconflictamongpatcheswithdetail" Prereq "checkConflictAmongPatchesWithDetail" passed. OPatch succeeded. /* 可以看到以上补丁间冲突检查发现需要实施的补丁间不存在冲突 */
  • 8. 接着我们需要为将要实施的补丁与系统中现有的补丁检查是否存在冲突,这里我们要用到 opatch prereq CheckConflictAgainstOHWithDetail 命令,如: [oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /s01/db_1/patches/9696904 Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-08-44PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. [oracle@rh2 db_1]$ /s01/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /s01/db_1/patches/7527908 Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. PREREQ session
  • 9. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-08-57PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. /* 在这里另外举一个检查后发现冲突的例子 */ [oracle@rh2 tmp]$ /s01/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir 8557428 Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-38-25PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Invoking prereq "checkconflictagainstohwithdetail" ZOP-47: The patch(es) has supersets with other patches installed in the Oracle Home (or) among themselves.
  • 10. ZOP-40: The patch(es) has conflicts with other patches installed in the Oracle Home (or) among themselves. Prereq "checkConflictAgainstOHWithDetail" failed. Summary of Conflict Analysis: There are no patches that can be applied now. Following patches have conflicts. Please contact Oracle Support and get the merged patch of the patches : 9352164 Following patches are not required, as they are subset of the patches in Oracle Home or subset of the patches in the given list : Following patches will be rolled back from Oracle Home on application of the patches in the given list : 9352164 Conflicts/Supersets for each patch are: Patch : 8557428 Bug Conflict with 9352164 Conflicting bugs are: 8479537, 7462072, 8210889, 6404447 OPatch succeeded. /* 可以看到以上发现了 8557428 one-off patch 与 9352164(PSU4)之间存在冲突, 引发冲突的 Bug 是 8479537, 7462072, 8210889, 6404447 opatch 建议用户提交合并 8557428 和 9352164 补丁的服务要求 */ 通过以上检查可以发现虽然是针对 psu4(10.2.0.4.4)发布的 one-off patch,但在对 psu5(10.2.0.4.5)的 ORACLE HOME 做 checkConflict 时未发现冲突,接着我们 opatch apply -report 命令来预演补丁实施,使用-report 选项让 opatch 仅报告其所会做的操作,而不真正去实施这些操作: [oracle@rh2 db_1]$ cd patches/7527908/ [oracle@rh2 7527908]$ ls etc files README.txt [oracle@rh2 7527908]$ /s01/db_1/OPatch/opatch apply -report
  • 11. Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-19-25PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '7527908' to OH '/s01/db_1' Running prerequisite checks... [Report: skip "rm -rf /s01/db_1/ccr"] [Report: skip unzipping "/s01/db_1/OPatch/ocm/ocm.zip"] Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes [Report: Skip calling "/bin/sh /s01/db_1/ccr/bin/setupCCR -R /s01/db_1/.patch_storage/ocmRespFile -S OPatch -V 11.2.0.1.3" under "/s01/db_1/ccr/bin"] OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/s01/db_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Users request no RAC file generation. Do not create MP files.
  • 12. Skip patching component oracle.rdbms, 10.2.0.4.0 and its actions. The actions are reported here, but are not performed. Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktm.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktu.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktusm.o" Running make for target ioracle ApplySession skipping inventory update. Verifying the update... Inventory and System verification is performed here. The local system has been patched and can be restarted. OPatch succeeded. [oracle@rh2 patches]$ cd 9696904/ [oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch apply -report Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-22-11PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '9696904' to OH '/s01/db_1' Running prerequisite checks... [Report: skip "rm -rf /s01/db_1/ccr"] [Report: skip unzipping "/s01/db_1/OPatch/ocm/ocm.zip"] Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name.
  • 13. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes [Report: Skip calling "/bin/sh /s01/db_1/ccr/bin/setupCCR -R /s01/db_1/.patch_storage/ocmRespFile -S OPatch -V 11.2.0.1.3" under "/s01/db_1/ccr/bin"] OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/s01/db_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Users request no RAC file generation. Do not create MP files. Skip patching component oracle.rdbms, 10.2.0.4.0 and its actions. The actions are reported here, but are not performed. Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kks1.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kksc.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kksh.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ksmp.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kspt.o" Running make for target ioracle ApplySession skipping inventory update. Verifying the update... Inventory and System verification is performed here. The local system has been patched and can be restarted. OPatch succeeded.
  • 14. 以上使用 opatch apply -report 进一步确认了实施以上补丁不会引起冲突或其他失败,我们可以放心地正式应用补 丁了! [oracle@rh2 patches]$ cd 7527908/ [oracle@rh2 7527908]$ /s01/db_1/OPatch/opatch apply Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-24-46PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '7527908' to OH '/s01/db_1' Running prerequisite checks... Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
  • 15. (Oracle Home = '/s01/db_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '7527908' for restore. This might take a while... Backing up files affected by the patch '7527908' for rollback. This might take a while... Patching component oracle.rdbms, 10.2.0.4.0... Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktm.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktu.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ktusm.o" Running make for target ioracle ApplySession adding interim patch '7527908' to inventory Verifying the update... Inventory check OK: Patch ID 7527908 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 7527908 are present in Oracle Home. The local system has been patched and can be restarted. OPatch succeeded. /* 以下正式安装 one-off 临时小布丁! */ [oracle@rh2 7527908]$ cd .. [oracle@rh2 patches]$ cd 9696904/ [oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch apply Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory
  • 16. from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-25-58PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt ApplySession applying interim patch '9696904' to OH '/s01/db_1' Running prerequisite checks... Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Yes OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/s01/db_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '9696904' for restore. This might take a while... Backing up files affected by the patch '9696904' for rollback. This might take a while... Patching component oracle.rdbms, 10.2.0.4.0... Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kks1.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kksc.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kksh.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/ksmp.o" Updating archive file "/s01/db_1/lib/libserver10.a" with "lib/libserver10.a/kspt.o" Running make for target ioracle ApplySession adding interim patch '9696904' to inventory
  • 17. Verifying the update... Inventory check OK: Patch ID 9696904 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 9696904 are present in Oracle Home. The local system has been patched and can be restarted. OPatch succeeded. [oracle@rh2 9696904]$ /s01/db_1/OPatch/opatch lsinventory Invoking OPatch 11.2.0.1.3 Oracle Interim Patch Installer version 11.2.0.1.3 Copyright (c) 2010, Oracle Corporation. All rights reserved. Oracle Home : /s01/db_1 Central Inventory : /s01/oraInventory from : /etc/oraInst.loc OPatch version : 11.2.0.1.3 OUI version : 10.2.0.4.0 OUI location : /s01/db_1/oui Log file location : /s01/db_1/cfgtoollogs/opatch/opatch2011-05-06_22-28-56PM.log Patch history file: /s01/db_1/cfgtoollogs/opatch/opatch_history.txt Lsinventory Output file location : /s01/db_1/cfgtoollogs/opatch/lsinv/lsinventory2011-05- 06_22-28-56PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (2): Oracle Database 10g 10.2.0.1.0 Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0 There are 2 products installed in this Oracle Home. Interim patches (4) : Patch 9696904 : applied on Fri May 06 22:26:37 CST 2011 Unique Patch ID: 12575150 Created on 10 May 2010, 23:22:02 hrs PST8PDT Bugs fixed: 7025450, 8575528, 6904068
  • 18. This patch overlays patches: 9352164 This patch needs patches: 9352164 as prerequisites Patch 7527908 : applied on Fri May 06 22:25:33 CST 2011 Unique Patch ID: 12546933 Created on 30 Apr 2010, 12:48:09 hrs PST8PDT Bugs fixed: 7527908 This patch overlays patches: 9352164 This patch needs patches: 9352164 as prerequisites Patch 9654991 : applied on Fri May 06 21:33:38 CST 2011 Unique Patch ID: 12816418 Created on 30 Jun 2010, 18:30:40 hrs PST8PDT Bugs fixed: 9714832, 9713537, 9678695, 9655017, 9173248, 8309642, 9678697, 9678690 9573054, 9654991 This patch overlays patches: 9352164 This patch needs patches: 9352164 as prerequisites Patch 9352164 : applied on Fri May 06 21:29:20 CST 2011 Unique Patch ID: 12307477 Created on 1 Apr 2010, 11:33:14 hrs PST8PDT Bugs fixed: ............................................................. /* Applied one-off patch successfully, That's great! */ © 2011, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追求法律责 任.