How to reset the AdminServer Password in WebLogic 11g and 12c


In weblogic server which is very much in use now a days and promoted by oracle in every product. As a DBA its not easy that You forget your weblogic password. But Yes if you want to reset the password follow below easy five steps to reset the password :-


1. Stop the WebLogic server.

  You can stop weblogic sever by using "stopWebLogic.sh" or by killing the process. I recomnd to use "stopWebLogic.sh"

2.Delete directory data from mentioned location .

In Your DOMAIN_HOME, you can find the "data" folder at location servers->adminserver. You can delete or move to other name using mv or rm -rf.
Make sure Weblogic admin server is completly stoped.

3. run weblogic.security.utils.AdminAccount 

"weblogic.security.utils.AdminAccount" will reset the the password  for admin server . go to $DOMAIN_HOME->security
and run below command

$ java weblogic.security.utils.AdminAccount weblogic test .

By default username is weblogic and we setting password to test.

4. Update boot.properties

We have changed the password but we need to update boot.properties file becuase when adminserver will start it will read boot.properties file.
go to $DOMAIN_HOME -> servers ->AdminServer->security  and edit boot.properties with new username test and pssword test.shown below.

username=weblogic
password=test

5. Start the WebLogic domain.

go to $DOMAIN_HOME->bin and run startWebLogic.sh  to start the weblogic.

No comments:

Post a Comment

Really Thanks