ORA-28002: the password will expire within 7 days Solution

Source: Internet
Author: User

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:

SELECT username,profile FROM dba_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.

ALTER PROFILE DEFAULT LIMIT 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 / as sysdbaalter user system identified by root;

The password will no longer expire when you connect to the data again.

If it is another user, use another user name.

alter user scott identified by tiger;  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.