ORA-28002: the password will expire within 6 days提示

oracle数据库提示

执行请求的操作时遇到数据库警告:ORA-28002: the password will expire within 6 days
28002. 00000 -  "the password will expire within %s days"
*Cause:    The user's account is about to expire and the passwordneeds to be changed
*Action:   change the password or contact the DBA
供应商代码 28002

如图:
在这里插入图片描述
这是提示密码快过期了。

处理方法:
将默认密码策略设为不限制,默认是180天过期。
登录

sqlplus / as sysdba

修改默认策略

alter profile default limit password_life_time unlimited;

另外最好也修改一下默认登录失败次数,改为不限制;

alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;

查看结果

select * from dba_profiles;

如图
在这里插入图片描述

补充

如果在更改密码策略前就已经有的账号,要在修改密码策略后,重新修改一次用户密码,旧的用户密码策略才会更新。

alter user 用户名 identified by 密码;

这里可以仍用旧密码,这样就不用更改密码了。
如图查看用户信息:
在这里插入图片描述
查看用户信息的表

select * from dba_users; 
select * from all_users; 
select * from user_users;


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部