温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

ORACLE如何设置更改密码时不能使用最近5次密码

发布时间:2021-11-10 09:31:45 来源:亿速云 阅读:652 作者:小新 栏目:关系型数据库

这篇文章主要为大家展示了“ORACLE如何设置更改密码时不能使用最近5次密码”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“ORACLE如何设置更改密码时不能使用最近5次密码”这篇文章吧。

ORACLE更改密码时不能使用最近5次密码的设置方法

个人实验过的:比如修改window域账号密码,嫌总换密码导致记不住,但是公司设置了修改密码时不能使用最近5次的密码,个人小诀窍每次修改密码时都一次性修改5次,第5次时就使用原来的那个密码,可以修改成功,这样就可以使用5次之前的密码了,也就避免了老换密码,但是ORACLE就不能这样了,因为还有一个参数PASSWORD_REUSE_TIME在起作用,如果只改了PASSWORD_REUSE_MAX而没有修改PASSWORD_REUSE_TIME还是不能重复使用之前的密码


ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_MAX 5
ALTER PROFILE DEFAULT LIMIT PASSWORD_REUSE_TIME 30
--意思是密码修改次数达到5次后,并且密码修改过后的30天,才能重复使用之前的密码



PASSWORD_REUSE_TIME and PASSWORD_REUSE_MAX  
  These two parameters must be set in conjunction with each other. PASSWORD_REUSE_TIME specifies the number of days before which a password cannot be reused. PASSWORD_REUSE_MAX specifies the number of password changes required before the current password can be reused. For these parameter to have any effect, you must specify a value for both of them.
  If you specify a value for both of these parameters, then the user cannot reuse a password until the password has been changed the number of times specified for PASSWORD_REUSE_MAX during the number of days specified for PASSWORD_REUSE_TIME.
  For example, if you specify PASSWORD_REUSE_TIME to 30 and PASSWORD_REUSE_MAX to 10, then the user can reuse the password after 30 days if the password has already been changed 10 times.
  If you specify a value for either of these parameters and specify UNLIMITED for the other, then the user can never reuse a password.
  If you specify DEFAULT for either parameter, then Oracle Database uses the value defined in the DEFAULT profile. By default, all parameters are set to UNLIMITED in the DEFAULT profile. If you have not changed the default setting of UNLIMITED in the DEFAULT profile, then the database treats the value for that parameter as UNLIMITED.
  If you set both of these parameters to UNLIMITED, then the database ignores both of them. This is the default if you omit both parameters.
  这两个参数必须同时设置。password_reuse_time指定密码不能重复使用之前的天数。password_reuse_max指定当前密码可重复使用之前的更改次数。您必须为这个两个参数同时指定值,这样这些才能产生影响。
  如果你为这个两个参数同时指定值,则用户不能重复使用一个密码直到密码已达到password_reuse_max指定的更改次数并且已经超过了参数password_reuse_time指定的天数。
  例如,如果你指定的password_reuse_time 30和password_reuse_max 10,如果密码修改了10次并且密码修改30天后,用户可以重用密码
  如果为其中一个参数指定一个值,并为另一个指定无限,那么用户就不能再重用密码了。
  如果为这两个参数指定默认值,则Oracle数据库将使用默认配置文件中定义的值。默认情况下,默认配置文件中的所有参数都设置为无限制。如果您没有更改默认配置文件中的默认设置,那么数据库将该参数的值视为无限制。
  如果将这两个参数设置为无限制,则数据库将忽略这两个参数。如果忽略这两个参数,则为默认值。

以上是“ORACLE如何设置更改密码时不能使用最近5次密码”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI