taaz
asked on
update user's password
how to update or set a new password expiry_date for a user whose password has expired in oracle
both using oem and through sqlplus.
regards
both using oem and through sqlplus.
regards
ASKER
How to change the user's password or change the profile of the user?
thanks
thanks
What about changing the password to what it already is?
select password from dba_users where username = '<user>';
alter user <user> identified by values '<pass>';
Use the encrypted password returned by the first quey in the second statement to set the password.
I cannot test this on my system because we have a password validation function that requres the passwords be different.
select password from dba_users where username = '<user>';
alter user <user> identified by values '<pass>';
Use the encrypted password returned by the first quey in the second statement to set the password.
I cannot test this on my system because we have a password validation function that requres the passwords be different.
ASKER
can I just use
alter user abc password expire;
the thing is there is a user profile which is assigned to users and one of the user's password is expired
how to update that?
alter user abc password expire;
the thing is there is a user profile which is assigned to users and one of the user's password is expired
how to update that?
ASKER
Johnsone thnaks a lot but will this set up a new expiry date for a user's password?
My guess is that it should. I cannot confirm that because we have a password validation function in place that does not allow that statement because you are changing the password to the same thing it currently is.
Try it. There is no down side. The worst that can happen is you change the password to what it is already set to.
Try it. There is no down side. The worst that can happen is you change the password to what it is already set to.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Thanks for the confirmation. I couldn't test it without changing the profile, which would reset the expire date and nullify the test.
ASKER
So if a useer abc is unable to login because the passwd is expired.
To enable the password we will
reset the password like
alter user abc password expire;
and now when the next time user try to log in he would be asked to enter the new password. is that right? would his pssword expire after 90 days?.
or copy the original password and then change the password to new and then change it back to the original like
select password,account_status from dba_users
where username = 'abc';
copy the password and save it
alter user abc identified by 'new_passwprd';
alter user abc identified by 'original_password';
thanks
To enable the password we will
reset the password like
alter user abc password expire;
and now when the next time user try to log in he would be asked to enter the new password. is that right? would his pssword expire after 90 days?.
or copy the original password and then change the password to new and then change it back to the original like
select password,account_status from dba_users
where username = 'abc';
copy the password and save it
alter user abc identified by 'new_passwprd';
alter user abc identified by 'original_password';
thanks
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I really appreciate to both of you.
You guys are excellent.
You guys are excellent.
glad we could help
you'll have to change the user's password or change the profile of the user