ORA-28001: the password has expired Solution

Source: Internet
Author: User

ORA-28001: the password has expired Solution

ORA-28001: the password has expired
Cause: The user "s account has expired and the password needs to be changed
Action: change the password or contact the DBA

An error is reported when the program connects to the DB Server:
13-04-22 17:32:15 [ERROR] com. sohu. game. Main {Main. java: 102}-statistics failed:
Java. SQL. SQLException: ORA-28001: the password has expired

At Oracle. jdbc. dbaccess. DBError. throwSqlException (DBError. java: 134)
At oracle. jdbc. ttc7.TTIoer. processError (TTIoer. java: 289)
At oracle. jdbc. ttc7.O3log. receive2nd (O3log. java: 496)

Solution:
View account information:
SQL> select USERNAME, ACCOUNT_STATUS, LOCK_DATE, EXPIRY_DATE, password, CREATED from dba_users where username = upper ('xxx ');

USERNAME ACCOUNT_ST LOCK_DATE EXPIRY_DATE CREATED
----------------------------------------------------------------------------------------------------------------------
Xxx EXPIRED 14:44:43 14:20:15

View the PASSWORD_LIFE_TIME settings of the Account:
SQL> select * from dba_profiles where profile like '% xxx % ';
PROFILE RESOURCE_NAME RESOURCE LIMIT
--------------------------------------------------------------------------------------------------------------
PF_xxx PASSWORD_LIFE_TIME PASSWORD DEFAULT
View the default settings of the system PROFILE file:
SQL> select * from dba_profiles where profile like '% DEFAULT % ';
PROFILE RESOURCE_NAME RESOURCE LIMIT
--------------------------------------------------------------------------------------------------------------
DEFAULT PASSWORD_LIFE_TIME PASSWORD 180
Set PASSWORD_LIFE_TIME. The default value is 180 days;
Modify the user's PASSWORD_LIFE_TIME limit:
SQL> alter profile DEFAULT limit PASSWORD_LIFE_TIME unlimited;
Profile altered.
Reset the user password:
SQL> alter user xxx identified by xxx;
User altered.
SQL> select USERNAME, ACCOUNT_STATUS, LOCK_DATE, EXPIRY_DATE, password, CREATED from dba_users where username = upper ('xxx ');
USERNAME ACCOUNT_ST LOCK_DATE EXPIRY_DATE CREATED
----------------------------------------------------------------------------------------------------------------------
Xxx open 2012-10-17 14:20:15
The account status returns to normal.

Note:
Because this account is used by the application, you cannot change the password. When using alter user... identified by, you need to use the current password of this account for operations.

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

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.