User-2128037440 posted
create or replace
PROCEDURE CHANGE_USER_PASSWORD(
USER_NAME_IN IN VARCHAR2 ,
NEW_PASSWORD_IN IN VARCHAR2 )
AS
BEGIN
EXECUTE IMMEDIATE 'ALTER USER '|| USER_NAME_IN ||' IDENTIFIED BY '|| NEW_PASSWORD_IN;
COMMIT;
END CHANGE_USER_PASSWORD;
Above is a oracle procedure for change user password, Here USER_NAME_IN is user logon name and NEW_PASSWORD_IN is new password which you wan to change.
If you want to test this procedure, please run use below code on sql plus.
BEGIN
CHANGE_USER_PASSWORD('HR','xyz');
END;