Saturday, 7 April 2018

How to Retreive password of a front end user in Oracle EBS?

Sometimes, an Oracle database administrator requires to login as the user to reproduce the issue and troubleshoot.It is easy to recover the password of front end users in Oracle EBS by creating the Decrypt package.

Please be cautious and do not misuse this script. This should be used in test environments only.


Create package and Package body

-- Package
CREATE OR REPLACE PACKAGE get_pwd
AS
   FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2)
      RETURN VARCHAR2;
END get_pwd;
/
--Package Body
CREATE OR REPLACE PACKAGE BODY get_pwd
AS
   FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2)
      RETURN VARCHAR2
   AS
      LANGUAGE JAVA
      NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String';
END get_pwd;
/



Execute the below  Query to retrieve the password

SELECT usr.user_name,
       get_pwd.decrypt
          ((SELECT (SELECT get_pwd.decrypt
                              (fnd_web_sec.get_guest_username_pwd,
                               usertable.encrypted_foundation_password
                              )
                      FROM DUAL) AS apps_password
              FROM fnd_user usertable
             WHERE usertable.user_name =
                      (SELECT SUBSTR
                                  (fnd_web_sec.get_guest_username_pwd,
                                   1,
                                     INSTR
                                          (fnd_web_sec.get_guest_username_pwd,
                                           '/'
                                          )
                                   - 1
                                  )
                         FROM DUAL)),
           usr.encrypted_user_password
          ) PASSWORD
  FROM fnd_user usr
 WHERE usr.user_name = '&USER_NAME';

4 comments:

  1. Thanks for posting such kind of information and amazing one. Good content and appreciating. Update regularly.

    Java Training in Chennai

    Java Course in Chennai

    ReplyDelete
  2. Use iCloud Remover Tool to bypass iCloud activation lock on your iPhone and save your data. This tool can be used to recover data from iCloud Editor Torrent

    ReplyDelete
  3. Malwarebytes Crack is one of the most robust spam malware eradication tools and checks all spyware. If your system is slower due to malware Malwarebytes License Key

    ReplyDelete
  4. Congratulations on your new job. That is all that you are looking for. Now that you are at a new level, be thankful to God, and work hard. Best Wishes For Career

    ReplyDelete

Was this Post Helpful?

Feel free to suggest your opinions in the comments section!