ITPub博客

首页 > 数据库 > Oracle > Oracle密码过期处理(ORA-28002)

Oracle密码过期处理(ORA-28002)

原创 Oracle 作者:wddwr7307914 时间:2021-04-27 22:40:48 0 删除 编辑


注:本次测试在11G环境下,其他版本均适合


1、报错现象
SQL> conn scott/tiger
ERROR:
ORA-28002: the password will expire within 7 days


2、处理方法
查看用户的 profile(一般是 default)
 select username,profile from dba_users;
查看 default 概要文件设置的密码有效期(默认 180 天)
select * from dba_profiles   where resource_name ='PASSWORD_LIFE_TIME' and profile='DEFAULT'; 
将密码有效期设置为无限制
 alter profile default limit password_life_time unlimited;


SQL> alter user scott identified by tiger;     --此处一定要修改下密码


SQL> conn scott/tiger
Connected.


此时连接发现正常连接

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69947868/viewspace-2770209/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: MySQL临时表
请登录后发表评论 登录
全部评论
中国DBA联盟(ACDU)成员,Oracle PostgreSQL ACE,CSDN博客专家及B站知名UP主,全网粉丝10万+,目前服务于工业互联网,擅长主流Oracle、MySQL、PG、高斯及Greenplum备份恢复,安装迁移,性能优化、故障应急处理。

注册时间:2020-06-13

  • 博文量
    203
  • 访问量
    213015