Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By : Dalton Iwazaki
Book Image

Oracle WebLogic Server 12c Advanced Administration Cookbook

By: Dalton Iwazaki

Overview of this book

Table of Contents (15 chapters)
Oracle WebLogic Server 12c Advanced Administration Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 source and get the descriptor filename.

      <jdbc-system-resource>
        <name>ds-nonXA</name>
        <target></target>
            <descriptor-file-name>jdbc/ds-nonXA-jdbc.xml</descriptor-file-name>
      </jdbc...