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