I will explain Oracle Password Expiration in this post. Sometimes you can get ” ORA-28002 The Password Will Expire in 7 Days Errors ” error when you log in database with application user.
Oracle Password Expiration
So How to Fix ORA-28002 The Password Will Expire in 7 Days Errors ?
To solve this error you can change User Profile Password Reuse time and Life time to the unlimited like following.
alter profile DEFAULT limit PASSWORD_REUSE_TIME unlimited; alter profile DEFAULT limit PASSWORD_LIFE_TIME unlimited;
Check Oracle user account status and expiry date like following.
select username, account_status, EXPIRY_DATE, profile from dba_users where username='DEVECI';
Existing user account status and expiry_date will not change, so you should change user password with original hash value to activate these changes.
To take hash password of user, execute following script.
SELECT password, spare4 FROM SYS.USER$ WHERE name = 'DEVECI'; 4CD10ECBE9E0C21A
You should change related user password with its hash value like following.
ALTER USER DEVECI IDENTIFIED BY VALUES '4CD10ECBE9E0C21A';
Or you can set new password for the user.
alter user username identified by new_password;
Thus, Related Oracle User password lifetime will be unlimited and it will not be expired.
Do you want to learn Oracle Database for Beginners, then read the following articles.
1,345 views last month, 7 views today