Today, when sqlplus is used
========================================================== ========
Error:
ORA-28002: the password will expire within 7 days
========================================================== ========
The system prompts that the password is about to expire. As the test database to be connected, the system decides to set the password to never expire.
1. View Your Profile settings:
SelectUsername, ProfileFromDba_users;
Generally, the user profile is set to default.
2. View password_life_time settings in 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. Modify password_life_tim settings in dba_profiles to ulimited.
AlterProfileDefaultLimit password_life_time unlimited;
After modification, the settings take effect immediately. You do not need to restart the database, and the password will never expire.
4. The account that has been reported that the password is about to expire must change the password again (DBA permission required)
Take the System user as an Example
Sqlplus/ AsSysdbaAlter UserSystem identifiedByRoot;
The password will no longer expire when you connect to the data again.
If it is another user, use another user name.
Alter UserScott identifiedByTiger;