最近测试了一下在Oracle 10g下面(单实例下面)升级、应用补丁PSU 10.2.0.5.180717,打这个补丁的主要原因是 Oracle 将于 2019年6月启用新的SCN兼容性,并且由于BigSCN的作用,96K每秒的SCN增速,都可能会使得通过DB Link的访问产生SCN过度拉升,所以新的补丁需要被应用。最近(2018年8月份)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_HOME/OPatch/opatch  rollback -id 9949948

$ $ORACLE_HOME/OPatch/opatch  rollback -id 7612454

Patch Installation Instructions

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

$ORACLE_HOME/OPatch/opatch apply -report

 

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

[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

如上所示,这个是因为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_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相关推荐

  1. Oracle 10g R2 RAC手动打补丁PSU(10.2.0.5.19)

    一.准备工作 1,数据库环境 操作系统版本   : Redhat 5.8 x64    数据库版本     : Oracle 10.2.0.5 x64 RAC     Cluterware     : ...

  2. 安装 Oracle Database PSU 10.2.0.4.2 步骤

    5    安装PSU 10.2.0.4.2 本例是基于10.2.0.4版本2009-10-22(Metalink 756671.1)发布的Oracle Recommended Patches的安装. ...

  3. Oracle 10g升级之--PSU 升级(续)

    Oracle 10g升级之--PSU升级(续) 5.再从10.2.0.4.4 升级到10.2.0.4.11 -----------升级到10.2.0.4.11 [oracle@RH4 12879929 ...

  4. 单机 Oracle 11g(11.2.0.4)手动打补丁PSU(11.2.0.4.8)

    环境说明: database : 11.2.0.4 x64 os: centos6.7 x64 准备内容: OPatch : p6880880_112000_Linux-x86-64.zip DB P ...

  5. oracle+10g+cpu补丁,Oracle 10g打补丁(p5490848_10202_LINUX)

    Oracle的补丁一般都会有README.html,里面有详细的更新该补丁的介绍. 以下为我打补丁的记录: 1.You must use the OPatch utility release 10.2 ...

  6. 7月最新发布10.2.0.4.5 Patch Set Update

    同11.2.0.1.2 psu同时发布的还有10.2.0.4.5 psu,值得注意的是这2个psu都包括了针对ora-600/7445错误出现时信息显示的原因和调用(cause/action). 附该 ...

  7. Oracle 10.2.0.5.4 Patch Set Update (PSU) – Patch No: p12419392

    有关Oracle patch和PSU,PSR 说明参考我的blog: Oracle 补丁体系 及opatch 工具 介绍 http://blog.csdn.net/tianlesoftware/art ...

  8. Oracle 10g(10.2.0.4)升级到10.2.0.5.19

    一.将数据库版本从10.2.0.4 升级到 10.2.0.5,再升级到10.2.0.5.19 (1) 备份等过程略过,一个老库的升级过程,记录之.   (2) 一致性关闭数据库及监听 sqlplus ...

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

    点击▲关注 "数据和云"   给公众号标星置顶 更多精彩 第一时间直达 作者:赵靖宇,云和恩墨北区交付工程师,长期服务于运营商.保险.医院.政府等行业,擅长Oracle数据库故障处 ...

最新文章

  1. 抓住「金九银十」的尾巴!技术面试如何准备,谷歌面试官亲授
  2. CentripetalNet 48
  3. nohup不输出日志信息的方法,及linux重定向学习
  4. 搜索推荐系统实战:终极奥秘
  5. jupyter notebook bp网络_全华班再次败北,TES奇葩BP背大锅!签来风哥能拯救滔搏吗?...
  6. C指针详解(经典,非常详细)
  7. Java Html转pdf实战
  8. ajax上传json到服务器
  9. 存数据返回他的序列号id_雪花般的分布式唯一ID雪花算法
  10. 【LA 2572】Viva Confetti(圆与圆弧覆盖+精度问题)
  11. 个人开发作品分享:iTab新标签页
  12. maven打包时依赖的项目包是时间戳而不是SNAPSHOT?
  13. android studio编辑环境变量,Android studio gradle环境变量配置教程
  14. stata学习笔记|异方差问题
  15. Dreamweaver CC 2018/64位下载地址及安装教程
  16. 把手账打印成书 把回忆装订成册
  17. PPT是什么的缩写?
  18. DNS 是什么?如何运作的?
  19. PouchContainer GA 版本发布,邀您参与上海 Meetup 共话容器未来
  20. Securinets CTF Quals 2022 Forensics Writeup

热门文章

  1. 费米悖论的三十种解释
  2. 业界首个!华为联合中国信通院等发布《网络体系强基展望白皮书》
  3. 防止被算力“锁死”,人工智能进化急需革命性算法
  4. 总经费8.4亿的上海市脑科学重大专项进展如何?且看2019年度工作汇报会
  5. 【周末阅读】人工智能时代基础数据服务大有可为
  6. 牛津教授揭秘AI革命及其前沿进展
  7. 卡内基梅隆大学机器学习系副主任邢波:AI落地现在最缺的是思维方式
  8. 解析:GE工业互联网平台Predix
  9. DeepMind开源Psychlab平台——搭建AI和认知心理学的桥梁(附论文和代码下载)
  10. 4 年开发 43 款软件,这位乡村教师火了