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 password
needs 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;