Oracle 10g 应用补丁PSU 10.2.0.5.180717

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 10g 应用补丁PSU 10.2.0.5.180717相关的知识,希望对你有一定的参考价值。

 

最近测试了一下在Oracle 10g下面(单实例下面)升级、应用补丁PSU 10.2.0.5.180717,打这个补丁的主要原因是 Oracle 将于 20196月启用新的SCN兼容性,并且由于BigSCN的作用,96K每秒的SCN增速,都可能会使得通过DB Link的访问产生SCN过度拉升,所以新的补丁需要被应用。最近(20188月份)Oracle 提供了针对 Oracle 10g 最终版本 10.2.0.5 的修正补丁,为低版本用户提供了一个解决方案。更多这方面的相关知识,可以参考这篇文章升级更新:Oracle关于DB Link在2019年升级的10g版本兼容性下面按照官方文档从Patch Pre-Installation Instructions,Patch Installation Instructions,Post Installation Instructions这三个方面来测试、验证一下

 

 

 

Patch Pre-Installation Instructions

 

 

安装这个补丁对OPatch Utility的版本有要求,要求OPatch 10.2 version 10.2.0.5.0 或之后的版本,否则在应用补丁的过程就会遇到一些错误,后面例子会介绍这个具体错误,以及如何升级OPatch Utility(此处不展开,后面展开)

 

 

 

检查opatch版本

 

 

不符合要求的版本的例子

 

#$ORACLE_HOME/OPatch/opatch version
Invoking OPatch 10.2.0.4.9
 
OPatch Version: 10.2.0.4.9
 
OPatch succeeded.

 

 

符合要求的版本的例子:

 

#$ORACLE_HOME/OPatch/opatch version
Invoking OPatch 10.2.0.5.1
 
OPatch Version: 10.2.0.5.1
 
OPatch succeeded.

 

 

 

注意事项:

 

To install the PSU 10.2.0.5.180717 patch, the Oracle home must have the 10.2.0.5.0 Database installed. Subsequent PSU patches can be installed on Oracle Database 10.2.0.5.0 or any PSU with a lower 5th numeral version than the one being installed.

 

 

 

首先要去meatalink上下载Patch 26493118 也就是 Oracle Database Patch Set Update 10.2.0.5.171017。当然下载这个补丁是需要口令。不过我们下载的是补丁程序26493118: DATABASE PATCH SET UPDATE 10.2.0.5.171017, 因为我去下载的时候,这个补丁程序集已经被取代(Patch 26925212 is a super set of patch 26493118)。

 

 

关闭监听、ORACLE实例等

 

如下所示:

 

$ lsnrctl stop
 
SQL> shutdown immediate
 
$ emctl status dbconsole
TZ set to PRC
OC4J Configuration issue. /u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_getlnx14uat.esquel.com_SCM2 not found. 
 
如果EM服务是运行状态,就必须关闭
 
$ emctl stop dbconsole

 

 

$ unzip p26925212_10205_Linux-x86-64.zip

 

解压后,我们最好检查一下当前环境是否存在补丁冲突

 

   Determine whether any currently installed one-off patches conflict with the PSU patch as follows:

 

opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./26925212

 

 

正常情况:

 

[oracle@mylnx01 klb]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./26925212/
Invoking OPatch 10.2.0.4.9
 
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation.  All rights reserved.
 
PREREQ session
 
Oracle Home       : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 10.2.0.4.9
OUI version       : 10.2.0.5.0
OUI location      : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2018-11-01_22-35-10PM.log
 
Patch history file: /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt
 
Invoking prereq "checkconflictagainstohwithdetail"
 
Prereq "checkConflictAgainstOHWithDetail" passed.

 

 

冲突情况:

 

[oracle@mylnx02 tmp]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./26925212/
Invoking OPatch 10.2.0.5.1
 
Oracle Interim Patch Installer version 10.2.0.5.1
Copyright (c) 2010, Oracle Corporation.  All rights reserved.
 
PREREQ session
 
Oracle Home       : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 10.2.0.5.1
OUI version       : 10.2.0.5.0
OUI location      : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2018-11-04_14-44-35PM.log
 
Patch history file: /u01/app/oracle/product/10.2.0/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.
 
Prereq "checkConflictAgainstOHWithDetail" failed.
 
Summary of Conflict Analysis:
 
Patches that can be applied now without any conflicts are : 
26925212
 
Following patches are not required, as they are subset of the patches in Oracle Home or subset of the patches in the given list : 
9949948, 7612454
 
Following patches will be rolled back from Oracle Home on application of the patches in the given list : 
9949948, 7612454
 
Conflicts/Supersets for each patch are:
 
Patch : 26925212
 
        Bug Superset of 9949948
        Super set bugs are:
        9949948
 
        Bug Superset of 7612454
        Super set bugs are:
        7612454
 
OPatch succeeded.

clip_image001

 

 

卸载冲突补丁:

 

$ $ORACLE_HOME/OPatch/opatch  rollback -id 9949948

$ $ORACLE_HOME/OPatch/opatch  rollback -id 7612454

 

突出重围:Oracle 10.2.0.5应用SCN补丁解决DB Link预警实践

oracle 10g rac环境升级到10.2.0.5

oracle升级PSU补丁

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

Oracle 10g 10.2.0.4的group by BUG |ORA-00979 not a GROUP BY expression|

RHEL平台升级Oracle 12C+ PSU补丁