R12.2.x : How to find password weblogic if forgot.
Step by Step
----------------------------------------------------------------------------------------
1. Go to $FMW_HOME/user_projects/domains/EBS_domain_<inst>/bin
2. Run environment follow this : . setDomainEnv.sh
3. Go to $FMW_HOME/user_projects/domains/EBS_domain_<inst>/servers/ASdminServer/security
4. more file boot.properties
5. Create file name "decryptPassword.py" follow detail :
import os
import weblogic.security.internal.SerializedSystemIni
import weblogic.security.internal.encryption.ClearOrEncryptedService
def decrypt(domainHomeName, encryptedPwd):
domainHomeAbsolutePath = os.path.abspath(domainHomeName)
encryptionService = weblogic.security.internal.SerializedSystemIni.getEncryptionService(domainHomeAbsolutePath)
ces = weblogic.security.internal.encryption.ClearOrEncryptedService(encryptionService)
clear = ces.decrypt(encryptedPwd)
print "RESULT:" + clear
try:
if len(sys.argv) == 3:
decrypt(sys.argv[1], sys.argv[2])
else:
print "INVALID ARGUMENTS"
print " Usage: java weblogic.WLST decryptPassword.py <DOMAIN_HOME> <ENCRYPTED_PASSWORD>"
print " Example:"
print " java weblogic.WLST decryptPassword.py D:/Oracle/Middleware/user_projects/domains/base_domain {AES}819R5h3JUS9fAcPmF58p9Wb3syTJxFl0t8NInD/ykkE="
except:
print "Unexpected error: ", sys.exc_info()[0]
dumpStack()
raise
6. copy file "decryptPassword.py" to $FMW_HOME/user_projects/domains/EBS_domain_<inst>/servers/AdminServer/security (on run base)
7. run this utility : java weblogic.WLST decryptPassword.py
$FMW_HOME/user_projects/domains/EBS_domain_<inst> {AES}xxxxxxxx (from file boot.properties)
** command usege : java weblogic.WLST decryptPassword.py $FWM_BASE <password from boot.properties) **
result :
********************** Thank you and welcome comment *********************