Oracle 10g 应用补丁PSU 10.2.0.5.180717

栏目: 数据库 · 发布时间: 6年前

内容简介:Patch Pre-Installation Instructions

最近测试了一下在 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.

Oracle 10g 应用补丁PSU 10.2.0.5.180717

卸载冲突补丁:

$ $ORACLE_HOME/OPatch/opatch   rollback -id 9949948

$ $ORACLE_HOME/OPatch/opatch   rollback -id 7612454

Patch Installation Instructions

预演补丁安装的正常情况:

$ORACLE_HOME/OPatch/opatch apply -report

Oracle 10g 应用补丁PSU 10.2.0.5.180717

预演补丁安装的非正常情况:

[oracle@getlnx01uat 26925212]$ $ORACLE_HOME/OPatch/opatch apply -report

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.

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-36-06PM.log

Patch history file: /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch_history.txt

ApplySession applying interim patch '26925212' to OH '/u01/app/oracle/product/10.2.0/db_1'

ApplySession failed: ApplySession failed to prepare the system.

Patch 26925212 requires OPatch version 10.2.0.5.0.

The OPatch version being used (10.2.0.4.9) doesn't meet the minimum version required by the patch(es). Please download latest OPatch from My Oracle Support.

System intact, OPatch will not attempt to restore the system

OPatch failed with error code 73

Oracle 10g 应用补丁PSU 10.2.0.5.180717

如上所示,这个是因为 OPatch 的版本低于 10.2.0.5.0 ,所以必须必须先升级 OPatch 的版本,可以下载 p6880880_1020000_Linux-x86-64.zip 安装包,具体步骤如下:

[oracle@mylnx01 tmp]$ unzip p6880880_1020000_Linux-x86-64.zip 
[oracle@mylnx01 tmp]$ cd OPatch/
 
[oracle@mylnx01 OPatch]$ cd $ORACLE_HOME
[oracle@mylnx01 db_1]$ mv OPatch  OPatch.bak
[oracle@mylnx01 db_1]$ 
 
 
[oracle@mylnx01 db_1]$ cp -rf /tmp/OPatch/  ./
[oracle@mylnx01 db_1]$ ls -lrt ./OPatch
total 80
-rw-r--r-- 1 oracle oinstall  2417 Nov  1 23:09 README.txt
drwxr-xr-x 4 oracle oinstall  4096 Nov  1 23:09 opatchprereqs
-rw-r--r-- 1 oracle oinstall  2576 Nov  1 23:09 opatch.pl
-rw-r--r-- 1 oracle oinstall    49 Nov  1 23:09 opatch.ini
-rwxr-xr-x 1 oracle oinstall  8085 Nov  1 23:09 opatch.bat
-r-x--x--- 1 oracle oinstall 13252 Nov  1 23:09 opatch
drwxr-xr-x 4 oracle oinstall  4096 Nov  1 23:09 ocm
drwxr-xr-x 2 oracle oinstall  4096 Nov  1 23:09 jlib
-rw-r--r-- 1 oracle oinstall 23695 Nov  1 23:09 emdpatch.pl
drwxr-xr-x 2 oracle oinstall  4096 Nov  1 23:09 docs
drwxr-xr-x 3 oracle oinstall  4096 Nov  1 23:09 crs
 
[oracle@mylnx01 db_1]$ $ORACLE_HOME/OPatch/opatch version
Invoking OPatch 10.2.0.5.1
 
OPatch Version: 10.2.0.5.1
 
OPatch succeeded.

[oracle@mylnx01 26925212]$ $ORACLE_HOME/OPatch/opatch apply -report

[oracle@mylnx01 26925212]$ $ORACLE_HOME/OPatch/opatch apply

Oracle 10g 应用补丁PSU 10.2.0.5.180717

检查补丁安装情况:

$ORACLE_HOME/OPatch/opatch lsinventory

Post Installation Instructions

打完补丁后,启动 Oracle 实例,然后运行一些脚本,如下所示,也可以参考补丁里面的相关文件 README.html

cd $ORACLE_HOME/rdbms/admin
 
 
sqlplus / as sysdba
SQL> STARTUP
 
SQL> @catbundle.sql psu apply
 
SQL> -- Execute the next statement only if this is the first PSU applied for 10.2.0.5 or this is the first PSU applied since 10.2.0.5.3.
 
SQL> @utlrp.sql
 
SQL> QUIT

检查 $ORACLE_HOME/cfgtoollogs/catbundle   $ORACLE_BASE/cfgtoollogs/catbundle   目录下的日志里面是否有任何错误。

catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log

catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log

  例如,测试案例当中生成的日志:

/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/catbundle/catbundle_PSU_SCM2_APPLY_2018Nov04_15_07_27.log

/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/catbundle/ catbundle_PSU_EPPS_GENERATE_2018Nov01_23_23_46.log


以上所述就是小编给大家介绍的《Oracle 10g 应用补丁PSU 10.2.0.5.180717》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数据分析技术白皮书

数据分析技术白皮书

伍海凤、刘鹏、杨佳静、马师慧Sara、李博、Shirley Song、Zinc、李晓艳 / 2016-8-11 / 0

关于数据分析技术白皮书(Analytics Book 中文版),主要内容围绕: 1. 分析(Analytics):网站分析 & APP分析 2. 谷歌分析工具的原理、部署与使用 3. 开源网站分析工具的原理、部署与使用 4. Log日志分析原理 5. 网站分析的维度与指标定义 6. 如何炼成为一个互联网数据分析师 请访问书的数据分析技术白皮书官网“免费”阅......一起来看看 《数据分析技术白皮书》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

SHA 加密
SHA 加密

SHA 加密工具