Weblogic Server: Resetting the domain server admin password on Unix
Oh SNAP! I have forgotten my Admin Server password for the organisations WebLogic domain.
- Have you ever forgot the password of WebLogic domain?
- Have you been in a situation when you took over administration of the server and discovered the wrong password was handed over to you by the previous administrator who is no longer accessible?
So how do you go about achieving this?
In this post I will be discussing how to reset the WebLogic password. This tutorial will focus on achieving this through the command line.
This post will particularly focus on Unix
Click here to see the tutorial on Windows.
So lets begin
1. Shut down the WebLogic domain.
$ $DOMAIN_HOME/bin/stopWebLogic.sh
2. The following environment variables should be set.
For my post I will be using the domain called "base_domain".
export MW_HOME=/u01/app/oracle/middleware
export DOMAIN_HOME=$MW_HOME/user_projects/domains/base_domain
3. Rename the data folder. I renamed mine to data_bkp
$ mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data_bkp
4. Set the environment variables.
$ . $DOMAIN_HOME/bin/setDomainEnv.sh
5. Reset the password using the following command. For this post my username is "weblogic" while my password is "tayo12345"
$ cd $DOMAIN_HOME/security
$ java weblogic.security.utils.AdminAccount weblogic tayo12345 .
Note the dot(.) at the end of the command, notifies that it will reset the password in the current directory.
6. Update the "$DOMAIN_HOME/servers/AdminServer/security/boot.properties" file with the new username and password. The file format is shown below.
username=weblogic
password=tayo12345
7. Start the WebLogic domain.
$ $DOMAIN_HOME/bin/startWebLogic.sh
8. Log in with your new credentials.
And that's all about it. Thanks for viewing
Comments
Post a Comment