weblogic 12.2.1.3补丁以及opatch工具安装

本文主要是用weblogic12.2.1.3的29016089和28298734补丁。小试牛刀,有问题请指正波,谢谢。(Patch_top包文件待会发链接)

 

weblogic的打补丁:
总的来说打weblogic补丁要(据说事前要把weblogic服务停止掉)
  1>安装opatch工具(在WebLogic 12.1.2版本以后,给WebLogic打补丁不再使用bsu工具(Smart Updater),而是使用opatch工具来打。)
   2>打相对应的补丁包
1、把相对应的文件(包含opatch工具和补丁)移到相对应的目录下   
     scp -r Patch_top/ sposs@ip地址:/home/sposs/
2、安装opatch13.9.4(这个补丁包必须要这个版本以上的才可以、可以先看版本下面有查看版本命令)
cd /home/sposs/Patch_top/OPatch13.9.4.0.0/6880880
   oracle_home和 /home/sposs/wls/oraInst.loc是相对应的目录
   java -jar ./opatch_generic.jar -silent oracle_home=/home/sposs/wls/oracle_home/ -invPtrLoc /home/sposs/wls/oraInst.loc
 3、查看opatch的版本和补丁情况  
    cd /home/sposs/wls/oracle_home/OPatch
    ./opatch version
   ./opatch lspatches

4、安装补丁包29016089(注意在所在的目录)
   
   [sposs@spossweblogic06 OPatch]$ ./opatch apply /home/sposs/Patch_top/29016089
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/sposs/wls/oracle_home
Central Inventory : /home/sposs/wls/oraInventory
   from           : /home/sposs/wls/oracle_home/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-25-10PM_1.log


OPatch detects the Middleware Home as "/home/sposs/wls/oracle_home"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29016089  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/sposs/wls/oracle_home')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '29016089' to OH '/home/sposs/wls/oracle_home'
ApplySession: Optional component(s) [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [

Patch 29016089 successfully applied.
Sub-set patch [28298734] has become inactive due to the application of a super-set patch [29016089].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-25-10PM_1.log

OPatch succeeded.
[sposs@spossweblogic06 OPatch]$ 
[sposs@spossweblogic06 OPatch]$ ./opatch lspatches
29016089;WLS PATCH SET UPDATE 12.2.1.3.190416
26355633;One-off
26287183;One-off
26261906;One-off
26051289;One-off

OPatch succeeded.
安装OK
5、失败的例子(opatch工具版本过低)
   =====================================================================================================失败=========================
[sposs@spossweblogic09 ~]$ cd /home/sposs/wls/oracle_home/OPatch
[sposs@spossweblogic09 OPatch]$ ./opatch version
OPatch Version: 13.9.2.0.0

OPatch succeeded.
[sposs@spossweblogic09 OPatch]$ ./opatch lspatches
26355633;One-off
26287183;One-off
26261906;One-off
26051289;One-off

OPatch succeeded.
[sposs@spossweblogic09 OPatch]$ ./opatch apply /home/sposs/Patch_top/29016089
Oracle Interim Patch Installer version 13.9.2.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/sposs/wls/oracle_home
Central Inventory : /home/sposs/wls/oraInventory
   from           : /home/sposs/wls/oracle_home/oraInst.loc
OPatch version    : 13.9.2.0.0
OUI version       : 13.9.2.0.0
Log file location : /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-57-23PM_1.log


OPatch detects the Middleware Home as "/home/sposs/wls/oracle_home"

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckMinimumOPatchVersion" failed.
The details are:


The OPatch being used has version 13.9.2.0.0 while the following patch(es) require higher versions: 
Patch 29016089 requires OPatch version 13.9.4.0.0.
Please download latest OPatch from My Oracle Support.

UtilSession failed: Prerequisite check "CheckMinimumOPatchVersion" failed.
Log file location: /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-57-23PM_1.log

OPatch failed with error code 73
=================================================================================================================   
   
6、打28298734的补丁
   [sposs@spossweblogic06 OPatch]$ ./opatch apply /home/sposs/Patch_top/Patch28298734/28298734/
Oracle Interim Patch Installer version 13.9.4.0.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/sposs/wls/oracle_home
Central Inventory : /home/sposs/wls/oraInventory
   from           : /home/sposs/wls/oracle_home/oraInst.loc
OPatch version    : 13.9.4.0.0
OUI version       : 13.9.3.0.0
Log file location : /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-19-09PM_1.log


OPatch detects the Middleware Home as "/home/sposs/wls/oracle_home"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   28298734  

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/sposs/wls/oracle_home')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...

Patching component oracle.java.jaxws, 12.2.1.3.0...

Patch 28298734 successfully applied.
Log file location: /home/sposs/wls/oracle_home/cfgtoollogs/opatch/opatch2019-05-09_16-19-09PM_1.log

OPatch succeeded.
万事OK查看补丁情况(28298734和29016089补丁我分两台机器打的并不在同一机器下)
[sposs@spossweblogic06 OPatch]$ ./opatch lspatches
28298734;WLS PATCH SET UPDATE 12.2.1.3.181016
26355633;One-off
26287183;One-off
26261906;One-off
26051289;One-off

OPatch succeeded.
/home/sposs/wls/oracle_home/OPatch
bash-3.00$ ./opatch version
OPatch Version: 13.9.4.0.0
   ./opatch lspatches
[sposs@spossweblogic01 OPatch]$ ./opatch lspatches
29016089;WLS PATCH SET UPDATE 12.2.1.3.190416
26355633;One-off
26287183;One-off
26261906;One-off
26051289;One-off

OPatch succeeded.

   启动weblogic
   cd /home/sposs/wls/user_projects/domains/ybe/bin/
   ./startWebLogic.sh

--------------------------------------------------

安装补丁包30675853

cd oracle_home/OPatch
./opatch nrollback -id 29814665
./opatch apply /home/yourname/Patch_top/30675853-20200225/
./opatch lsinventory

有啥错误请指正哈。
 ok---恰同学少年-19.5.15
   
   

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值