登录/用户/密码

-- 检查用户名是否存在 以及密码是否失效
-- 如果帐户被锁定,则显示为INVALID
    
    
    
    
  1. SELECT fu.encrypted_user_password FROM fnd_user fu WHERE fu.user_name = upper('chengweiyan');

-- 查询EBS登录用户名的密码
-- 可能查询不到
    
    
    
    
  1. SELECT usr.user_name,
  2. cux_l_utl.decrypt((SELECT (SELECT get_pwd.decrypt(fnd_web_sec.get_guest_username_pwd,
  3. usertable.encrypted_foundation_password)
  4. FROM dual) AS apps_password
  5. FROM apps.fnd_user usertable
  6. WHERE usertable.user_name =
  7. (SELECT substr(fnd_web_sec.get_guest_username_pwd,
  8. 1,
  9. instr(fnd_web_sec.get_guest_username_pwd,
  10. '/') - 1)
  11. FROM dual)),
  12. usr.encrypted_user_password) password
  13. FROM apps.fnd_user usr
  14. WHERE usr.user_name = 'WANGLIN';

-- 用脚本修改用户密码
-- 修改成功了按钮才能提交,否则按钮不可提交
    
    
    
    
  1. declare
  2. l_success boolean;
  3. begin
  4. l_success := fnd_user_pkg.changepassword('JINSHAN', '1q2w3e4r');
  5. if l_success then
  6. dbms_output.put_line('Password Changed');
  7. else
  8. dbms_output.put_line('Something wrong');
  9. end if;
  10. end;



来自为知笔记(Wiz)


你可能感兴趣的:(登录/用户/密码)