ORA-28002: the password will expire解決方法

muxinqing發表於2015-10-17

[oracle@fj ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sat Oct 17 08:42:43 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

--查使用者密碼有效期預設時180天需要改成UNLIMITED永久
SQL>SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD
180

--修改密碼永不過期
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
profile altered.

--線上引數變成永久
SQL> SELECT * FROM dba_profiles s WHERE s.profile='DEFAULT' AND resource_name='PASSWORD_LIFE_TIME';

PROFILE                        RESOURCE_NAME                    RESOURCE
------------------------------ -------------------------------- --------
LIMIT
----------------------------------------
DEFAULT                        PASSWORD_LIFE_TIME               PASSWORD
UNLIMITED

--注意需要重新修改密碼才會生效
SQL> alter user mxq identified by woami;

User altered.

----------------------------the end----------------------------------

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29065182/viewspace-1814623/,如需轉載,請註明出處,否則將追究法律責任。

相關文章