Search This Blog

Monday, 13 June 2016

Installing a patch in WebLogic 12.2.1



Interim Patch for Bug: 22644507


Platform Patch for : Generic
Product Patched : ORACLE WEBLOGIC SERVER
Product Version      : 12.2.1.0.0

1.Prerequisites

Download the patch from the below link
2. Stop all servers (AdminServer and all Managed server(s)).
 

Patch ex: p22644507_122100_Generic.zip
3.Unzip the patch zip file into the new directory( here i am using patchop name).

unzip –d patchop p22644507_122100_Generic.zip
Set your current directory to the directory where the patch is located.

OPatch Directory
OPatch Directory
 
I have created one new directory (patchop) under $MW_HOME/OPatch

 
4. To check the  list of patches in our environment
./opatch lsinventory


List of patches
To check the List of patches


Here my environment have 6 patches(see above screenshot) and now I am adding one more patch
$MW_HOME/OPatch/patchop/22644507

5.Run OPatch to apply the patch
$opatch apply

OPatch
OPatch Apply
check  the patch is installed or not by using the below command.
[12c@localhost OPatch]$ ./opatch lsinventory

6.Run OPatch to uninstall the patch.
 
$ opatch rollback -id  22644507


deinstall the patch
Rollback the Patch


7. Check the Patch is uninstalled or not by using this command


<
[12c@localhost OPatch]$ ./opatch lsinventory

Friday, 10 June 2016

Installing a patch in WebLogic 12.1.3 using Opatch utility

In the Software Testing Bug Life cycle has an important role. As you know WebLogic is also a software and it is developed in Java. There could be two kinds of bugs:

  • Customer Bugs
  • Internal Bugs
  1. Customer Bugs are raised by the Oracle WebLogic customer who facing issue in their enterprise application.
  2. WebLogic Development team identifies some of the issues then they fall into Internal Bugs
Each bug can be resolved by having a Single Fix. If we have more number of Single Fixes in a version they are collected together every moth and released as Patch Set for a version for example WLS 12.1.3 having a patch  2198345. Over a period of time Oracle creates Patch Set for certain set of bugs. 



Steps to perform Patching on WebLogic 12.1.3

Summary of steps
  1. Download the patch/patchset
  2. Apply the patch using opatch utility
  3. Validate the patch installation

Download the WebLogic patch from MOS

My Oracle Support - MOS 1) You will get the patch or patchset from Oracle support delivery, which you can download only when you are having support ID, that means your company must have customer id from Oracle support.
2) Download the patch from Oracle website (https://support.oracle.com/) as shown below

a) Login to Oracle support with your support ID.
b) Go to Patches and updates, under the patch search section – recommended Patch Advisor
Selecting Patch from Oracle Support site

c) Select the product, Release and the OS version to the environment you wish to install the patch and click search.
Search with patch ID


d) You can directly download the patch by searching patch ID from right top search bar from support as shown below and search.


e) Once you find the patch you are looking for you could download it as shown below.
WebLogic 12c Patch

f) Click on the patch. On the next screen you will find an option to download as shown below
g) Click on the generic.zip as shown below it gets downloaded
Generic patch for download - WebLogic

Applying the WebLogic patch using opatch utility

h) Take this patch.zip to the targeting server and extract it as shown below.

unzip –d PATCH p21983457_121300_Generic.zip

i) The above command extracts the zip into PATCH folder.

j) Shutdown the weblogic Admin and managed servers
k) Once you are done with the shut down backup the middleware home totally.
l) Now go to the patch directory and run opatch apply. As shown below.

The above command has to be ran from the patch folder, /u01/app/fmw/WL_Installation/OPatch/opatch is the location where we have the opatch script .
Command -

/u01/app/fmw/WL_Installation/OPatch/opatch apply


m) You will be prompted with Y/N, to check if the environment is ready for patch installation. You can proceed with yes by typing y as shown below.
WebLogic Patching


n) Once you are done with the installation, you will see an output confirming patch installation is successful as shown below.

OPatch succeeded
o) Once you are done you can verify the patch installation as shown below with date and time.
/u01/app/fmw/WL_Installation/OPatch/opatch lsinventory



Rollback of a Patch


1) Make sure that all the weblogic servers are down.
2) Go to the directory(Optional) where you have the opatch, type the below command to roll back.
/u01/app/fmw/WL_Installation/OPatch/opatch rollback -id 21983457


3) Make sure that you have given the correct Patch ID in the rollback command
4) You will be prompted with Y/N, to check if the environment is ready for patch roll back. You can proceed with yes by typing y as shown below.
5) If the rollback is successful you will find the output something as shown below.


WebLogic Books

  • Oracle WebLogic Server 12c: Administration Handbook
  • WebLogic Diagnostic Framework
  • Advanced WebLogic Server Automation
  • Oracle SOA Suite 11g Administrator's Handbook

Popular Posts