Oracle password expired ORA-28002: solution to Password Expiration 7 days later

Source: Internet
Author: User

Today, the partner of Fuzhou University said that our database login password has expired. They cannot log on to the platform now. Hope to be resolved.

"ORA-28002: the password will expire in 7 days".

Cause: In oracle11g, "default profile" is set by default"PASSWORD_LIFE_TIME = 180As a result, the password of the oracle user must be changed within 180 days, or the connection will fail when the database is started.

Follow these steps to resolve the oracle Password Expiration:

1. Check the user's proifle, which is generally default:

SQL> SELECT username, PROFILE FROM dba_users;

2. view the password validity period settings of the specified profile (such as default:

SQL> SELECT * FROM dba_profiles s WHERE s. profile = 'default' AND resource_name = 'password _ LIFE_TIME ';

(If this is the case, it may prompt "You have not selected the bank of china". In fact, this is the case.

SELECT * FROM dba_profiles WHERE resource_name = 'password _ LIFE_TIME ';

That's all about me)

3. Change the password validity period from the default 180 days to "unlimited ":

SQL>Alter profile default limit PASSWORD_LIFE_TIME UNLIMITED;

If you want to change it to a limited value, for example, 60 days:

SQL> alter profile default limit PASSWORD_LIFE_TIME 60;

After modification, the database does not need to be restarted and takes effect immediately.

Other ideas

View the user's profile, which is generally DEFAULT

SQL> select * from dba_profiles where resource_type = 'Password ';

 

Cancel password management:

SQL> alter profile DEFAULT limit unlimited;
For example:
SQL> alter profile DEFAULT limit password_reuse_time unlimited;

Stop password verification function:

SQL> alter profile DEFAULT limit password_verify_function null;

Create a user-specific profile:

Create profile test LIMIT
SESSIONS_PER_USER UNLIMITED
CPU_PER_SESSION UNLIMITED
CPU _ per_call 3000
CONNECT_TIME 45
LOGICAL_READS_PER_SESSION DEFAULT
LOGICAL_READS_PER_CALL 1000
PRIVATE_SGA 15 K
COMPOSITE_LIMIT 5000000;

To change:

SQL> alter profile test limit PASSWORD_LIFE_TIME 60;

Change User profile

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.