Did you forget your WebLogic Server password? No problem!

It is a frequently question that I receive from time to time: “I’ve lost my password, how can I change the AdminServer Password in WebLogic Server?”  In addition, normally administrators want to change the WLS password regularly, because of the security policy. I try to make it easy, but please try it first in a test environment! Make a Backup from your domain and do the following steps for WebLogic Server 11g and/or 12c:

1-       Check your Middleware-Home’s ($MW_HOME) and WLS-Domain-Home’s ($DOMAIN_HOME) paths. You can set up the environments under Linux with export command, e.g.:

$>export MW_HOME=/u01/app/oracle/middleware

$>export DOMAIN_HOME=$MW_HOME/user_projects/domains/MyDomain

2-      shut down the WebLogic domain, e.g. $DOMAIN_HOME/bin/stopWebLogic.sh

3-      Rename the data folder in $DOMAIN_HOME/servers/AdminServer/data

4-      set the environment variables with using, e.g.: $DOMAIN_HOME/bin/setDomainEnv.sh

### Now is the main command that you can change AdminServer’s password:

$> cd $DOMAIN_HOME/security

$> java weblogic.security.utils.AdminAccount <username> <NEWpassword> .

# Create and/or update “boot.properties” in „$DOMAIN_HOME/servers/AdminServer/security/ directory with your username and NEWpassword:

username=<username>

password=<NEWpassword>

# Start the WebLogic domain.

$ $DOMAIN_HOME/bin/startWebLogic.sh

Refernces: