Resetting / unexpiring an Oracle user
If you need to reset a user's password, here is a simple sample.
Please note the double quotes around the password.
It also requires the user to change their password on first login.
select username,account_status from dba_users where username = 'JOEUSER'; alter user JOEUSER identified by "expired.567"; alter user JOEUSER password expire; alter user JOEUSER account unlock; select username,account_status from dba_users where username = 'JOEUSER';
No comments:
Post a Comment