0% found this document useful (0 votes)
89 views1 page

Reset PWD

This PL/SQL block declares variables to store a username, new password, and status. It calls a package to change the password for the username to the new password, stores the return status, and prints a message depending on if the status indicates success or failure, committing or rolling back the transaction.

Uploaded by

Ravindra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views1 page

Reset PWD

This PL/SQL block declares variables to store a username, new password, and status. It calls a package to change the password for the username to the new password, stores the return status, and prints a message depending on if the status indicates success or failure, committing or rolling back the transaction.

Uploaded by

Ravindra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

DECLARE

v_user_name VARCHAR2(30):= UPPER('SYSADMIN');


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 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;

https://cpt.hitbullseye.com/Nagarro-Software/Nagarro-Software-Aptitude-Test.php

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy