Tuesday, February 12, 2013

Patching OIM 11.1.1.5.x to 11.1.1.5.6

Description
This post demonstrates how to patch OIM from 11.1.1.1.5 to 11.1.1.5.6. Patches are cumulative. For example, the OIM 11.1.1.5.6 patch contains the bug fixes from OIM 11.1.1.5.0 - 11.1.1.5.5 patches. You can download the patch at My Oracle Support

Patch Number: 14760839
Bundle Name: Oracle Identity Management Suite BP patch of 11.1.1.5.2
The bundle contains patches for the following products:
- OIM 11.1.1.5.6
- OAM 11.1.1.5.5
- OES 11.1.1.5.4
- OAAM 11.1.5.2

Our main focus will be the patch for OIM 11.1.1.5.6. The other patches do not need to be applied if you are only patching OIM.

Create Backup
Before applying the patch, it is highly recommeded to create a backup for the following items:
-OIM, MDS, and SOA database schemas. Simple export is sufficient.
-"<IDM_HOME>" directory. E.g. /home/oracle/Oracle/Middleware/Oracle_IDM1/
-WebLogic Domain directory. E.g. /home/oracle/Oracle/Middleware/user_projects/domains/oim_domain/

Applying the OIM 11.1.1.5.6 Patch
Unpack the bundle file.
Only the WebLogic Administrator must be running.
The SOA patch 13106312 for SOA 11.1.1.5.0 must be applied. Verify that your opatch is 11.1.0.8.2 or later and verify the OUI Inventory.
#Include the SOA OPatch in Path
export PATH=/home/oracle/Oracle/Middleware/Oracle_SOA1/OPatch:$PATH
#Set the ORACLE_HOME to the SOA Directory
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_SOA1
#Check OPatch Version
opatch version
#Verify the OUI Inventory
opatch lsinventory
#Change directory to where the SOA patch is located
cd ~/patches/13106312
#Apply the SOA Patch
opatch apply

To apply the OIM Patch, execute the following commands:
cd ~/patches/14760839/OIM/14766143
export PATH=/home/oracle/Oracle/Middleware/Oracle_IDM1/OPatch:$PATH
export ORACLE_HOME=/home/oracle/Oracle/Middleware/Oracle_IDM1
opatch apply

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