java.sql.SQLException: ORA-28001: the password has expired
2014-08-07 12:24
603 查看
今天打开网站的时候出现404,
然后到服务器调试WEB项目,查看日志,发现出现异常:java.sql.SQLException: ORA-28001: the password has expired
以前没碰到过,就到网上查了下,得知是数据库密码过期
链接PL/SQL 输入oracle用户名和密码登陆,弹出一个输入框,要求输入new password和验证码
就输入新密码和验证码,就进入了;
登陆成功后:
select * from dba_profiles where profile='DEFAULT' and reso
4000
urce_name='PASSWORD_LIFE_TIME';
显示结果为:
显示结果是密码的生命周期是180天,
若要将其设置为生命周期无限制可以执行下面语句:
alter profile default limit password_life_time unlimited;
commit;
进行以上步骤之后需要改变密码,否则还会出现password has expired异常
改变密码的命令
alter user XXXUSER identified by Welcome1;
如果账号被锁住,则需要解锁命令
alter user XXXUSER identified by oracle account unlock;
再次调试,问题解决
然后到服务器调试WEB项目,查看日志,发现出现异常:java.sql.SQLException: ORA-28001: the password has expired
以前没碰到过,就到网上查了下,得知是数据库密码过期
链接PL/SQL 输入oracle用户名和密码登陆,弹出一个输入框,要求输入new password和验证码
就输入新密码和验证码,就进入了;
登陆成功后:
select * from dba_profiles where profile='DEFAULT' and reso
4000
urce_name='PASSWORD_LIFE_TIME';
显示结果为:
显示结果是密码的生命周期是180天,
若要将其设置为生命周期无限制可以执行下面语句:
alter profile default limit password_life_time unlimited;
commit;
进行以上步骤之后需要改变密码,否则还会出现password has expired异常
改变密码的命令
alter user XXXUSER identified by Welcome1;
如果账号被锁住,则需要解锁命令
alter user XXXUSER identified by oracle account unlock;
再次调试,问题解决
相关文章推荐
- oracle 账号过期的解决办法 ORA-28001 ,28002 the password has expired
- 解决"ORA-28001: the password has expired”
- ORACLE 11G默认密码期限ORA-28001: the password has expired解决方法
- ORA-28001: the password has expired解决方法
- [ORA-28001: the password has expired]的处理
- ORA-28001: the password has expired
- Oracle提示错误消息ORA-28001: the password has expired
- ORA-28001: the password has expired解决方法
- ORA-28001: the password has expired
- ORA-28001: the password has expired
- ORA-28001: the password has expired解决方法
- 连接oracle 11g出错error:ORA-28001:the password has expired;
- ORA-28001: the password has expired
- ORA-28001: the password has expired
- 解决ORA-28001 the password has expired
- Oracle提示错误消息ORA-28001: the password has expired
- Oracle提示错误消息ORA-28001: the password has expired
- ORA-28001: the password has expired
- Oracle提示错误消息ORA-28001: the password has expired
- ORA-28001: the password has expired解决方法