Sunday, June 15, 2014

Weblogic April 14 PSU patch and BSU utliity

Was applying Weblogic PSU Aoril 2014 using BSU utility,

Had an issue with removing a previous Patchset 10.3.6.5 which is conflicting with current patchset 10.3.6.0.8 (April2014).
 The issue is patch is looking for product info and the instance details are found to be wrong, they refer to a different instance.

 Basically this is a refresh issue.
 So had to modify the entries in patch-backup.xml and remove the previously conflicting PSU.

 And then the April 2014 PSU went fine to be a SUCCESS.
 ========================================

bash-3.2$ cd /SID/disco11g/product/utils/bsu

bash-3.2$ bsu.sh -install -patch_download_dir=/ood_repository/patches  -patchlist=T5F1
-prod_dir=/SID/disco11g/product/wls_103
Checking for conflicts..

Conflict(s) detected - resolve conflict condition and execute patch installation again

Conflict condition details follow:

Patch T5F1 is mutually exclusive and cannot coexist with patch(es): L51R
bash-3.2$
==========================================

bsu.sh -remove -patchlist=L51R -prod_dir=/SID1/disco11g/product/wls_103


Checking for conflicts..
No conflict(s) detected

Removing Patch ID: L51R.
Result: Failure


java.io.FileNotFoundException: /SID2/disco11g/product/wls_103/server/lib/wls-api.jar (No such

file or directory)
Result: Failure


Fix:
======
 Replace the SID2 entries to SID1 in patch-backup.xml


cd /SID1/disco11g/product/patch_wls1036/registry
cp patch-backup.xml patch-backup.xml.old


vi patch-backup.xml
change SID2  entries to SID1

====================================================

bash-3.2$ cd /SID/disco11g/product/utils/bsu
bash-3.2$ bsu.sh -remove -patchlist=L51R -prod_dir=/SID/disco11g/product/wls_103
Checking for conflicts..
No conflict(s) detected

Removing Patch ID: L51R..
Result: Success


bash-3.2$ bsu.sh -install -patch_download_dir=/ood_repository/patches/Discoverer 
-patchlist=T5F1 -prod_dir=/SID/disco11g/product/wls_103 -log=18040640_patch.log

Checking for conflicts..
No conflict(s) detected

Installing Patch ID: T5F1..
Result: Success

AFPASSWD utility

    Change the password for an Application user.
    ==============================================
    AFPASSWD [-c APPSUSER [@TWO_TASK] -f FNDUSER
   
$ AFPASSWD -c apps -f SYSADMIN
Enter the ORACLE password of Application Object Library 'APPSUSER':
Connected successfully to APPS.
Log file: AFPWD_SID_746667.log
Enter new password for user [SYSADMIN]:
Verify new password for user [SYSADMIN]:
===================================================
Change the password for an Oracle Applications Database user.

AFPASSWD [-c APPSUSER [@TWO_TASK] -o ORAUSER
==============================================
 Modify APPLSYS user. This requires the execution
          of autoconfig (in ALL-TIERS) to distribute the
          changes on your instance ie DB-TIER and ADMIN-TIER.

$ AFPASSWD -c apps -s applsys
Enter the ORACLE password of Application Object Library 'APPSUSER':
Connected successfully to APPS.
Enter the password for your 'SYSTEM' ORACLE schema:
Connected successfully to SYSTEM.
Log file: AFPWD_SID_752136.log
Enter new password for user:
Verify new password for user:
AFPASSWD completed successfully.

Tuesday, June 3, 2014

How to check Weblogic server Version

Different ways to check weblogic server version
------------------------------------------------------------
bash-3.2$ grep WebLogic registry.xml
     
          product format="1.0" name="WebLogic Platform"

        component name="WebLogic Server" version="10.3.6.0" InstallDir="/SID/disco11g/product/wls_103"
       

bash-3.2$ pwd
/sid/disco11g/product
bash-3.2
=================================================
bash-3.2$ vi AdminServer.log
bash-3.2$ grep Copyright AdminServer.log
WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050  Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.>
WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050  Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.>
WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050  Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.>
bash-3.2$ pwd
/sid/disco11g/product/user_projects/domains/SID/servers/AdminServer/logs
bash-3.2$
========================================================
bash-3.2$ cd $WL_HOME/server/bin/
bash-3.2$ ls
setWLSEnv.sh  startNodeManager.sh
bash-3.2$ . ./setWLSEnv.sh
CLASSPATH=/SID/disco11g/product/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/SID/disco11g/product/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/SID/disco11g/product/jdk1.6.0_21/lib/tools.jar:/SID/disco11g/product/wls_103/server/lib/weblogic_sp.jar:/SID/disco11g/product/wls_103/server/lib/weblogic.jar:/SID/disco11g/product/modules/features/weblogic.server.modules_10.3.6.0.jar:/SID/disco11g/product/wls_103/server/lib/webservices.jar:/SID/disco11g/product/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/SID/disco11g/product/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/SID/disco11g/product/wls_103/server/bin:/SID/disco11g/product/modules/org.apache.ant_1.7.1/bin:/SID/disco11g/product/jdk1.6.0_21/jre/bin:/SID/disco11g/product/jdk1.6.0_21/bin:.:/SID/disco11g/product/disco_111/jdk/jre/bin:/SID/disco11g/product/disco_111/discoverer/bin:/SID/disco11g/product/disco_111/bin:/SID/disco11g/product/wls_103/server/bin:/SID/disco11g/product/user_projects/domains/SID/bin:/SID/disco11g/product/instance/bin:/SID/disco11g/product/disco_111/jdk/bin:/SID/disco11g/product/disco_111/bin:/usr/local/git/bin:/usr/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/ucb:/bin:/usr/sbin:/sbin:/usr/local/bin

Your environment has been set.
bash-3.2$ java weblogic.version

WebLogic Server 10.3.6.0.5 PSU Patch for BUG16619891 Tue Apr 23 13:24:29 IST 2013
WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules