WebLogic Patch Installation Script cve-2018-2893

Source: Internet
Author: User
Tags cve

Recently has been installed WebLogic patch, take pains to do this script, a key to install patches.

Different versions modify the corresponding version of the patch name.

First, weblogic10.3.6
CD $ORACLE _home
Need to be modified .../utils/bsu/bsu.sh: 1, memory size, 2, Patch-client.jar change to absolute path
Java_home= "/home/weblogic/jdk1.6.0_45"
Mem_args= "-xms2048m-xmx2048m"
"$JAVA _home/bin/java" ${mem_args}-jar /home/weblogic/utils/bsu/Patch-client.jar $*

#!/bin/BashRM Patch-Catalog.xml README.txtUnzipP27919965_1036_generic.ZipSleep 2MV Patch-catalog_26112.xmlPatch-catalog.xml#FindOldpatchid configmkdirCache_dirCP Patch-catalog.xml./Cache_dirEcho "======next is version of weblogic==============="SH.. /bsu.SH-prod_dir=. /.. /.. /wlserver_10.3/-status=applied-verbose-view >versionCatversiongrep "Patch ID"Version >Restxt>Patchidflag=0CatRestxt | whileRead Line Do#    Echo$lineEcho$line |awk '{print $}'>>patchId Flag=$ (($flag +1)) DoneEcho "=======next is Patch id===================="CatPatchid#next is remove Patch idrmflag=1CatPatchId | whileRead Line Do    SH.. /bsu.SH-patchlist= $line-prod_dir=. /.. /.. /wlserver_10.3-verbose-RemoveEcho "$line removed!!!"Rmflag=$? DoneEcho "-------------oldpatch ID removed suecceed!!! -------------"Echo "======next is version of weblogic==============="SH.. /bsu.SH-prod_dir=. /.. /.. /wlserver_10.3/-status=applied-verbose-ViewEcho "=======next is install===================="#if[0-eq $rmflag]# Then#    Echo "-------------oldpatch ID removed suecceed!!! -------------"    SH.. /bsu.SH-Install-patch_download_dir=./-patchlist=b47x-prod_dir=. /.. /.. /wlserver_10.3Inflag=$?if[0-eq $inflag] Then        Echo "------------New Patch ID install Suecceed!!! ---------------"        Echo "------Install OVER!!! -----------"        Echo "======next is version of weblogic==============="        SH.. /bsu.SH-prod_dir=. /.. /.. /wlserver_10.3/-status=applied-verbose-ViewElse        Echo "------------New Patch ID install failed!!! ---------------"        SH.. /bsu.SH-prod_dir=. /.. /.. /wlserver_10.3/-status=applied-verbose-Viewfi#else#    Echo "-------------oldpatch ID remove failed!!! -------------"#    SH.. /bsu.SH-prod_dir=. /.. /.. /wlserver_10.3/-status=applied-verbose-view#fi

Second, weblogic12.1.3
CD $Oracle _home/opatch
Upload the 12c installation package to the directory with the following script:

 Export oracle_home=/home/weblogic/weblogic1213 (change to the WebLogic installation path of your own server)
UnzipP27919943_121300_generic.ZipEcho "========next is inventory======"./Opatch lsinventoryEcho "========next is apply====="./opatch apply.27919943/Echo "========next is inventory======"./opatch lsinventory

WebLogic Patch Installation Script cve-2018-2893

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.