You are currently reviewing an older revision of this page.

DRAFT-KB-XXXX Weblogic Admin Reset Password Steps

Purpose

The purpose of this article is to provide the steps to reset the Administrator password in a Weblogic installation.

Instructions

    1. Set up the following environment variables. They are not necessary for the process itself, but will help you navigate. In this case the domain is called "ClassicDomain". Remember to change the value to match your domain.
      1. export MW_HOME=/u01/app/oracle/middleware
      2. export DOMAIN_HOME=$MW_HOME/user_projects/domains/ClassicDomain
    2. Shut down the WebLogic domain.
      1. DOMAIN_HOME/bin/stopWebLogic.sh
    3. Rename the data folder.
      1. mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old
    4. Set the environment variables.
      1. $DOMAIN_HOME/bin/setDomainEnv.sh
    5. Reset the password using the following command. Remember to substitute the appropriate username and password.
      1. cd $DOMAIN_HOME/security
      2. java weblogic.security.utils.AdminAccount <username> <password> 
    6. 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>
  1. Start the WebLogic domain.
    1. $DOMAIN_HOME/bin/startWebLogic.sh

Affected Versions:

This article applies to all versions of Weblogic.