"Reprint" Error: ora-28002:the password would expire within 7 days solution

Source: Internet
Author: User



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

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.