当前位置:   article > 正文

【WebLogic】Windows系统下WebLogic 12.1.3.0的安装和补丁_windows下weblogic补丁安装

windows下weblogic补丁安装

        Oracle WebLogic 12.1.3.0是Oracle发布的WebLogic 12c的早期版本,目前已经停止补丁技术支持。

        下载地址:

        https://www.oracle.com/middleware/technologies/weblogic-server-installers-downloads.html

        下面通过这个版本为大家演示下,如何在Windows系统(生产环境一般会安装在Windows Server中)安装和更新补丁。

        在安装之前,我们需要去查阅下这个版本的官方技术文档,以了解其与JDK的版本兼容性。

        https://docs.oracle.com/middleware/12213/wls/index.html

        可以发现,12.1.3可以兼容当时最新的JDK1.8(update 40+)

表:Oracle WebLogic 12.1.3.0与处理器、操作系统、JDK版本等兼容关系

Product OfferingRELEASEPROCESSOROSVERSIONOS Update TypeOS Update LevelOS 3264ORACLE APP 3264BITJDKVENDORJDKVERSIONJDK3264BIT
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Oracle Linux 5Update Level6+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Oracle Linux 6Update Level1+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Oracle Linux 7Update Level0+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Red Hat Enterprise Linux 5Update Level6+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Red Hat Enterprise Linux 6Update Level1+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64Red Hat Enterprise Linux 7Update Level0+6464Oracle JDK1.8.0_191+64
Oracle Coherence
Oracle WebLogic ServerFMW 12.1.3.0.0Linux x86-64SLES 11Service Pack0+6464Oracle JDK1.8.0_191+64
Oracle Coherence

        大家可以搜索这个EXCEL表格(fmw-1213certmatrix-2226694.xls)来获取更详细的兼容关系清单。

        这里使用JDK1.8.0_321来执行安装。

C:\Users\Administrator>java -jar -Xms2048m -Xmx2048m D:\Downloads\fmw_12.1.3.0.0_wls.jar

正常情况下,只要JDK安装、环境变量配置没有问题,都可以进入到下面的GUI界面。

主目录,默认即可

安装组件的选择,默认即可。一般不建议安装Coherence(用不到),以及示例程序(Bug较多)。

系统兼容性、JDK版本检查,这里使用Windows 7 x64也是可以通过检查的。

 这一步,取消【我希望通过My Oracle 。。。】的默认勾选

这一步选择是

有点诡异,虽然之前并未选择Coherence这个消息组件,但是安装清单里面还有有它。不管,直接点击安装。

 安装进度条

点击完成,结束安装。

关闭CMD

下面我们为该版本安装Oracle官方在2022/1/19为其发布的最后一次累积补丁集。官方提供的补丁很多。这里给大家演示下面这些补丁的安装过程。

在C盘根目录下新建PATCH_TOP文件夹,根据上面补丁的顺序,做了一个编号。其中,第7个ADR的(ID:31544363)补丁分Linux、Windows系统版本,安装该补丁时需要注意系统版本。

 

 切换到累积补丁的解压目录,然后将opatch这个程序直接用鼠标拖拽熬CMD窗口,然后在后面加上apply,然后回车即可。其中这个补丁(ID=33385024)需要最先更新,用来解决一个已知的Bug。

  1. C:\Users\Administrator>cd ../..
  2. C:\>cd PATCH_TOP\33385024
  3. C:\PATCH_TOP\33385024>C:\Oracle\Middleware\Oracle_Home\OPatch\opatch apply
  4. Oracle 中间补丁程序安装程序版本 13.2.0.0.0
  5. 版权所有 (c) 2014, Oracle Corporation。保留所有权利。
  6. Oracle Home : C:\Oracle\MIDDLE~1\ORACLE~1
  7. Central Inventory : C:\Program Files\Oracle\Inventory
  8. from : n/a
  9. OPatch version : 13.2.0.0.0
  10. OUI version : 13.2.0.0.0
  11. Log file location : C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\33385024_May_24_2022_15_08_46\apply2022-05-24_15-08-41下午_1.log
  12. OPatch detects the Middleware Home as "C:\Oracle\Middleware\Oracle_Home"
  13. 五月 24, 2022 3:08:46 下午 oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
  14. 信息: Install area Control created with access level 0
  15. Applying interim patch '33385024' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  16. Verifying environment and performing prerequisite checks...
  17. All checks passed.
  18. Backing up files...
  19. 正在为组件 oracle.nginst.common, 13.2.0.0.0 打补丁...
  20. 正在为组件 oracle.nginst.common, 13.2.0.0.0 打补丁...
  21. Verifying the update...
  22. Patch 33385024 successfully applied
  23. Log file location: C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\33385024_May_24_2022_15_08_46\apply2022-05-24_15-08-41下午_1.log
  24. Executing: com.oracle.cie.gdr.utils.RuntimeExecShutdownHook$Exec@3dc22a
  25. OPatch succeeded.

这个补丁安装很快。如果不安装这个补丁,直接打累积的补丁(ID=33494824),会出现下面的报错。根据SR的官方回复,应该是一个Bug。

  1. [ Error during Update inventory for apply Phase]. Detail: OPatch 失败: ApplySession 在系统修改阶段失败... 'ApplySession::apply failed: Backup libraries to be regenerated failed with error message "C:\Oracle\MIDDLE~1\ORACLE~1\null\modules\features\wlsThirdPartyJdbcDrivers.jar (系统找不到指定的路径。)"'
  2. OPatch 将尝试还原系统...
  3. 正在还原 Oracle 主目录...
  4. OPatch 可以还原您的系统。请查看日志文件以及每个文件的时间戳以确定系统的状态, 然后再应用补丁程序。
  5. Log file location: C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\33494824_May_24_2022_12_41_28\apply2022-05-24_12-41-23下午_1.log
  6. Recommended actions: Please check if you have the privilege to modify the Oracle Home's inventory.
  7. OPatch failed with error code = 115

接下来,我们安装第二个补丁,即累积补丁集(ID=33494824)。一样的解压,进入目录,然后apply。这一步有个环境验证和性能预检,需要耗费点时间,耐心等待即可。

  1. C:\Users\Administrator>cd ../..
  2. C:\>cd PATCH_TOP\33494824
  3. C:\PATCH_TOP\33494824>C:\Oracle\Middleware\Oracle_Home\OPatch\opatch apply
  4. Oracle 中间补丁程序安装程序版本 13.2.0.0.0
  5. 版权所有 (c) 2014, Oracle Corporation。保留所有权利。
  6. Oracle Home : C:\Oracle\MIDDLE~1\ORACLE~1
  7. Central Inventory : C:\Program Files\Oracle\Inventory
  8. from : n/a
  9. OPatch version : 13.2.0.0.0
  10. OUI version : 13.2.0.0.0
  11. Log file location : C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\33494824_May_24_2022_15_14_21\apply2022-05-24_15-14-16下午_1.log
  12. OPatch detects the Middleware Home as "C:\Oracle\Middleware\Oracle_Home"
  13. 五月 24, 2022 3:14:24 下午 oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
  14. 信息: Install area Control created with access level 0
  15. Applying interim patch '33494824' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  16. Verifying environment and performing prerequisite checks...
  17. Verifying environment and performing prerequisite checks...
  18. All checks passed.
  19. 请关闭本地系统上在此 ORACLE_HOME 之外运行的 Oracle 实例。
  20. (Oracle 主目录 = 'C:\Oracle\MIDDLE~1\ORACLE~1')
  21. 本地系统是否已准备打补丁? [y|n]
  22. y
  23. User Responded with: Y
  24. Backing up files...
  25. 。。。。省略过程记录。。。。
  26. Verifying the update...
  27. "post.bat executing..."
  28. "APPLY"
  29. "UPGRADE_ANT_HOME exist, starting update ANT_HOME"
  30. 移动了 1 个文件。
  31. Patch 33494824 successfully applied
  32. Log file location: C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\33494824_May_24_2022_15_14_21\apply2022-05-24_15-14-16下午_1.log
  33. OPatch succeeded.

下面还有6个补丁,我们采用napply来批量更新这些补丁试试。一样的解压,但是只进入到PATCH_TOP目录。

  1. C:\PATCH_TOP>C:\Oracle\Middleware\Oracle_Home\OPatch\opatch napply -id 1213012,20741228,24327938,31544363,32720458,33791665
  2. Oracle 中间补丁程序安装程序版本 13.2.0.0.0
  3. 版权所有 (c) 2014, Oracle Corporation。保留所有权利。
  4. Oracle Home : C:\Oracle\MIDDLE~1\ORACLE~1
  5. Central Inventory : C:\Program Files\Oracle\Inventory
  6. from : n/a
  7. OPatch version : 13.2.0.0.0
  8. OUI version : 13.2.0.0.0
  9. Log file location : C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\opatch2022-05-25_11-09-13上午_1.log
  10. OPatch detects the Middleware Home as "C:\Oracle\Middleware\Oracle_Home"
  11. 五月 25, 2022 11:09:20 上午 oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
  12. 信息: Install area Control created with access level 0
  13. Verifying environment and performing prerequisite checks...
  14. OPatch continues with these patches: 1213012 20741228 24327938 31544363 32720458 33791665
  15. 是否继续? [y|n]
  16. Y
  17. User Responded with: Y
  18. All checks passed.
  19. 请关闭本地系统上在此 ORACLE_HOME 之外运行的 Oracle 实例。
  20. (Oracle 主目录 = 'C:\Oracle\MIDDLE~1\ORACLE~1')
  21. 本地系统是否已准备打补丁? [y|n]
  22. Y
  23. User Responded with: Y
  24. Backing up files...
  25. Applying interim patch '1213012' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  26. 正在为组件 oracle.coherence, 12.1.3.0.0 打补丁...
  27. Verifying the update...
  28. Applying interim patch '20741228' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  29. 正在为组件 oracle.javavm.jrf, 12.1.0.2.0 打补丁...
  30. Verifying the update...
  31. Applying interim patch '24327938' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  32. 正在为组件 oracle.jrf.toplink, 12.1.3.0.0 打补丁...
  33. Verifying the update...
  34. Applying interim patch '31544363' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  35. 正在为组件 oracle.adr, 12.1.2.0.0 打补丁...
  36. Verifying the update...
  37. Applying interim patch '32720458' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  38. 正在为组件 oracle.javavm.jrf, 12.1.0.2.0 打补丁...
  39. Verifying the update...
  40. Applying interim patch '33791665' to OH 'C:\Oracle\MIDDLE~1\ORACLE~1'
  41. ApplySession: Oracle 主目录中不存在可选组件 [ oracle.owasp.jrf, 12.1.3.0.0 ] , [ oracle.owasp.jrf, 12.1.3.0.0 ] , 或找到更高版本。
  42. 正在为组件 oracle.wls.admin.console.en, 12.1.3.0.0 打补丁...
  43. 正在为组件 oracle.wls.admin.console.en, 12.1.3.0.0 打补丁...
  44. 正在为组件 oracle.wls.libraries, 12.1.3.0.0 打补丁...
  45. 正在为组件 oracle.wls.libraries, 12.1.3.0.0 打补丁...
  46. Verifying the update...
  47. Patches 1213012,20741228,24327938,31544363,32720458,33791665 successfully applied.
  48. Log file location: C:\Oracle\MIDDLE~1\ORACLE~1\cfgtoollogs\opatch\opatch2022-05-25_11-09-13上午_1.log
  49. OPatch succeeded.

查看本次安装的补丁信息。

  1. C:\PATCH_TOP>C:\Oracle\Middleware\Oracle_Home\OPatch\opatch lspatches
  2. 五月 24, 2022 3:42:02 下午 oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
  3. 信息: Install area Control created with access level 0
  4. 33494824;WLS PATCH SET UPDATE 12.1.3.0.220118
  5. 31544363;One-off
  6. 33791665;One-off
  7. 32720458;JDBC 12.1.0.2 FOR CPUJAN2022 (WLS 12.1.3)
  8. 20741228;JDBC 12.1.3.1 BP1
  9. 1213012;Bundle patch for Oracle Coherence Version 12.1.3.0.12
  10. 24327938;One-off
  11. 33385024;

至此,Oracle WebLogic 12.1.3.0的安装、补丁技巧都写完了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/921936
推荐阅读
相关标签
  

闽ICP备14008679号