Recovering the data source password

The same way that the WebLogic Administrator password is recoverable, the data source password can be retrieved as well.

In this recipe, the ds-nonXA data source with the JNDI name jdbc/non-XA will be used to retrieve the password.

Getting ready

The encrypted password must be retrieved from the JDBC configuration files in the $DOMAIN_HOME/config/jdbc directory. To decrypt the password, use WLST.

How to do it...

Carry out the following steps to recover the data source password:

  1. Log in as a wls user to shell and open the $DOMAIN_HOME/config/config.xml file to get the JDBC configuration filename.
    [wls@prod01]$ cd $DOMAIN_HOME/config
    [wls@prod01]$ vi config.xml
    
  2. Locate the <jdbc-system-resource> tag of the ds-nonXA data ...

Get Oracle WebLogic Server 12c Advanced Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.