Tuesday, January 18, 2022

Change Weblogic password in R12.2

Many posts on changing Weblogic password. Below steps worked for me.

1. Stop all EBS services
2. Start Admin Server on Primary node
$ $ADMIN_SCRIPTS_HOME/adadminsrvctl.sh start
3. Run below line to change Weblogic password.
WARNING: It does not prompt to confirm the new password. The safest way is to enter it by copy/paste. If you type it wrong, it will be a disaster because Oracle does not supply a way to decrypt passwords.
 
$ perl $FND_TOP/patch/115/bin/txkUpdateEBSDomain.pl -action=updateAdminPassword

Program: txkUpdateEBSDomain.pl started at Tue ... ...

AdminServer will be re started after changing WebLogic Admin Password
All Mid Tier services should be SHUTDOWN before changing WebLogic Admin Password
Confirm if all Mid Tier services are in SHUTDOWN state. Enter "Yes" to proceed or anything else to exit: Yes

Enter the full path of Applications Context File [DEFAULT - $CONTEXT_FILE]:
Enter the WLS Admin Password:
Enter the new WLS Admin Password:
Enter the APPS user password:
... ...
*************** IMPORTANT ****************
WebLogic Admin Password is changed.
Restart all application tier services using control scripts.
********************************************
----------------------------------------
Inside generateMimeMappingsPropFile()...
----------------------------------------
$FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties already exists, updating it.
--------------------------------------
Inside updateMimeMappingsPropFile()...
--------------------------------------
-------------------------------------
Inside resetExistingMimeMappings()...
-------------------------------------
Overwriting the value for the parameter: png
Overwriting the value for the parameter: xml
Overwriting the value for the parameter: js
Overwriting the value for the parameter: svg
Overwriting the value for the parameter: swf
Reset of mime mappings completed.
---------------------------
Inside addMimeMappings()...
---------------------------
Adding of mime mappings completed.
Taking backup of existing mimemappings.properties.
Copying the file
----------------
SOURCE : $FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties
TARGET : $FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties_bkp
Copying temporary file as mimemappings.properties.
Copying the file
----------------
SOURCE : $FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties_temp
TARGET : $FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties
$FMW_HOME/user_projects/domains/EBS_domain/config/mimemappings.properties updated successfully.
Program: txkUpdateEBSDomain.pl completed at Tue ... ...

4. Log onto Weblogic Console and EM as weblogic using the new password.
5. Start all EBS services

Different Weblogic version may have different way to change the password. Version info (for details, see Doc ID 1051959.1 How To Find the Full WebLogic Server Version and Full Patch Level):

$ cd $FMW_HOME/user_projects/domains/EBS_domain_${TWO_TASK}/servers/AdminServer/logs
$ grep WebLogic AdminServer.log
... ...
<WebLogic Server "AdminServer" version:
WebLogic Server 10.3.6.0.210119 PSU Patch for BUG32052267 Mon Nov 23 07:28:31 UTC 2020
WebLogic Server Temporary Patch for BUG13964737 Fri Dec 20 11:32:08 IST 2013
WebLogic Server Temporary Patch for BUG20474010 Sun Mar 01 17:22:18 IST 2015
WebLogic Server Temporary Patch for ${CRS} Mon Jul 30 16:45:20 EDT 2012
WebLogic Server Temporary Patch for ${CRS} Mon Jul 30 16:45:20 EDT 2012
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.>   ... ...

REFERENCES:

How to Change /Reset /Retrieve the WebLogic Server Administrator Password - All Versions (Doc ID 1082299.1)
How to Decrypt WLS Passwords using WLST? ( Doc ID 2732961.1 )

No comments: