1-First set environment variables
export BEAHOME=/u01/app/oracle/product/middleware
export DOMAIN_HOME=$BEAHOME/user_projects/domains/base_domain
export CLASSPATH=$CLASSPATH:$BEAHOME/wlserver_10.3/server/lib/weblogic.jar
cd $DOMAIN_HOME/bin
. ./setDomainEnv.sh
2- Now execute the command below to create the new password
cd ../security
mv DefaultAuthenticatorInit.ldift oldDefaultAuthenticator
java weblogic.security.utils.AdminAccount weblogic new_password . --DON'T FORGET THE "."
3- If it exists remove boot.properties file
cd ../servers/AdminServer
mv data data_old
cd security/
mv boot.properties oldboot.properties
4- Restart Weblogic server
cd $DOMAIN_HOME./startWebLogic.sh
Best Regards,
Paulo Portugal
awesome................
ReplyDeleteThanks this was really helpfulll...
ReplyDeleteAwesome post, very usefull.
ReplyDeleteThanks, Good works
ReplyDeleteYou will loose all the existing users (except weblogic) in the domain if you follow the above steps.
ReplyDeleteIf you want to retain all users in the domain and change weblogic user password, please follow the Oracle Doc ID Doc ID 1350814.1.
Regards
Jayakrishnan
Thanks Paulo Ferreira! And Thank you too Jayakrishnan for the valid advice!
ReplyDelete