Today one user written to me when he
is trying to connect the database through toad getting the following
error: ORA-28002: the password will expire
within 5 days
Initially I have given him solution
to set the PASSWORD_LIFE_TIME of the profile assigned user to UNLIMITED then change the password to avoid it permanently or
simply change the password to avoid it temporarily.
SQL> SELECT profile
FROM dba_users WHERE username = 'HRMS';
SQL> SELECT
resource_name, LIMIT from dba_profiles where
profile='DEFAULT';
SQL> SELECT * from
dba_profiles where profile='DEFAULT';
SQL> ALTER PROFILE
DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
SQL> SELECT
ACCOUNT_STATUS FROM DBA_USERS WHERE
USERNAME='HRMS';
Then connect with particular
accounts and change the password.
SQL> PASSWORD
Changing password for
HRMS
Old password:
New password:
Retype new password:
Comments
Post a Comment