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 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;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

okman312

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值