Reset the AdminServer Password in Oracle WebLogic 11g 


If you forget the AdminServer password for your WebLogic 11g domain, you can reset it from the command line using the following process.

1) Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case my domain is called "ClassicDomain". Remember to change the value to match your domain.

export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/DOMAIN_NAME

2) Shut down the WebLogic domain.

$ $DOMAIN_HOME/bin/stopWebLogic.sh
Rename the data folder.

$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old

3) Set the environment variables.

$ . $DOMAIN_HOME/bin/setDomainEnv.sh

4) Reset the password using the following command. Remember to substitute the appropriate username and password.

$ cd $DOMAIN_HOME/security
$ java weblogic.security.utils.AdminAccount <username> <password> .

5) Update the "$DOMAIN_HOME/servers/AdminServer/security/boot.properties" file with the new username and password. The file format is shown below.

username=<username>
password=<password>

6) Start the WebLogic domain.

$ $DOMAIN_HOME/bin/startWebLogic.sh




If you like please follow and comment