Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Change password pl/sql?

Change password pl/sql?

From: Kirmo Uusitalo <kirmo.uusitalo.no.spam_at_iki.fi>
Date: Wed, 12 Nov 2003 15:12:42 +0200
Message-ID: <nrb4rvo8it3q7ug7i9bbbahp6rm6qu8u4v@4ax.com>


Hi,

I'm looking for a pl/sql procedure/function that changes user's password if the given old_password matches user's current password in Oracle.

Something like:

function change_passwd(

p_username in string, -- => username to change password for
p_old_passwd in string, -- => user's current password
p_new_password in string) -- => user's new password
return integer  -- return 0 for succesful operation, 

--return 1=> incorrect old_password
--return 2 => p_username doesn't exist
--return 3 => bad p_new_password

I know the encrypted password for all users is stored in sys.dba_users table's password column but I don't know how to encrypt p_new_password to match the encrypted password.

Any help is greatly appreciated.

Regards,

Kirmo Uusitalo Received on Wed Nov 12 2003 - 07:12:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US