Use Sqlplus connection hint: ora-28002:the password'll expire within 7 days

Source: Internet
Author: User
Tags sqlplus

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:

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.

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 SYSDBA
Alter 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.

Use Sqlplus connection hint: ora-28002:the password'll expire within 7 days

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.