Disclaimer:
This article transfers from the network article, reproduced this article only for the personal collection, shares the knowledge, if has the infringement, please contact the blogger to delete.
Original Xwdreamer
Original address: Error: ora-28002:the password would expire within 7 days resolution appears today when using Sqlplus
===============================================
ERROR:
Ora-28002:the password'll expire within 7 days
===============================================
Prompt password expires, due to the need to connect the test database, so decided to set the password to never expire.
1. View the profile settings for the user:
SELECT username,profile from Dba_users;
The profile settings for the general user are default.
2. Review the Password_life_time settings in the system profiles.
SELECT * from Dba_profiles s WHERE s.profile= ' DEFAULT ' and resource_name= ' password_life_time ';
Profile Resource_name RESOURCE LIMIT
------------------------------ -------------------------------- ------------------------------------------------
DEFAULT password_life_time PASSWORD 180dys
==============================================================
3. Change the settings of Password_life_tim in Dba_profiles to ulimited.
ALTER profile DEFAULT LIMIT password_life_time UNLIMITED;
After the modification, the settings take effect immediately and do not need to restart the database, at which time the password will never expire.
4. The account that has been reported to expire password must change password again (DBA authority required)
Take system users as an example
Sqlplus/as Sysdbaalter User system identified by root;
No longer will the password expire when the data is connected again.
If it is another user, then use a different user name.
Alter user Scott identified by Tiger;
"Reprint" Error: ora-28002:the password would expire within 7 days solution