注:本次测试在11G环境下,其他版本均适合
1、现状
SQL> conn scott/tiger
ERROR:
ORA-28002: the password will expire within 7 days

2、处理方法
查看用户的 profile(一般是 default)
select username,profile from dba_users;
查看 default 概要文件设置的密码有效期(默认 180 天)
select * from dba_profileswhere resource_name ='PASSWORD_LIFE_TIME'and profile='DEFAULT';
将密码有效期设置为无限制
SQL> alter profile default limit password_life_time unlimited;SQL> alter user scott identified by tiger;SQL> conn scott/tigerConnected.此时正常连接
文章转载自IT 邦德,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




