We have tried changing weblogic password from command line considering the password is lost or forgotten Oracle EBS R12(12.2.x)
Actions to be taken :
- Shut down all running services (adstpall.sh), although the password for Admin server is unknown try to kill the pid’s from the server.
- Back up these folders, then delete them:
EBS_DOMAIN_HOME/security/ DefaultAuthenticatorInit.ldift
EBS_DOMAIN_HOME/servers//data/ldap
EBS_DOMAIN_HOME/servers//security/boot.properties
EBS_DOMAIN_HOME/servers//data/nodemanager/boot.properties
EBS_DOMAIN_HOME/servers//data/ldap
EBS_DOMAIN_HOME/servers//security/boot.properties
EBS_DOMAIN_HOME/servers//data/nodemanager/boot.properties
- Set up a new environment to change the WLS AdminServer password.
./setDomainEnv.sh
- Do NOT source the application tier environment file.
- Run the following commands:
cd EBS_DOMAIN_HOME/security
java weblogic.security.utils.AdminAccount wls_adminuser(weblogic) wls_admin_new_password(yourenewpass) .
OR
java -cp /apps/bea11g/weblogic11g/server/lib/weblogic.jar:$CLASSPATH weblogic.security.utils.AdminAccount newUser newPass1 .
java weblogic.security.utils.AdminAccount wls_adminuser(weblogic) wls_admin_new_password(yourenewpass) .
OR
java -cp /apps/bea11g/weblogic11g/server/lib/weblogic.jar:$CLASSPATH weblogic.security.utils.AdminAccount newUser newPass1 .
- Note: Do not omit the trailing period (‘.’) in the above command, to specify the current domain directory.
- Change the password in boot.properties of AdminServer
EBS_DOMAIN_HOME/servers/AdminServer/security/boot.properties
username = weblogic
password = weblogic123
username = weblogic
password = weblogic123
- Start all the services using adstrtal.sh