Sample code to reset FND_USER password from backend
declarev_user_namevarchar2(30) :=upper('AJ_TEST'); v_passwordvarchar2(30) :='johnytips';-- new passwordv_statusboolean;beginv_status := fnd_user_pkg.changepassword ( username => v_user_name ,newpassword => v_password );ifv_status =truethendbms_output.put_line ('Password for '||v_user_name ||' got changed successfully !!!');commit;elsedbms_output.put_line ('Unable to reset password for '|| v_user_name ||' : '||SUBSTR(SQLERRM,1,1000));endif;end;
Related blog: Oracle Apps: Create User and Add Responsibility from backend
Feel free to point out if anything is missing/wrong in this blog.
No comments:
Post a Comment