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

What's hot

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

What's hot (18)

Database version control - pf congres version
Database version control - pf congres versionDatabase version control - pf congres version
Database version control - pf congres version
 
High Availability Server with DRBD in linux
High Availability Server with DRBD in linuxHigh Availability Server with DRBD in linux
High Availability Server with DRBD in linux
 
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
Nagios Conference 2012 - Dan Wittenberg - Case Study: Scaling Nagios Core at ...
 
Oracle linux kube
Oracle linux kubeOracle linux kube
Oracle linux kube
 
DNF Failed To Open Cache
DNF Failed To Open CacheDNF Failed To Open Cache
DNF Failed To Open Cache
 
10 techniques from hacking labs1.3 miss confsp4
10 techniques from hacking labs1.3 miss confsp410 techniques from hacking labs1.3 miss confsp4
10 techniques from hacking labs1.3 miss confsp4
 
UKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle SolarisUKOUG Tech17 - Stay Secure With Oracle Solaris
UKOUG Tech17 - Stay Secure With Oracle Solaris
 
[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程
[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程
[文件] 華創造型SERVER安裝過程記錄 -V6R2016X 安裝流程
 
Ora10g Rac Best Practices
Ora10g Rac Best PracticesOra10g Rac Best Practices
Ora10g Rac Best Practices
 
Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6
 
Oracle upgrade
Oracle upgradeOracle upgrade
Oracle upgrade
 
Defcon_Oracle_The_Making_of_the_2nd_sql_injection_worm
Defcon_Oracle_The_Making_of_the_2nd_sql_injection_wormDefcon_Oracle_The_Making_of_the_2nd_sql_injection_worm
Defcon_Oracle_The_Making_of_the_2nd_sql_injection_worm
 
101 1.3 runlevels, shutdown, and reboot v2
101 1.3 runlevels, shutdown, and reboot v2101 1.3 runlevels, shutdown, and reboot v2
101 1.3 runlevels, shutdown, and reboot v2
 
101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot101 1.3 runlevels , shutdown, and reboot
101 1.3 runlevels , shutdown, and reboot
 
Oracle-11g-upgrade
Oracle-11g-upgradeOracle-11g-upgrade
Oracle-11g-upgrade
 
Data Guard on EBS R12 DB 10g
Data Guard on EBS R12 DB 10gData Guard on EBS R12 DB 10g
Data Guard on EBS R12 DB 10g
 
Habilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHELHabilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHEL
 
Hands-on ethernet driver
Hands-on ethernet driverHands-on ethernet driver
Hands-on ethernet driver
 

Viewers also liked

为10g rac cluster添加节点
为10g rac cluster添加节点为10g rac cluster添加节点
为10g rac cluster添加节点maclean liu
 
Gaelic Football
Gaelic FootballGaelic Football
Gaelic Football
Shane Kerr
 
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linuxUpgrade 11.2.0.1 rac db to 11.2.0.2 in linux
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linuxmaclean liu
 
11g新特性streams同步捕获
11g新特性streams同步捕获11g新特性streams同步捕获
11g新特性streams同步捕获maclean liu
 
Permen tahun2013 nomor81a_lampiran1
Permen tahun2013 nomor81a_lampiran1Permen tahun2013 nomor81a_lampiran1
Permen tahun2013 nomor81a_lampiran1Irma Muthiara Sari
 
Devon house
Devon houseDevon house
Devon house
Nanette Nerland
 
Benchmarks riet picknicken
Benchmarks riet picknickenBenchmarks riet picknicken
Benchmarks riet picknickenlaurenztack
 
Building_brands_How_can_I_help_you
Building_brands_How_can_I_help_youBuilding_brands_How_can_I_help_you
Building_brands_How_can_I_help_youMolly Aaker
 
Permen tahun2013 nomor81a_lampiran3
Permen tahun2013 nomor81a_lampiran3Permen tahun2013 nomor81a_lampiran3
Permen tahun2013 nomor81a_lampiran3Irma Muthiara Sari
 
如何在Aix上运行prm for oracle database
如何在Aix上运行prm for oracle database如何在Aix上运行prm for oracle database
如何在Aix上运行prm for oracle database
maclean liu
 
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
maclean liu
 
Que hago y_como_vivo
Que hago y_como_vivoQue hago y_como_vivo
Que hago y_como_vivoalmeri1595
 
Assessing the biological effects form low dose exposures similar to medical a...
Assessing the biological effects form low dose exposures similar to medical a...Assessing the biological effects form low dose exposures similar to medical a...
Assessing the biological effects form low dose exposures similar to medical a...Leishman Associates
 
Fr i final exam review
Fr i final exam reviewFr i final exam review
Fr i final exam reviewLiz Bucrek
 
Ioug 2010 oracle critical patch updates unwrapped presentation
Ioug 2010 oracle critical patch updates unwrapped presentationIoug 2010 oracle critical patch updates unwrapped presentation
Ioug 2010 oracle critical patch updates unwrapped presentationmaclean liu
 
Presentation for Workshop on RTTC Curriculum Revision workshop
Presentation for Workshop on RTTC Curriculum Revision workshopPresentation for Workshop on RTTC Curriculum Revision workshop
Presentation for Workshop on RTTC Curriculum Revision workshop
Stefaan Vande Walle
 
Plantilla3
Plantilla3Plantilla3
Plantilla3bugatito
 

Viewers also liked (20)

为10g rac cluster添加节点
为10g rac cluster添加节点为10g rac cluster添加节点
为10g rac cluster添加节点
 
Svithjod
SvithjodSvithjod
Svithjod
 
Gaelic Football
Gaelic FootballGaelic Football
Gaelic Football
 
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linuxUpgrade 11.2.0.1 rac db to 11.2.0.2 in linux
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
 
11g新特性streams同步捕获
11g新特性streams同步捕获11g新特性streams同步捕获
11g新特性streams同步捕获
 
Permen tahun2013 nomor81a_lampiran1
Permen tahun2013 nomor81a_lampiran1Permen tahun2013 nomor81a_lampiran1
Permen tahun2013 nomor81a_lampiran1
 
Devon house
Devon houseDevon house
Devon house
 
Benchmarks riet picknicken
Benchmarks riet picknickenBenchmarks riet picknicken
Benchmarks riet picknicken
 
Building_brands_How_can_I_help_you
Building_brands_How_can_I_help_youBuilding_brands_How_can_I_help_you
Building_brands_How_can_I_help_you
 
123
123123
123
 
Indian Ngo’S12
Indian Ngo’S12Indian Ngo’S12
Indian Ngo’S12
 
Permen tahun2013 nomor81a_lampiran3
Permen tahun2013 nomor81a_lampiran3Permen tahun2013 nomor81a_lampiran3
Permen tahun2013 nomor81a_lampiran3
 
如何在Aix上运行prm for oracle database
如何在Aix上运行prm for oracle database如何在Aix上运行prm for oracle database
如何在Aix上运行prm for oracle database
 
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
【诗檀软件 郭兆伟-技术报告】跨国企业级Oracle数据库备份策略
 
Que hago y_como_vivo
Que hago y_como_vivoQue hago y_como_vivo
Que hago y_como_vivo
 
Assessing the biological effects form low dose exposures similar to medical a...
Assessing the biological effects form low dose exposures similar to medical a...Assessing the biological effects form low dose exposures similar to medical a...
Assessing the biological effects form low dose exposures similar to medical a...
 
Fr i final exam review
Fr i final exam reviewFr i final exam review
Fr i final exam review
 
Ioug 2010 oracle critical patch updates unwrapped presentation
Ioug 2010 oracle critical patch updates unwrapped presentationIoug 2010 oracle critical patch updates unwrapped presentation
Ioug 2010 oracle critical patch updates unwrapped presentation
 
Presentation for Workshop on RTTC Curriculum Revision workshop
Presentation for Workshop on RTTC Curriculum Revision workshopPresentation for Workshop on RTTC Curriculum Revision workshop
Presentation for Workshop on RTTC Curriculum Revision workshop
 
Plantilla3
Plantilla3Plantilla3
Plantilla3
 

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

还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery
maclean liu
 
Install oracle service bus
Install oracle service bus Install oracle service bus
Install oracle service bus
Osama Mustafa
 
How to debug ocfs2 hang problem
How to debug ocfs2 hang problemHow to debug ocfs2 hang problem
How to debug ocfs2 hang problem
Gang He
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
openstackcisco
 
Dataguard first apply patch
Dataguard first apply patchDataguard first apply patch
Dataguard first apply patch
Palash Sarkar
 
Operating System Assignment Help
Operating System Assignment HelpOperating System Assignment Help
Operating System Assignment Help
Programming Homework Help
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
Osama Mustafa
 
Securing Containers, One Patch at a Time - Michael Crosby, Docker
Securing Containers, One Patch at a Time - Michael Crosby, DockerSecuring Containers, One Patch at a Time - Michael Crosby, Docker
Securing Containers, One Patch at a Time - Michael Crosby, Docker
Docker, Inc.
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edwardcaiqi wang
 
Oracle PSU Release Notes 10/2012
Oracle PSU Release Notes 10/2012Oracle PSU Release Notes 10/2012
Oracle PSU Release Notes 10/2012
Protect724
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
.Gastón. .Bx.
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
Leighton Nelson
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for Automatization
Sergey Arkhipov
 
Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3
David Pasek
 
ESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release NotesESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release Notes
Protect724
 
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
maclean liu
 

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

还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery还原Oracle中真实的cache recovery
还原Oracle中真实的cache recovery
 
Install oracle service bus
Install oracle service bus Install oracle service bus
Install oracle service bus
 
How to debug ocfs2 hang problem
How to debug ocfs2 hang problemHow to debug ocfs2 hang problem
How to debug ocfs2 hang problem
 
Dev stacklabguide
Dev stacklabguideDev stacklabguide
Dev stacklabguide
 
Devstack lab guide
Devstack lab guideDevstack lab guide
Devstack lab guide
 
Dataguard first apply patch
Dataguard first apply patchDataguard first apply patch
Dataguard first apply patch
 
Operating System Assignment Help
Operating System Assignment HelpOperating System Assignment Help
Operating System Assignment Help
 
Gsi
GsiGsi
Gsi
 
Oracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single nodeOracle api gateway installation as cluster and single node
Oracle api gateway installation as cluster and single node
 
Securing Containers, One Patch at a Time - Michael Crosby, Docker
Securing Containers, One Patch at a Time - Michael Crosby, DockerSecuring Containers, One Patch at a Time - Michael Crosby, Docker
Securing Containers, One Patch at a Time - Michael Crosby, Docker
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edward
 
Oracle PSU Release Notes 10/2012
Oracle PSU Release Notes 10/2012Oracle PSU Release Notes 10/2012
Oracle PSU Release Notes 10/2012
 
RAC - Test
RAC - TestRAC - Test
RAC - Test
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
 
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for Automatization
 
Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3Spectre meltdown performance_tests - v0.3
Spectre meltdown performance_tests - v0.3
 
ESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release NotesESM 5.5 Patch 1 Release Notes
ESM 5.5 Patch 1 Release Notes
 
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南Enterprise manager cloud control 12c(12.1) &agent安装图文指南
Enterprise manager cloud control 12c(12.1) &agent安装图文指南
 

More from maclean liu

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

More from maclean liu (20)

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

Recently uploaded

The PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptxThe PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptx
OH TEIK BIN
 
Lesson 9 - Resisting Temptation Along the Way.pptx
Lesson 9 - Resisting Temptation Along the Way.pptxLesson 9 - Resisting Temptation Along the Way.pptx
Lesson 9 - Resisting Temptation Along the Way.pptx
Celso Napoleon
 
English - The Book of Joshua the Son of Nun.pdf
English - The Book of Joshua the Son of Nun.pdfEnglish - The Book of Joshua the Son of Nun.pdf
English - The Book of Joshua the Son of Nun.pdf
Filipino Tracts and Literature Society Inc.
 
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptxThe Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
Bharat Technology
 
Evangelization in the footsteps of Saint Vincent de Paul
Evangelization in the footsteps of Saint Vincent de PaulEvangelization in the footsteps of Saint Vincent de Paul
Evangelization in the footsteps of Saint Vincent de Paul
Famvin: the Worldwide Vincentian Family
 
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docxHomily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
James Knipper
 
Qualifications in psychology _Dr.Navis.pdf
Qualifications in psychology _Dr.Navis.pdfQualifications in psychology _Dr.Navis.pdf
Qualifications in psychology _Dr.Navis.pdf
Oavis Or
 
Hebrew Gospel of Matthew by George Howard
Hebrew Gospel of Matthew by George HowardHebrew Gospel of Matthew by George Howard
Hebrew Gospel of Matthew by George Howard
GiovanniZdeOliveira
 
St. John's Parish Magazine - June 2024 ..
St. John's Parish Magazine - June 2024 ..St. John's Parish Magazine - June 2024 ..
St. John's Parish Magazine - June 2024 ..
Chris Lyne
 
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdfKenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
AlanBianch
 
What Should be the Christian View of Anime?
What Should be the Christian View of Anime?What Should be the Christian View of Anime?
What Should be the Christian View of Anime?
Joe Muraguri
 
Jude: Practical Exhortations_Jude 17-23.pptx
Jude: Practical Exhortations_Jude 17-23.pptxJude: Practical Exhortations_Jude 17-23.pptx
Jude: Practical Exhortations_Jude 17-23.pptx
Stephen Palm
 
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdfTALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
meharoof1
 
The Good News, newsletter for June 2024 is here
The Good News, newsletter for June 2024 is hereThe Good News, newsletter for June 2024 is here
The Good News, newsletter for June 2024 is here
NoHo FUMC
 
Jesus Heals a Paralyzed Man for Children
Jesus Heals a Paralyzed Man for ChildrenJesus Heals a Paralyzed Man for Children
Jesus Heals a Paralyzed Man for Children
NelTorrente
 
Deerfoot Church of Christ Bulletin 6 2 24
Deerfoot Church of Christ Bulletin 6 2 24Deerfoot Church of Christ Bulletin 6 2 24
Deerfoot Church of Christ Bulletin 6 2 24
deerfootcoc
 

Recently uploaded (16)

The PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptxThe PBHP DYC ~ Reflections on The Dhamma (English).pptx
The PBHP DYC ~ Reflections on The Dhamma (English).pptx
 
Lesson 9 - Resisting Temptation Along the Way.pptx
Lesson 9 - Resisting Temptation Along the Way.pptxLesson 9 - Resisting Temptation Along the Way.pptx
Lesson 9 - Resisting Temptation Along the Way.pptx
 
English - The Book of Joshua the Son of Nun.pdf
English - The Book of Joshua the Son of Nun.pdfEnglish - The Book of Joshua the Son of Nun.pdf
English - The Book of Joshua the Son of Nun.pdf
 
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptxThe Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
The Chakra System in our body - A Portal to Interdimensional Consciousness.pptx
 
Evangelization in the footsteps of Saint Vincent de Paul
Evangelization in the footsteps of Saint Vincent de PaulEvangelization in the footsteps of Saint Vincent de Paul
Evangelization in the footsteps of Saint Vincent de Paul
 
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docxHomily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
Homily: The Solemnity of the Most Holy Trinity Sunday 2024.docx
 
Qualifications in psychology _Dr.Navis.pdf
Qualifications in psychology _Dr.Navis.pdfQualifications in psychology _Dr.Navis.pdf
Qualifications in psychology _Dr.Navis.pdf
 
Hebrew Gospel of Matthew by George Howard
Hebrew Gospel of Matthew by George HowardHebrew Gospel of Matthew by George Howard
Hebrew Gospel of Matthew by George Howard
 
St. John's Parish Magazine - June 2024 ..
St. John's Parish Magazine - June 2024 ..St. John's Parish Magazine - June 2024 ..
St. John's Parish Magazine - June 2024 ..
 
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdfKenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
Kenneth Grant - Against the Light-Holmes Pub Grou Llc (1999).pdf
 
What Should be the Christian View of Anime?
What Should be the Christian View of Anime?What Should be the Christian View of Anime?
What Should be the Christian View of Anime?
 
Jude: Practical Exhortations_Jude 17-23.pptx
Jude: Practical Exhortations_Jude 17-23.pptxJude: Practical Exhortations_Jude 17-23.pptx
Jude: Practical Exhortations_Jude 17-23.pptx
 
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdfTALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
TALABALESHWARA TEMPLE AND KODAVA AIN MANE.pdf
 
The Good News, newsletter for June 2024 is here
The Good News, newsletter for June 2024 is hereThe Good News, newsletter for June 2024 is here
The Good News, newsletter for June 2024 is here
 
Jesus Heals a Paralyzed Man for Children
Jesus Heals a Paralyzed Man for ChildrenJesus Heals a Paralyzed Man for Children
Jesus Heals a Paralyzed Man for Children
 
Deerfoot Church of Christ Bulletin 6 2 24
Deerfoot Church of Christ Bulletin 6 2 24Deerfoot Church of Christ Bulletin 6 2 24
Deerfoot Church of Christ Bulletin 6 2 24
 

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

  • 1. 如何安装 Oracle one- off 临时小补丁及注意事项 by Maclean.liu liu.maclean@gmail.com www.oracledatabase12g.com
  • 2. 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.
  • 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. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追求法律责 任.