You are currently reviewing an older revision of this page.

DRAFT-INT-XXXX How to reset the WebLogic Administrator password

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 they will help you navigate. The domain in the example below is called "ClassicDomain". Remember to change the value to match your domain.
      export MW_HOME=/u01/app/oracle/middleware
      export DOMAIN_HOME=$MW_HOME/user_projects/domains/ClassicDomain
      
    1. Shut down the WebLogic domain.
      DOMAIN_HOME/bin/stopWebLogic.sh
    1. Rename the data folder.
      mv $DOMAIN_HOME/servers/AdminServer/data $DOMAIN_HOME/servers/AdminServer/data-old
    1. Set the environment variables.
      $DOMAIN_HOME/bin/setDomainEnv.sh
    1. Reset the password using the following command. Remember to substitute the appropriate username and password.
      cd $DOMAIN_HOME/security
      java weblogic.security.utils.AdminAccount <username> <password> 
    1. Update the boot.properties file located in $DOMAIN_HOME/servers/AdminServer/security/ with the new username and password. The file format is shown below:
      username=<username>
      password=<password>
    1. Start the WebLogic domain.
      $DOMAIN_HOME/bin/startWebLogic.sh

Affected Versions:

This article applies to all versions of WebLogic.