If you forget the AdminServer password for your WebLogic 11g domain, you can reset it from the command line using the following process.
export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/MyWLDomain
$ $DOMAIN_HOME/bin/stopWebLogic.sh
$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data_old
$ . $DOMAIN_HOME/bin/setDomainEnv.sh
$ cd $DOMAIN_HOME/security
$java weblogic.security.utils.AdminAccount <username> <password>.
If CLASSPATH is not set, you will get error message stating “Could not find the main class: weblogic.security.utils.AdminAccount. Program will exit”. Then you have add the classpath directly in the command like
$ java -cp /scratch/WL_BNB/WLS/wlserver_10.3/server/lib/weblogic.jar weblogic.security.utils.AdminAccount weblogic weblogic1
username=<username>
password=<password>
$ $DOMAIN_HOME/bin/startWebLogic.sh
That’s it you are done with password reset