ITPub博客

首页 > 数据库 > Oracle > ORA-28002: the password will expire解决方法

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

原创 Oracle 作者:muxinqing 时间:2015-10-17 08:52:32 0 删除 编辑

[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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 邮件告警中心
请登录后发表评论 登录
全部评论

注册时间:2014-01-14

  • 博文量
    143
  • 访问量
    1202338