IF YOU DON’T KNOW CURRENT PASSWORD
———————————–
If you forget your administrative password and cannot start the server, the following procedure works for the default authenticator
Note: This is not supported in WLS 12c.

To reset the password, follow these steps:
1. Make sure Weblogic Server instance is stopped.

start with new session , with no Apps Env Set
2. Make a backup of the LDAP folder of the admin server as well as managed servers (you may rename those folders):

export DOMAIN_TOP=/$FMW_HOME/user_projects/domains/EBS_domain_${TWO_TASK}
cd $DOMAIN_TOP/servers/AdminServer/data ; cp -rp ldap ldap_bak
cd $DOMAIN_TOP/servers/forms-c4ws_server1 ; cp -rp ldap ldap_bak
cd $DOMAIN_TOP/servers/forms_server1 ; cp -rp ldap ldap_bak
cd $DOMAIN_TOP/servers/oacore_server1 ; cp -rp ldap ldap_bak
cd $DOMAIN_TOP/servers/oafm_server1 ; cp -rp ldap ldap_bak

3. cd $DOMAIN_TOP/bin (cd $EBS_DOMAIN_HOME/bin )
. ./setDomainEnv.sh

4. Create new initialization file
syntax: java weblogic.security.utils.AdminAccount <ADMIN-USERNAME> <ADMIN-PASSWORD> <DOMAIN_HOME>/security
java weblogic.security.utils.AdminAccount weblogic <ADMIN-PASSWORD> $DOMAIN_TOP/security

 

5 Remove the initialized status file DefaultAuthenticatormyrealmInit.initialized from the <DOMAIN_HOME>/servers/AdminServer/data/ldap/ subdirectory:
cd $DOMAIN_TOP/servers/AdminServer/data/ldap
rm DefaultAuthenticatormyrealmInit.initialized

6. cd $DOMAIN_TOP/servers/AdminServer/security

7. Edit the boot.properties file and change the password to the value already used on the previous step. Do this for all the servers in the domain.

8. Start Weblogic Server (Weblogic Server will encrypt the password for you for step #7

Recent Posts

Start typing and press Enter to search