【opatch安装卸载案例:附遇到OPatch failed with error code 74】

本文档详细介绍了在Oracle 10.2.0.5.0环境中打补丁的过程,包括opatch的安装、检查、应用以及卸载步骤。在安装过程中强调了补丁的累积性和所需OPatch版本。在应用补丁时,遇到OPatch错误代码74的问题,通过关闭监听解决。卸载部分涵盖了关闭实例、回滚补丁及执行回滚脚本的流程。
摘要由CSDN通过智能技术生成


基础知识详解:https://www.cnblogs.com/zfox2017/p/6809376.html

本案例以oracle 10.2.0.5.0 打补丁过程进行详解。
参考oracle README文档 Patch 14275629 - 10.2.0.5.9 Patch Set Update

需要注意的两点:

1.补丁集更新(PSU)补丁是累积性的。也就是说,所有以前的PSU的内容都包含在最新的PSU修补程序中。

2.必须使用OPatch 10.2 10.2.0.5.0或更高版本来应用此补丁。

1. opatch 安装

1.1 检查Opatch软件及数据库版本信息

检查opatch版本:

[oracle@ZHUANHU ~]$ cd /u01/app/oracle/product/10.0.1/db_1/OPatch/
[oracle@ZHUANHU OPatch]$ ./opatch version
Invoking OPatch 10.2.0.4.9
OPatch Version: 10.2.0.4.9
OPatch succeeded.

检查数据库版本

SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE	10.2.0.5.0	Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 - Production

用inventory 命令查看已经安装的patch:

[oracle@ZHUANHU ~]$ opatch lsinventory
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.0.1/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.0.1/db_1/oui
Log file location : /u01/app/oracle/product/10.0.1/db_1/cfgtoollogs/opatch/opatch2020-05-22_09-50-17AM.log

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

Lsinventory Output file location : /u01/app/oracle/product/10.0.1/db_1/cfgtoollogs/opatch/lsinv/lsinventory2020-05-22_09-50-17AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2): 

Oracle Database 10g                                                  10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4                            10.2.0.5.0
There are 2 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
--------------------------
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值