Oracle ORA-28002: the password will expire within 10 days


Oracle ORA-28002: the password will expire within 10 days解决方法如下

1、查询此用户的perfile文件

select username,profile from dba_users where username='SCOTT';

2、根据文件名查询值

select * from dba_profiles where profile='DEFAULT';

3、修改密码过期时间password_life_time  为unlimited

alter profile default limit password_life_time unlimited;

4、查询密码复杂度验证 PASSWORD_VERIFY_FUNCTION  VERIFY_FUNCTION

alter profile default limit PASSWORD_VERIFY_FUNCTION  NULL;(不采用复杂度验证)

5、修改密码为原来密码

alter user scott identified by tiger; 

上面修改默认的值可能会影响其他,建议创建一个perfile文件 绑定到用户

相关内容