Learning Objective
Oracle regularly publishing the Critical Patch Updates every quarter. We have been assigned to work on the new CPU patches which were published in the month of January Where the list is huge and we started digging into the huge list and try to find out the what is suitable for my project environment needs. We sorted out/narrow down to what is required for WebLogic Similarly you can also look for various WebLogic versions of WebLogic patches.[[UPDATE]] New CPU Release details
Now on 17th July we got another set of CPU were listed and We are interested on JDK/JRE and WebLogic multiple code lines, see the summary here:1. JDK/JRE updates
Version | JDK/JRE update |
---|---|
JDK/JRE 6 Update Patch | |
JDK/JRE 7 Update Patch | |
JDK/JRE 8 Update Patch |
2. WebLogic CPU patches
Version | WebLogic Patch |
---|---|
PSU Patch | |
PSU Patch | |
PSU Patch |
Oracle Java and Oracle WebLogic 12c Critical Patch update January |
Now lets discuss about "What is CPU?" and "What is PSU?"
What is CPU (Critical Patch Updates/Cummulative patch updates) Patch?
Oracle release Critical Updates every quater to fix bug in existing release. We user opatch CPU patches. We can roll back CPU patches.
What is PSU (Patch set update) patch?
PSU patch are consists of CPU patches. This content of previous CPU patches and each PSU is limited from 25 to new bug fixes PSU are referenced by their 5TH Place in Oracle version numbers which making it easier to track and will not change the version of Oracle binaries .1. Install new Jdk for Jdk(we will install _)
2. Install latest CPU patch (which has been released in JAN, latest)
Pre-Requisites for applying CPU
Here I have listed out the steps that I've followed1. First of all WebLogic instances must be stopped in each box where you intended to apply the CPUs
2. Take backup of Fusion Middleware Directory like :
[wluser@mylinuxbox /software/Java]$ echo $WL_HOME
/software/Middleware/wlserver cd /software/ cp -R Middleware Middleware_bf_JANCPUPATCH
3. Change the PuTTY session window buffer size to hold more e.g:
4. do all the activity in same putty session, as we will be creating some temporary environemnt varible
5. weblogic CPU(PSU) patch required OPatch , so we will install
Conventions : in this docs we have used below as JAVA_HOME and WL_HOME [wluser@mylinuxbox /software/Java]$ echo $JAVA_HOME /software/Java/jdk_ [wluser@mylinuxbox /software/Java]$ echo $WL_HOME /software/Middleware/wlserver
apply JDK, OPatch and Weblogic CPU patch
Installation summary:
a. Install New JDK --step 1 to 4b. Install Patch (this is OPatch, prerequisite of weblogic PSU ) step 5 to 6 www.cronistalascolonias.com.arl step 7 to 8
What are the steps for CPU Installation process?
a. JDK Installation as per CPU
1. download latest Java from Oracle Technology Network (in our case it is : Download linkHere we have downloaded the generic Linux file : www.cronistalascolonias.com.ar
2. You can do either ftp/scp/copy file "www.cronistalascolonias.com.ar" or "www.cronistalascolonias.com.ar" to the target Linux box:
3. create a tmp directory in location "/software/Java/" copy this www.cronistalascolonias.com.ar to this tmp directory, unzip this www.cronistalascolonias.com.ar file and move new JDK to same location
cd /software/Java/ mkdir tmp cp 4. now set JAVA_HOME as /software/Java/jdk_ and check
[wluser@mylinuxbox /software/Java]$export JAVA_HOME=/software/Java/jdk_ [wluser@mylinuxbox /software/Java]$echo $JAVA_HOME /software/Java/jdk_
b. OPatch Installation
5. download patch of version ( this is for ) and OPatch (manual relapcement for OPatch directory in WL_HOME/../) : www.cronistalascolonias.com.ar?_www.cronistalascolonias.com.ar-state=g0tc1z3tc_4&patchId=&_afrLoop= download file : p__www.cronistalascolonias.com.ar In this patch we are replaing the OPatch Directory as below:cp
6. create a soft link JDK in in New JAVA_HOME/ and check if opatch is running (this is required because opacth is looking for ORACLE_HOME, and donot mix up this ORACLE_HOME with database ORACLE_HOME, we creating this variable for installing this patch only
ln -s /software/Java/jdk_ jdk export ORACLE_HOME=$WL_HOME/.. cd $WL_HOME/../OPatch; ./opatch lsinventory -jre $ORACLE_HOME/jdk/jre
should give proper output like below:
[oracle@mylinuxbox /software/Java]$ cd $WL_HOME/../OPatch[oracle@mylinuxbox /software/Java]$ ./opatch lsinventory -jre $ORACLE_HOME/jdk/jre Oracle Interim Patch Installer version Copyright (c) , Oracle Corporation. All rights reserved. Oracle Home : /software/Middleware/wlserver/.. Central Inventory : /scratch/oracle/oraInventory from : /software/Middleware/wlserver/../www.cronistalascolonias.com.ar OPatch version : OUI version : Log file location : /software/Middleware/wlserver/../cfgtoollogs/opatch/opatch_PM_www.cronistalascolonias.com.ar OPatch detects the Middleware Home as "/software/Middleware" Mar 14, PM www.cronistalascolonias.com.arstallAreaControl initAreaControl INFO: Install area Control created with access level 0 Lsinventory Output file location : /software/Middleware/wlserver/../cfgtoollogs/opatch/lsinv/lsinventory_www.cronistalascolonias.com.ar There are no Interim patches installed in this Oracle Home. OPatch succeeded. [oracle@mylinuxbox /software/Middleware/OPatch]$
c. Weblogic CPU patch Installation
7. download CPU(PSU) patch from Oracle sites and apply as belowwww.cronistalascolonias.com.ar search as "Oracle Fusion Middleware, versions , , , , , " Link to download it will work if you have Oracle support id. download file :p__www.cronistalascolonias.com.ar
a. apply the patch:
cp build should be successful
message will be like : Patching component www.cronistalascolonias.com.aries, Verifying the update Patch successfully applied Log file location: /software/Middleware/wlserver/../cfgtoollogs/opatch/_Mar_14__22_38_49/apply_PM_www.cronistalascolonias.com.ar OPatch succeeded.
b. check the logs given above (you will get this log after completing the patch) , check if there is any errors and act accordingly.
8. change JDK version and path in below files with taking backup :
cd $WL_HOME/../oracle_common/common/bin cp www.cronistalascolonias.com.ar www.cronistalascolonias.com.ar_bf_jdk_update cp www.cronistalascolonias.com.ar www.cronistalascolonias.com.ar_bf_jdk_update change the JAVA_HOME parameter in file www.cronistalascolonias.com.ar and www.cronistalascolonias.com.ar
9. start the WebLogic servers
Verification of Patch will keep you updated soon.
Hope this article help you to understand and use the CPU patches in your projects. And also expecting that you can follow these instructions for April, July, Oct CPU patches.
Keep writing your worries and experiences with Java, WebLogic CPU patches.
d. WebLogic CPU patch Validation
check below file for log :
location: /software/Middleware/wlserver/../cfgtoollogs/opatch/_Mar_14__22_38_49/apply_PM_www.cronistalascolonias.com.ar to path : /software/Middleware/wlserver/modulesbelow files should be in new time stamp:
Weblogic_CPU_Patch_Validation |
-
-