Labels

Search This Blog

Friday, December 14, 2012

Find Password in Oracle E-Business Suite 11i and R12


This scripts allows to view the passwords which are stored encrypted in fnd_user table.
You can use different sqls to find apps password and application user passwords.

Create Package

CREATE OR REPLACE PACKAGE XXARTO_GET_PWD
AS
   FUNCTION decrypt (KEY IN VARCHAR2, VALUE IN VARCHAR2)
      RETURN VARCHAR2;
END XXARTO_GET_PWD;

CREATE OR REPLACE PACKAGE BODY XXARTO_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 XXARTO_GET_PWD;

Find apps password in 11i

SELECT (SELECT XXARTO_GET_PWD.Decrypt (
                  UPPER( (SELECT UPPER (Fnd_Profile.VALUE ('Guest_User_Pwd'))
                            FROM DUAL)),
                  Usertable.Encrypted_Foundation_Password)
          FROM DUAL)
          AS Apps_Password
  FROM applsys.Fnd_User Usertable
 WHERE Usertable.User_Name LIKE
          UPPER( (SELECT SUBSTR (
                            Fnd_Profile.VALUE ('Guest_User_Pwd'),
                            1,
                            INSTR (Fnd_Profile.VALUE ('Guest_User_Pwd'), '/')
                            - 1)
                    FROM DUAL));
 

Find apps password in R12

 SELECT (SELECT XXARTO_GET_PWD.Decrypt (
                  Fnd_Web_Sec.Get_Guest_Username_Pwd,
                  Usertable.Encrypted_Foundation_Password)
          FROM DUAL)
          AS Apps_Password
  FROM applsys.Fnd_User Usertable
 WHERE Usertable.User_Name LIKE
          (SELECT SUBSTR (
                     Fnd_Web_Sec.Get_Guest_Username_Pwd,
                     1,
                     INSTR (Fnd_Web_Sec.Get_Guest_Username_Pwd, '/') - 1)
             FROM DUAL);
 

Find application user password (for exaample SYSADMIN) in 11i

SELECT Usertable.User_Name,
       (SELECT XXARTO_GET_PWD.Decrypt (
                  UPPER( (SELECT (SELECT XXARTO_GET_PWD.Decrypt (
                                            UPPER( (SELECT UPPER(Fnd_Profile.VALUE('Guest_User_Pwd'))
                                                      FROM DUAL)),
                                            Usertable.Encrypted_Foundation_Password)
                                    FROM DUAL)
                                    AS Apps_Password
                            FROM applsys.Fnd_User Usertable
                           WHERE Usertable.User_Name LIKE
                                    UPPER( (SELECT SUBSTR (
                                                      Fnd_Profile.VALUE (
                                                         'Guest_User_Pwd'),
                                                      1,
                                                      INSTR (
                                                         Fnd_Profile.VALUE (
                                                            'Guest_User_Pwd'),
                                                         '/')
                                                      - 1)
                                              FROM DUAL)))),
                  Usertable.Encrypted_User_Password)
          FROM DUAL)
          AS Encrypted_User_Password
  FROM Applsys.Fnd_User Usertable
 WHERE Usertable.User_Name LIKE UPPER ('&Username');
 

Find application user password (for exaample SYSADMIN) in R12

SELECT Usr.User_Name,
       Usr.Description,
       XXARTO_GET_PWD.Decrypt (
          (SELECT (SELECT XXARTO_GET_PWD.Decrypt (
                             Fnd_Web_Sec.Get_Guest_Username_Pwd,
                             Usertable.Encrypted_Foundation_Password)
                     FROM DUAL)
                     AS Apps_Password
             FROM applsys.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 applsys.Fnd_User Usr
 WHERE Usr.User_Name = '&User_Name';

16 comments:

  1. Hi Arto,

    In EBS R12.1.3, while the package/queries return a password for the APPS user, they do not for an applications user:

    USER_NAME DESCRIPTION PASSWORD
    -------------------- ------------------------------ ------------------------------
    SYSADMIN System Administrator

    Is there something I need to do to display the password for an applications user?

    Thanks,
    Michael New
    michael@ndbas.com
    Author, Oracle Press
    917-207-2105

    ReplyDelete
  2. Hi Michael
    You should use different query for apps and sysadmin.
    Are you sure that you use query below?

    SELECT
    Usr.User_Name,

    Usr.Description,

    XXARTO_GET_PWD.Decrypt (

    (SELECT (SELECT XXARTO_GET_PWD.Decrypt
    (


    Fnd_Web_Sec.Get_Guest_Username_Pwd,


    Usertable.Encrypted_Foundation_Password)

    FROM DUAL)

    AS Apps_Password

    FROM applsys.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 applsys.Fnd_User Usr

    WHERE Usr.User_Name = '&User_Name';

    ŞFor sysadmin query is with title Find Application User

    ReplyDelete
  3. Hi,

    Am using readonly backend logins and isn't possible to find production sysadmin logins without creating package/body?

    Regards,
    HanmatH PradeeP Tirumala

    ReplyDelete
  4. A home is made of more things than four walls. There are so many upgrading to be done in the home from time to time. Home improvement is so many things. Since it involves so many things, it requires a lot of finance also. You may not always have access to finance but you can always get a home improvement loan. Getting a home improvement loan is simple and besides providing comfort, it is increasing the equity present in your home. Get a home loan today for creating that much needed personal space Buy Ansys Products 2020 R1

    ReplyDelete
  5. Over the past few years, unemployment rates have increased to higher levels than ever before, which has resulted in many people deciding to start up their own small businesses instead. While small business ownership is a good thing, many entrepreneurs can in fact benefit greatly from using small business loans or other types of business funding to help them get ahead. cheap software

    ReplyDelete
  6. The indisputable advantages, that's what made SEO Pressor such a big hit in its beginning days. Still now, just after a few adjustments and upgrades, this SEO Software is just as simple and easy as it ever was. There is not a thing you have to install; it is merely a short and easy download and that's it, you're in business. Despite the program itself being incredibly sophisticated, you don't have to be a technological wizard to understand and use it. The programmer behind this program has kept the software as much self driving as possible. link building expert

    ReplyDelete
  7. The indisputable advantages, that's what made SEO Pressor such a big hit in its beginning days. Still now, just after a few adjustments and upgrades, this SEO Software is just as simple and easy as it ever was. There is not a thing you have to install; it is merely a short and easy download and that's it, you're in business. Despite the program itself being incredibly sophisticated, you don't have to be a technological wizard to understand and use it. The programmer behind this program has kept the software as much self driving as possible. blog comments seo

    ReplyDelete
  8. The indisputable advantages, that's what made SEO Pressor such a big hit in its beginning days. Still now, just after a few adjustments and upgrades, this SEO Software is just as simple and easy as it ever was. There is not a thing you have to install; it is merely a short and easy download and that's it, you're in business. Despite the program itself being incredibly sophisticated, you don't have to be a technological wizard to understand and use it. The programmer behind this program has kept the software as much self driving as possible. link building seo

    ReplyDelete
  9. Hi. Cool article. There’s an issue with your website in firefox, and you might want to check this… The browser is the market chief and a good section of people will pass over your great writing because of this problem. 먹튀사이트

    ReplyDelete
  10. Working Capital programs provide a unique alternative to credit scoring. Private lenders can fund businesses with weaker credits by rolling up their sleeves to understand "Your Story". Funding is approved and based on common sense underwriting of the small business owner! Upcoming Local Business Events

    ReplyDelete
  11. I dream of owning my own business and ditching my boss and having enough money to be comfortable. I want to start a business now. What do I do? 출장안마

    ReplyDelete
  12. These days, tablets, computers and Smartphones run our lives, but in a short time, the market has exploded with technology more than most people can imagine and to the point that they cannot imagine being without it. To understand the evolution of this technology from the dark ages to today, you should began with understanding how it evolved. Technology was born out of a purpose. An example would be in the creation of search engines, which are used to sift through all the massive quantity of online data. climate science

    ReplyDelete
  13. Preparing yourself for 'going into business' is all about having an idea, researching the idea and drawing up a business plan. Getting this right is vital for your future small business success. Fortune best cryptocurrency to invest

    ReplyDelete
  14. Starting up a Coffee Shop or any Coffee related business such as a Sandwich Bar, Deli, Takeaway Fast Food Outlet has to be given the same consideration as any business venture. This article is meant to be a "Basic Guide" to give you some things to think about when wanting to start a Coffee business. It's not meant to be a "Step by Step Guide". Detailed planning is going to be unique to your circumstances and should be discussed with your Business advisors, Accountant and Bank. account bookkeeping

    ReplyDelete
  15. Keep sharing this fantastic and informative topic. gramhir

    ReplyDelete
  16. Thanks for sharing this wonderful information.Buy Silver Coins

    ReplyDelete