Sunday, November 1, 2015

How To Apply/Install Patch Using BSU (bea smart update)?

This Demo Shows How To Apply/Install Patch Using BSU Utility Command Line


==> The purpose of applying patch to BEA_HOME OR WLS_HOME Is To Fix Bugs.

==> BSU Utility is shipped with weblogic product 

==> Oracle Releases PSU(Patch Set Update) OR CPU(Critical Patch Update) Patches Quarterly (January - April - July - October), As PSU patches Are Cumulative and all bug fixes are available hence it is highly recommended to apply psu quarterly   

Summary

  1. Download The PSU From Oracle Support
  2. Create Directory cache_dir inside $MW_HOME/utils/bsu
  3. Copy The Downloaded Patch To $MW_HOME/utils/bsu/cache_dir Using WinScp
  4. Unzip The Copied Zip Patch File
  5. Set The Environment Using setWLSEnv.sh 
  6. Run The Patch Install Command Using bsu.sh
  7. Verify Whether Patch Applied To The BEA_HOME

1. Download The PSU From Oracle Support

  • Login To My Oracle Support http://support.oracle.com
  • Click on "Patches & Update" Tab
  • Click on Search ==> Click on "Recommended Patch Advisor"
  • Select Product: Oracle Weblogic Server
  • Select Release 10.3.6.0 OR Any of your prefered wls version
  • Platform Select Any
  • Click on Search
  • Result will lists latest available PSU
  • Click on "Patch Name" 20780171
  • Click on Download 

2. Create Directory cache_dir inside $MW_HOME/utils/bsu

      cd /oracle/Middleware1036/utils/bsu/
      mkdir cache_dir


3. Copy The Downloaded Patch To $MW_HOME/utils/bsu/cache_dir Using WinScp


4. Unzip The Copied Zip Patch File

     cd /oracle/Middleware1036/utils/bsu/cache_dir
   
      unzip p20780171_1036_Generic.zip


5. Set The Environment Using setWLSEnv.sh 

     cd /oracle/Middleware1036/wlserver_10.3/server/bin
   
     . ./setWLSEnv.sh


6. Run The Patch Install Command Using bsu.sh

     cd /oracle/Middleware1036/utils/bsu/

     ./bsu.sh -patch_download_dir=/oracle/Middleware1036/utils/bsu/cache_dir -patchlist=EJUW -prod_dir=/oracle/Middleware1036/wlserver_10.3 -install  -log=patch_apply.log -log_priority=trace



7. Verify Whether The Patch Applied To The BEA_HOME is Successfull

      cd /oracle/Middleware1036/utils/bsu

       ./bsu.sh -report -bea_home=/oracle/Middleware1036 -output_file=bsu_report.log



     View the file bsu_report.log. Below Snap Shot Shows That The Patch ID EJUW is applied

   


    OR

    You Can Verify by Checking AdminServer Start up log 

   



COMPLETED................




11 comments:

  1. Sometimes you might to remove a existing patch before you install a new patch. The command to remove a patch is similar to installing a new patch.

    ./bsu.sh -remove -patchlist=FCX7 -prod_dir=/psoft/middle/weblogic/10.3.6/wlserver

    To see a list of patches that are currently installed use "./bsu.sh -report"

    ReplyDelete
  2. what do you mean by sometimes? can you help us all by elaborating the effects of having or not having to remove the previous/existing patch applied

    ReplyDelete
  3. When using bsu to apply a new patch, the utility will check if a patch conflict exists, in which case the existing patch needs to be removed before you can move forward with the new patch.

    ReplyDelete
  4. is that possible to stop printing the output ? any silent or quiet mode like unzip -q ?

    ReplyDelete
  5. National Institute of Open Schooling has released the admit card of NIOS DElEd Exam.NIOS Deled Admit card has been released online at www.nios.ac.in.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. ery clear and straight forward. You might get the out of memory error exception. In that case just modify the MEM_ARGS parameter in the bsu.sh file as follows

    MEM_ARGS="-Xms1024m -Xmx2048m"="-Xms1024m -Xmx2048m"

    ReplyDelete
  8. How to check a particular patch is applied aren't in wls 10.3

    ReplyDelete
  9. Very Well Explained on WebLogic Patch. Thanks for such a wonderful article.

    ReplyDelete
  10. Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject. Same as your blog i found another one Oracle WebLogic .Actually I was looking for the same information on internet for Oracle WebLogic and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.

    ReplyDelete