Saturday 14 May 2016

Recovering the WebLogic Admin Password and datasource password using WLST

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 ()

the username and password will be displayed on the screen, using the same method we can recover the data source password also.

No comments:

Post a Comment