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 .

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

username=

password=

# Start the WebLogic domain.

$ $DOMAIN_HOME/bin/startWebLogic.sh

Refernces:

Alle Beiträge von Mohammad Esad-Djou

See: http://modj.org/home/ueber-uns.html

3 Kommentare

  1. Hi,
    thanks for the steps. But it has given following error in our environmnet:
    ash-3.2$ java weblogic.security.utils.AdminAccount **** ****

    Error: Could not find or load main class weblogic.security.utils.AdminAccount

  2. java weblogic.security.utils.AdminAccount weblogic *****
    Error: Could not find or load main class weblogic.security.utils.AdminAccount

Antwort an Marvin Pérez Antwort verwerfen