Created
January 30, 2012 21:16
-
-
Save ramannanda9/1706758 to your computer and use it in GitHub Desktop.
Account unlock utility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE PROCEDURE "SYS"."ACCOUNT_UNLOCKER" ( p_user in varchar2 ) | |
is | |
temp_password varchar2(255); | |
begin | |
select password into temp_password from sys.user$ where upper(name)=upper(p_user | |
); | |
execute immediate 'alter user '||p_user||' account unlock ' ; | |
execute immediate 'alter user '||p_user|| ' identified by values '''||temp_passw | |
ord||''''; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment