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数据库将使用默认配置文件中定义的值。默认情况下,默认配置文件中的所有参数都设置为无限制。如果您没有更改默认配置文件中的默认设置,那么数据库将该参数的值视为无限制。
  如果将这两个参数设置为无限制,则数据库将忽略这两个参数。如果忽略这两个参数,则为默认值。

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

转载于:http://blog.itpub.net/30126024/viewspace-2150882/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值