PL/SQL Code to Reset an Oracle Apps User Password (FND_USER_PKG.CHANGEPASSWORD)

Oracle EBS application user passwords are encrypted in FND_USER and must never be updated directly. To reset one from the backend, call FND_USER_PKG.CHANGEPASSWORD, which returns TRUE when the new password is accepted. This is handy in cloned development or test instances where the System Administrator form is not yet usable.

PL/SQL: reset a user’s password

--
DECLARE
   v_user_name      VARCHAR2 (30) := UPPER ('AMOL');
   v_new_password   VARCHAR2 (30) := 'welcome1';
   v_status         BOOLEAN;
BEGIN
   v_status :=
      fnd_user_pkg.ChangePassword (username      => v_user_name,
                                   newpassword   => v_new_password);
   IF v_status = TRUE
   THEN
      DBMS_OUTPUT.put_line (
         'The password reset successfully for the User:' || v_user_name);
      COMMIT;
   ELSE
      DBMS_OUTPUT.put_line (
            'Unable to reset password due to'
         || SQLCODE
         || ' '
         || SUBSTR (SQLERRM, 1, 100));
      ROLLBACK;
   END IF;
END;
/

Notes

  • Run as APPS. The new password must meet the instance’s password rules (profile options such as Signon Password Length and Signon Password Hard to Guess).
  • A password set this way is normally not expired, so ask the user to change it after logging in, or reset it from the Define User form instead, which forces a change at next login.
  • Use this only in non-production instances or under your security team’s process; production resets should go through the normal user administration flow.

How do I reset an Oracle Apps password from the backend?

Call FND_USER_PKG.CHANGEPASSWORD(username, newpassword) as APPS and commit when it returns TRUE.

Can I update FND_USER.ENCRYPTED_USER_PASSWORD directly?

No. The password is encrypted and must be set through FND_USER_PKG or FNDCPASS-style tools.

Related queries

Related posts: Upload your own post and refer it anywhere anytime: