暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle密码过期处理

IT 邦德 2021-07-20
430

注:本次测试在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';
      复制

      将密码有效期设置为无限制

        SQL> alter profile default limit password_life_time unlimited;
        SQL> alter user scott identified by tiger;
        SQL> conn scott/tiger
        Connected.
        此时正常连接
        复制

         





        文章转载自IT 邦德,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

        评论