Re: Changing Oracle passwords by end users
From: Jonathan Lewis <Jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 20 Dec 1994 23:36:52 +0000
Message-ID: <787966612snz_at_jlcomp.demon.co.uk>
Date: Tue, 20 Dec 1994 23:36:52 +0000
Message-ID: <787966612snz_at_jlcomp.demon.co.uk>
Re: changing Oracle passwords in a 'unix-like' way.
select encoded password from user$ into memory;
alter user identified by old_password;
select encoded password from user$ into memory;
compare the two encoded values: if they match proceed.
if they do not match, issue:
alter user XXX identified by values :old_encoded_password;
to put the password back to what it was.
Then do the
alter user XXX identified by :new_password;
The bullet-proofing, and cosmetics are left as an exercise.
Hope this gets you started.
-- Jonathan LewisReceived on Wed Dec 21 1994 - 00:36:52 CET