Sunday, November 29, 2015

How To Apply/Install Patch Using Opatch Utility

How To Apply Patch To WebLogic 12C Home Using Opatch Utility?


From WebLogic 12.1.2 bsu utility was deprecated and opatch utility is used for patching.

Summary

  1. Shut Down All Weblogic Services Before Applying Patch
  2. Check Compatibility Of Opatch Utility Version and OUI
  3. Export ORACLE_HOME and PATH
  4. Determining What is Installed On Your System
  5. Ensuring Patch Application Prerequisites are Met Using -report
  6. Applying a Patch
  7. Verify The Applied Patch Using lsinventory


1.Shut Down All Weblogic Services Before Applying Patch


   a) Stop Admin And Managed servers using Weblogic Admin Console

   b) Shut Down Nodemanager using stopNodeManager.sh OR Kill command

     cd /oracle/Middleware/user_projects/domains/prod_domain/bin
     ./stopNodeManager.sh


2. Check Compatibility Of Opatch Utility Version and OUI


     a) Checking opatch version

        cd /oracle/Middleware/OPatch
        ./opatch version


   b) Checking OUI Version

      cd /oracle/Middleware/oui
      cat oraparam.ini |grep -i oui_version


   Conclusion: Opatch and OUI versions are same so both are compatible to each other

   Note: To Apply Patch Using opatch Utility, the condition is OPatch version >=  OUI Version

3.Export ORACLE_HOME and PATH

    cd $DOMAIN_HOME/bin
     . ./setDomainEnv.sh
    ORACLE_HOME=/oracle/Middleware
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/OPatch:$PATH


4.Determining What is Installed On Your System

     opatch lsinventory


    Conclusion: Currently no patches applied to the ORACLE_HOME

5.Ensuring Patch Application Prerequisites are Met Using -report

    -report option will not apply patch but it will check pre-requisites

     opatch apply -report /oracle/setup/patch/19637454


6.Applying a Patch

    opatch apply /oracle/setup/patch/19637454


7.Verify The Applied Patch Using lsinventory

    opatch lsinventory


 
    Conclusion: Patch 19637454 Was Installed Successfully



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













Monday, November 2, 2015

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

This Demo Shows How To Apply/Install Patch Using BSU Utility GUI Mode


==> 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. Set The Display For X11 Forwarding Using Xming/XLaunch

     Follow Below Link For Display Setting

7. Run The Patch Install Command Using bsu.sh For Launching Installation Wizard.


  •  Execute below commands for launching patch installation wizard
     cd /oracle/Middleware1036/utils/bsu/

     ./bsu.sh 















Setting Display For X11 Forwarding Using Xming/XLaunch For Linux Server

Step By Step Instruction For Setting Display For X-Forwarding Using XLaunch

1. Download And Install Xming In Your Local Window Machine


2. Double Click on XLaunch Icon 








3. Enter Any Display Number Say 9999 ==> Click On Next Next Next...Finish




4. Check The Display Number 


5. Now Open Putty And Enter IP Address 


6. Expand SSH  ==> Click on X11 ==> Check "Enable X11 Forwarding" 

==> X Display Location: Localhost:9999.0



7. Click on Open ==> Enter OS Username And Password ==> Enter Command xclock

      Expected Result is Analog Clock pop should come and that shows the display was set properly 




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



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................