Connecting Oracle times Error: ora-28001:the Password has expired

Source: Internet
Author: User

An exception occurred while debugging a Web project:

    1. java.sql.sqlexception:ora-28001:the Password has expired

Check online, is the reason why the oracle11g password expires

Connect Oracle, log in as Oracle user, enter the following command

    1. SELECT * from dba_profiles where profile=' DEFAULT ' and resource_name=' password_life_time ';

The results show:

    1. Profile
    2. ------------------------------------------------------------
    3. Resource_name
    4. ------------------------------------------------------------
    5. Resource_type
    6. ----------------
    7. LIMIT
    8. ------------------------------------------------------------
    9. DEFAULT
    10. Password_life_time
    11. PASSWORD
    12. 180
    13. ------------------------------------------------------------

The result shows that the password is valid for 180 days

Enter the command:

    1. Alter profile default limit password_life_time unlimited;
    2. Commit

Execute again:

    1. SELECT * from dba_profiles where profile=' DEFAULT ' and resource_name=' password_life_time ';

The results are shown as:

    1. Profile
    2. ------------------------------------------------------------
    3. Resource_name
    4. ------------------------------------------------------------
    5. Resource_type
    6. ----------------
    7. LIMIT
    8. ------------------------------------------------------------
    9. DEFAULT
    10. Password_life_time
    11. PASSWORD
    12. UNLIMITED
    13. ------------------------------------------------------------

You need to change the password after doing the above steps, or else the password has expired exception will appear

command to change Password

    1. Alter user Xxxuser identified by Welcome1;

If the account is locked, you need to unlock the command

      1. Alter user Xxxuser identified by Oracle account unlock;

Connecting Oracle times Error: ora-28001:the Password has expired

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.