Oracle 11g password expired

Source: Internet
Author: User
Turn: http://blog.chinaunix.net/u/26040/showart_2301514.html Oracle 11g password expired

Problem description]

When you log on to the Oracle database with sqlplus, the message "ORA-28002: the password will expire 7 days later" is displayed ".

 

[Cause/trigger factor]

This is because "password_life_time = 180 days" is set in the default profile in oracle11g by default.

[Impact and risk]

Impact

After the password expires, the business process has an exception connecting to the database, affecting service usage.

Problem occurrence frequency

After the database password expires, the connection will fail once the business process restarts.

[Solution]

Follow these steps:

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';

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

SQL> alter profile default limitPassword_life_timeUnlimited;

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

4. After modification, the account has not been prompted ORA-28002 warning will not again encounter the same prompt;

The account that has been prompted must change the password again, for example:

$ Sqlplus/As sysdba

SQL> alter userSMSCIdentified by <original password> ---- No new password is required

The oracle11g startup parameter resource_limit takes effect regardless of whether it is set to false or true. Therefore, you must modify the password in the preceding method. The preceding account name must be changed based on the actual account name.

 

II,Problem description]

Recently H Bureau point feedback, using sqlplus login Short Message Oracle Database prompt "ORA-28000: account is locked ".

 

[Cause/trigger factor]

It is confirmed that "failed_login_attempts = 10 times" is set in the default profile in oracle11g by default. This problem occurs when the number of incorrect passwords reaches the set value.

[Impact and risk]

Impact

After the account is locked, the business process has an exception connecting to the database, affecting service usage.

Problem occurrence frequency

After the database account is locked, the connection fails once the business process is restarted.

[Solution]

Follow these steps:

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 ='Failed_login_attempts';

3. Change the number of failed logon attempts from the default 10 to "unlimited ":

SQL> alter profile default limitFailed_login_attemptsUnlimited;

4. After the modification, the user who has not been prompted the ORA-28000 warning will not encounter the same prompt again;

The locked account must be unlocked, for example:

$ Sqlplus/As sysdba

SQL> alter userSMSCIdentifiedOracleAccount unlock;

5. After modification, the default profile should be as follows:

SQL> select * From dba_profiles where dba_profiles.profile = 'default ';

Profile resource_name resource_type limit

-------------------------------------------------------------------------------------------------

Default failed_login_attempts password Unlimited

Default password_life_time password Unlimited

 

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

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.