Caused by: java.sql.SQLException: ORA-28001: the password has expired_ [Sanitized]

Caused by: java.sql.SQLException: ORA-28001: the password has expired_ [Sanitized]

今天在运行eclipse的时候出现如下错误

Caused by: java.sql.SQLException: ORA-28001: the password has expired_ [Sanitized]

此错误是因为oracle的密码过期时间被设置为了180天,或其他数字

因此我们可以做如下操作

1,登录:sqlplus / as sysdba

2,查看:select * from dba_profiles where profile='DEFAULT' and resource_name='PASSWORD_LIFE_TIME';

我们可以看到密码过期时间是180天

3,设置不过期:alter profile default  limit password_life_time unlimited;

4,最后需要重新设置下密码即可,否则不会生效

alter user users identified by pwd;


爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情Blog Img