• alamgir shaikh 21:36 on November 26, 2014 Permalink Reply
    Tags: opatch, step by step patching, weblogic patching   

    Step by step for patching Oracle Weblogic Server

    • Download the patch using the patch or bug number you have been provided from My Oracle Suppport(https://support.oracle.com)
    • Log in to MyOracleSupport portal and click on the “Patches&Updates” tab. Enter the patch or bug number into the Search field and Search. Click on the related Patch Name and Download the file to your server.

    • For todays example I will be applying Patch 13490778: PS5:REF2: INSTANCE STATUS SHOWN INCORRECTLY IN EM WITH RC4-REFRESH-2
    • First we will create a temporary location to download the patch
    [oracle@sp0018]$mkdir -p /patchtop/13490778
    
    2) use wget to download the patch to unix server
    
    [oracle@sp0018 13490778]$wget httxx://updates.oracle.com/Orion/Services/download/p13490778_111160_Generic.zip?aru=15376642&patch_file=p13490778_111160_Generic.zip
    
    • Unzip the patch to PATCH_TOP folder and go inside that folder
    [oracle@sp0018 13490778]$unzip -d PATCH_TOP p13490778_111160_Generic.zip
    

    Note: WLHOME=/app/oracle/product/fmw/wlserver10.3 MIDDLEWARE_HOME=/app/oracle/product/fmw

    • Set the Enviornment variables
    [oracle@sp0018 13490778]$ export ORACLE_HOME=/app/oracle/product/fmw/oracle_common
    [oracle@sp0018 13490778]$ export PATH=$PATH:$ORACLE_HOME/OPatch
    
    • Make sure you are into the correct location before applying the patch
    [oracle@sp0018 13490778]$ ls -ltr
    total 16  
    -rw-r–r– 1 oracle dba 5511 Mar 7 2012 README.txt
    drwxr-xr-x 3 oracle dba 4096 Mar 7 2012 files  
    drwxr-xr-x 4 oracle dba 4096 Mar 7 2012 etc  
    
    • Apply the Patch
    [oracle@sp0018 13490778]$ opatch apply
    Oracle Interim Patch Installer version 11.1.0.9.0  
    Copyright (c) 2011, Oracle Corporation. All rights reserved.
    
    Oracle Home : /app/oracle/product/fmw/oracle_common  
    Central Inventory : /home/oracle/oraInventory  
    from : /app/oracle/product/fmw/oracle_common/oraInst.loc  
    OPatch version : 11.1.0.9.0  
    OUI version : 11.1.0.9.0  
    OUI location : /app/oracle/product/fmw/oracle_common/oui  
    Log file location : /app/oracle/product/fmw/oracle_common/cfgtoollogs/opatch/13490778_Oct_19_2012_22_31_43/apply2012-10-19_22-31-43PM_1.log
    
    Patch history file: /app/oracle/product/fmw/oracle_common/cfgtoollogs/opatch/opatch_history.txt
    
    OPatch detects the Middleware Home as “/app/oracle/product/fmw”
    
    OPatch will do the following:  
    [Oracle Home discovery] : Configure and Validate Oracle Home info.
    [Prerequisite for apply] : Invoke prerequisites to see if patch can be applied.
    [Patch conflict detection for apply patch] : Check if any conflict with already installed patches in Oracle Home.
    
    ApplySession applying interim patch ‘13490778’ to OH ‘/app/oracle/product/fmw/oracle_common’
    
    Running prerequisite checks…  
    To continue, OPatch will do the following:  
    [Back up for restore] : Back up 17 files for Oracle Home restore in case of patching error.
    [Back up for rollback] : Back up 3 files for future patch rollback.
    [Patch Oracle Home for apply] : Archive 3 jar file(s) with 14 class file(s).
    [Update inventory for apply] : Modify the inventory to record patch [13490778].
    
    Do you want to proceed? [y|n]  
    y  
    User Responded with: Y
    
    OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
    
    Backing up files and inventory (not for auto-rollback) for the Oracle Home  
    Backing up files affected by the patch ‘13490778’ for restore. This might take a while…  
    Backing up files affected by the patch ‘13490778’ for rollback. This might take a while…
    
    Patching component oracle.jrf.dms, 11.1.1.6.0…  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.jar” with “/modules/oracle.dms_11.1.1/dms.jar/oracle/dms/util/ServerEnvironment.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.jar” with “/modules/oracle.dms_11.1.1/dms.jar/oracle/dms/util/ServerEnvironment$1.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.jar” with “/modules/oracle.dms_11.1.1/dms.jar/oracle/dms/util/ServerEnvironment$2.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.jar” with “/modules/oracle.dms_11.1.1/dms.jar/oracle/dms/util/ServerEnvironment$3.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.war” with “/modules/oracle.dms_11.1.1/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/address/OpmnAddressEntry.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.war” with “/modules/oracle.dms_11.1.1/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/OpmnConnector.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.war” with “/modules/oracle.dms_11.1.1/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/TbmlParser.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.war” with “/modules/oracle.dms_11.1.1/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/TbmlParser$1.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms.war” with “/modules/oracle.dms_11.1.1/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/opmn/app/OpmnDiscoverer.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms-was.ear” with “/modules/oracle.dms_11.1.1/dms-was.ear/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/address/OpmnAddressEntry.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms-was.ear” with “/modules/oracle.dms_11.1.1/dms-was.ear/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/OpmnConnector.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms-was.ear” with “/modules/oracle.dms_11.1.1/dms-was.ear/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/TbmlParser.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms-was.ear” with “/modules/oracle.dms_11.1.1/dms-was.ear/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/collector/TbmlParser$1.class”  
    Updating jar file “/app/oracle/product/fmw/oracle_common/modules/oracle.dms_11.1.1/dms-was.ear” with “/modules/oracle.dms_11.1.1/dms-was.ear/dms.war/WEB-INF/lib/dmsapp.jar/oracle/dms/opmn/app/OpmnDiscoverer.class”  
    ApplySession adding interim patch ‘13490778’ to inventory
    
    Verifying the update…  
    Inventory check OK: Patch ID 13490778 is registered in Oracle Home inventory with proper meta-data.  
    Files check OK: Files from Patch ID 13490778 are present in Oracle Home.
    
    ** OPatch succeeded **.
    
    • Verify if the patch is successfully installed
    [oracle@sp0018 13490778]$ opatch lsinventory -jdk /app/oracle/product/fmw/jdk | grep 13490778
    Patch 13490778 : applied on Fri Oct 19 22:32:06 CDT 2012  
    13490778  
    
    • Restart the Admin & Managed servers

     

     

    Reply

    Required fields are marked *

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel
%d bloggers like this: