【翻译自mos文章】当sec_case_sensitive_logon = true后,怎么启用大小写混合的密码?

当sec_case_sensitive_logon = true后,怎么启用大小写混合的密码?

来源于:
How To Enforce Mixed Case Passwords When sec_case_sensitive_logon = true? (文档 ID 1307555.1)

适用于:
Oracle Server - Enterprise Edition - Version 11.1.0.6 to 11.2.0.2 [Release 11.1 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 20-SEP-2012***

目标:
在设置 sec_case_sensitive_logon = true之后,怎么为database中的user启用大小写混合的密码

解决方案:
The supplied password verify function in the file $ORACLE_HOME/rdbms/admin/utlpwdmg.sql  does not  enforce that the password has both upper and lower case characters. To achieve this, it is possible to modify the function as follows:

 cp utlpwdmg.sql utlpwdmg_modif.sql
 vi utlpwdmg_modif.sql

 Add the following code:

-- Check the password uses mixed case



if upper(password) = password or lower(password) = password then

raise_application_error(-20012, 'Password is not mixed case');

end if;

Then run the script utlpwdmg_modif.sql as user SYS and to test:

create profile test_profile limit password_verify_function verify_function_11g;
 create user test identified by test profile test_profile;

 connect test/test

 SQL> alter user test identified by "kachel1#" replace test;
 alter user test identified by "kachel1#" replace test
 *
 ERROR at line 1:
 ORA-28003: password verification for the specified password failed
 ORA-20012: Password is not mixed case


 SQL> alter user test identified by "KACHEL1#" replace test;
 alter user test identified by "KACHEL1#" replace test
 *
 ERROR at line 1:
 ORA-28003: password verification for the specified password failed
 ORA-20012: Password is not mixed case


 SQL> alter user test identified by "Kachel1#" replace test;

 User altered.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值