To recover the Admin password and data source password using the wlst, follow the below steps.
$ cd $DOMAIN_HOME/bin
$. ./setDomainEnv.sh
start wlst
$cd $WL_HOME/common/bin/wlst.sh
run the following command
from weblogic.security.internal import BootProperties .BootProperties.load(“/oracle/Middleware/user_project/domains/PROD_DOMAIN/servers/PROD_Adminserver/security/boot.properties”,false)
prop = BootProperties.getBootProperties()
print “username: ” + prop.getOneClient()
print “password: ” + prop.getTwoClient ()
prop = BootProperties.getBootProperties()
print “username: ” + prop.getOneClient()
print “password: ” + prop.getTwoClient ()
No comments:
Post a Comment