码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 11g 错误:ORA-28002: the password will expire within 7 days 解决方法

时间:2014-05-03 17:27:50      阅读:460      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   code   color   rgb   

ERROR:ORA-28002: the password will expire within 7 days

错误是提示密码快过期了,有两个办法解决这个问题。

一. 修改已经报错用户的密码

已经被报告了密码快要过期的账户必须再改一次密码(需要DBA权限)

以system用户为例

sqlplus / as sysdba
alter user system identified by root;

再连接数据再也不会出现密码过期的事情了。

如果是其他用户的话,那么就使用其他用户名。

alter user scott identified by tiger;  
二. 将密码设为永不过期

1.查看用户的profile设置:

SELECT username,profile FROM dba_users;  

一般用户的profile设置都为DEFAULT。

2.查看系统profiles中PASSWORD_LIFE_TIME设置。

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                180dys

==============================================================

3.修改DBA_PROFILES中PASSWORD_LIFE_TIM的设置,改为ULIMITED。

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;  

修改后设置立即生效,不需要重启数据库,此时密码永远不会过期。


Oracle 11g 错误:ORA-28002: the password will expire within 7 days 解决方法,布布扣,bubuko.com

Oracle 11g 错误:ORA-28002: the password will expire within 7 days 解决方法

标签:style   blog   class   code   color   rgb   

原文地址:http://blog.csdn.net/yechaodechuntian/article/details/24887873

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!