opatch的升级比较简单,就是个文件覆盖
D:>cd %oracle_home%opatch
--查看版本信息
D:oracleproduct10.2.0db_1OPatch>opatch version
Invoking OPatch 10.2.0.4.2
OPatch Version: 10.2.0.4.2
OPatch succeeded.
--查看打补丁的情况
D:oracleproduct10.2.0db_1OPatch>opatch lsinv
D:oracleproduct10.2.0db_1OPatch>opatch lsinventory
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation. All rights reserved.
Oracle 主目录 : D:oracleproduct10.2.0db_1
主产品清单: C:Program FilesOracleInventory
从 : n/a
OPatch 版本 : 10.2.0.4.2
OUI 版本 : 10.2.0.4.0
OUI 位置 : D:oracleproduct10.2.0db_1oui
日志文件位置 : D:oracleproduct10.2.0db_1cfgtoollogsopatchopatch2021-12-30_09-53-01上午.log
Lsinventory Output file location : D:oracleproduct10.2.0db_1cfgtoollogsopatchlsinvlsinventory2021-12-30_09-53-01上午.txt
--------------------------------------------------------------------------------
已安装的顶级产品 (1):
Oracle Database 10g 10.2.0.4.0
此 Oracle 主目录中已安装 1 个产品。
此 Oracle 主目录中未安装任何中间补丁程序。
--------------------------------------------------------------------------------
OPatch succeeded.
D:oracleproduct10.2.0db_1>mkdir opatch_bak
D:oracleproduct10.2.0db_1>xcopy opatch*.* opatch_bak*.*
将下载的opatch包上传到oracle的家目录
D:oracleproduct10.2.0db_1p6810189_10204_WINNT64
--查看版本信息
D:oracleproduct10.2.0db_1OPatch>opatch version
Invoking OPatch 10.2.0.4.2
OPatch Version: 10.2.0.4.2
OPatch succeeded.
至此opatch升级完毕