接客户要求,升级现有weblogic12.2.1.3
下载补丁p34010914_122130_Generic.zip
解压补丁到任意目录,确保weblogic用户有权限
从12c开始,weblogic升级模式改为使用opatch升级
根据补丁的readme要求,opatch版本要求大于13.9.4.2.8
The ORACLE_HOME should be installed with OPatch version 13.9.4.2.8 or higher.
可以在这个地方下载:
The latest OPatch version can be obtained from the following link:
https://support.oracle.com/rs?type=patch&id=28186730
备份weblogic 软件目录:
tar -cvf weblogic.tar /weblogic
备份完成后,将原有OPatch备份,后安装新的OPatch
unzip p28186730_139428_Generic.zip
cd 6880880
java -jar /home/weblogic/6880880/opatch_generic.jar -silent oracle_home=/weblogic/oracle
安装opatch后,验证
[weblogic@centos7 ~]$ opatch version OPatch Version: 13.9.4.2.8 OPatch succeeded.
解压PSU到任意目录
unzip p34010914_122130_Generic.zip
cd 34010914
使用opatch应用补丁
[weblogic@centos7 ~]$ cd 34010914/ --进入补丁目录 [weblogic@centos7 34010914]$ [weblogic@centos7 34010914]$ [weblogic@centos7 34010914]$ opatch apply Oracle Interim Patch Installer version 13.9.4.2.8 Copyright (c) 2022, Oracle Corporation. All rights reserved. Oracle Home : /weblogic/oracle Central Inventory : /weblogic/oraInventory from : /weblogic/oracle/oraInst.loc OPatch version : 13.9.4.2.8 OUI version : 13.9.4.0.0 Log file location : /weblogic/oracle/cfgtoollogs/opatch/opatch2022-06-09_23-20-03PM_1.log OPatch detects the Middleware Home as "/weblogic/oracle" Verifying environment and performing prerequisite checks... OPatch continues with these patches: 34010914 Do you want to proceed? [y|n] y User Responded with: Y --输入y确认开始 All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/weblogic/oracle')
Is the local system ready for patching? [y|n]
y
User Responded with: Y --输入y确认开始
Backing up files...
Applying interim patch '34010914' to OH '/weblogic/oracle'
ApplySession: Optional component(s) [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ] , [ oracle.toplink.doc, 12.2.1.3.0 ] , [ oracle.jrf.thirdparty.jee, 12.2.1.3.0 ] , [ oracle.jrf.thirdparty.jee, 12.2.1.3.0 ] , [ oracle.wls.core.app.server.nativelib, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.se, 12.2.1.3.0 ] , [ oracle.wls.server.examples, 12.2.1.3.0 ] , [ oracle.wls.rdmu, 12.2.1.3.0 ] , [ oracle.legacy_oc4j_xml_schemas, 12.2.1.3.0 ] , [ oracle.wls.server.mt.examples, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.ee, 12.2.1.3.0 ] , [ oracle.jrf.tenancy, 12.2.1.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.webservices.orawsdl, 12.2.1.3.0...
Patching component oracle.webservices.orawsdl, 12.2.1.3.0...
省略。。。。。。。。
Patching component oracle.java.jaxws, 12.2.1.3.0...
Patching component oracle.mysqlconn, 5.1.22.0.0...
Patch 34010914 successfully applied.
Log file location: /weblogic/oracle/cfgtoollogs/opatch/opatch2022-06-09_23-20-03PM_1.log
OPatch succeeded. --安装完成
启动weblogic验证。