Recently, I completed a new installation for Oracle 11g Weblogic server as part of the Oracle 11g SOA Suite configuration. Unfortunately I forgot the password. Here is how to reset the password for the weblogic admin account with Oracle 11g Weblogic (10.3.3).
Step 1: Set the environment for your Weblogic domains:
In our case, we are running Linux so we change to the Middleware directory set by the MIDDLEWARE_HOME variable
$ cd $MIDDLEWARE_HOME/user_projects/domains/{your_domain}/bin
where your_domain is the domain_name for your Weblogic domain as shown in below example:
$ cd user_projects/domains/fmw_domain/bin
Execute the setDomainEnv.sh script
. ./setDomainEnv.sh
Step 2:Run the copy command before we change the admin password for weblogic
$ java -cp /weblogic1033/oracle/wlserver_10.3/server/lib/weblogic.jar:$CLASSPATH weblogic.security.utils.AdminAccount weblogic mypass1 .
where weblogic is the admin username and mypass1 is the new password
Step 3: Reset the weblogic admin password with the following command:
$ java weblogic.security.utils.AdminAccount weblogic mypass1 .
where weblogic is the admin user account and mypass1 is the new password. Don't forget the period at the end of the command or this will not work.
In the future, if you do not want to set a password for the weblogic admin user, you can modify the boot.properties file as discussed in the following My Oracle Support note:
980292.1
Starting AdminServer Without Username/Password Prompt in WebLogic Server 10.3
Cheers,
Ben
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment