您好,欢迎访问一九零五行业门户网

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

ora-28002: the password will expire within 7 days 解决方法
今天在使用sqlplus时出现
===============================================
error:
ora-28002: the password will expire within 7 days
===============================================
提示密码快过期了,由于需要连接的测试数据库,所以决定将密码设置成永不过期。
1.查看用户的profile设置:
select username,profile from dba_users;
一般用户的profile设置都为default。
2.查看系统profiles中password_life_time设置。
dba_profiles s resource_name;
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;
修改后设置立即生效,不需要重启数据库,此时密码永远不会过期。
4.已经被报告了密码快要过期的账户必须再改一次密码(需要dba权限)
以system用户为例
sqlplus / as sysdbaalter user system identified by root;
再连接数据再也不会出现密码过期的事情了。
如果是其他用户的话,,那么就使用其他用户名。
alter user scott identified by tiger;
其它类似信息

推荐信息