Find password of a User in Oracle Apps R12

Thực tế, không ít lần tôi gặp trường hợp user sử dụng hệ thống oracle EBS R12 quên mật khẩu, nếu có user truy cập database của hệ thống EBS và có quyền thao tác trên schema APPS, bạn hoàn toàn có thể tìm lại mật khẩu bằng câu lệnh SQL sau:

----------------------------------------------------

alter session set current_schema=APPS;

----------------------------------------------------

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 = '&USERNAME';

-------------------------------------------------