Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle: how to set user password unexpire? [duplicate]

Tags:

sql

oracle

There is some construction

ALTER USER scott PASSWORD EXPIRE

But how can I similair set password to unexpired state?

like image 724
fvital Avatar asked Nov 19 '09 20:11

fvital


1 Answers

If you create a user using a profile like this:

CREATE PROFILE my_profile LIMIT
       PASSWORD_LIFE_TIME 30;
ALTER USER scott PROFILE my_profile;

then you can change the password lifetime like this:

ALTER PROFILE my_profile LIMIT
  PASSWORD_LIFE_TIME UNLIMITED;

I hope that helps.

like image 125
Philip Schlump Avatar answered Sep 29 '22 05:09

Philip Schlump