Wednesday, January 9, 2013

Patching OIM 11.1.1.5.0 to 11.1.1.5.3

This guide can also be applied to OIM 11.1.1.5.1 or 11.1.1.5.2.

Obtaining the Patches
You will need the following patches:
  1. Patch Name: 13106312
    Product: Oracle SOA Platform
    Release: 11.1.1.5.0

  2. Patch Name: 13704894
    Product: Oracle Identity Manager
    Release: 11.1.1.5.0

Initial Setup
Create a directory called “patches”. Extract the contents of the files you have downloaded into the “patches” directory.
Follow the commands given below:
cd ~
mkdir patches
unzip p13106312_111150_Generic.zip -d patches/
unzip p13704894_111150_Generic.zip -d patches/

For more information about the patches and the patching process, read the “README.txt” inside each of the patch directory.

Applying Opatch
The WebLogic Administrator server must be running. The OIM and SOA managed servers must be down. OIM and SOA each has its own Opatch directory and inventory, so make sure you are using the right "ORACLE_HOME" that corresponds to the type of patch you are applying. Also, the “opatch apply” command must be executed inside the directory of each unzipped patch. Follow the instructions given below.

#SOA Patch 13106312
cd ~/patches/13106312
export PATH=/home/oracle/Oracle/Middleware/Oracle_SOA1/OPatch:$PATH
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_SOA1
opatch apply
#IDM Patch 13704894
cd ~/patches/13704894
export PATH=/home/oracle/Oracle/Middleware/Oracle_IDM1/OPatch:$PATH
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1
opatch apply
#Validating the patches has been applied
cd /home/oracle/Oracle/Middleware/Oracle_IDM1/OPatch
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1
./opatch lsinventory
cd /home/oracle/Oracle/Middleware/Oracle_SOA1/OPatch
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_SOA1
./opatch lsinventory
If you get the warning given below, then you are fine to proceed. This happens because the latest patches are cumulative, which means they contain the previous patches.



Executing the “patch_oim_wls.sh” Script
Navigate to the “<IDM_HOME>/server/bin” directory and modify the “patch_oim_wls.profile” file. Add the following information to the “patch_oim_wls.profile” and adjust the variable accordingly:
ant_home=/home/oracle/Oracle/Middleware/modules/org.apache.ant_1.7.1
java_home=/home/oracle/java/jrockit64
mw_home=/home/oracle/Oracle/Middleware
oim_oracle_home=/home/oracle/Oracle/Middleware/Oracle_IDM1

operationsDB.user=DEV_OIM
OIM.DBPassword=Password1
operationsDB.driver=oracle.jdbc.OracleDriver
operationsDB.host=localhost
operationsDB.serviceName=orcl
operationsDB.port=1521
appserver.type=wls

mdsDB.user=DEV_MDS
mdsDB.password=Password1
mdsDB.host=localhost
mdsDB.port=1521
mdsDB.serviceName=orcl

weblogic_user=weblogic
weblogic_password=Password1
weblogic_host=localhost
weblogic_port=7001
weblogic.server.dir=/home/oracle/Oracle/Middleware/wlserver_10.3

oimserver_host=localhost
oimserver_port=14000
oim_managed_server=oim_server1
oim_domain_dir=/home/oracle/Oracle/Middleware/user_projects/domains/oim_domain

soa_home=/home/oracle/Oracle/Middleware/Oracle_SOA1
soa_managed_server=soa_server1
soaserver_host=localhost
soaserver_port=8001
taskdetails_target_name=soa_server1

Execute the following script:
cd /home/oracle/Oracle/Middleware/Oracle_IDM1/server/bin
./patch_oim_wls.sh

Logs
The logs are located in the “/home/oracle/Oracle/Middleware/Oracle_IDM1/server/setup/deploy-files” directory.
To check what is happening during the “patch_oim_wls” script, execute the following command:
tail -f patch_oim_wls.log

No comments:

Post a Comment