【翻译自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.
时间: 2024-10-06 13:40:55

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

【翻译自mos文章】当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误

当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误 翻译自mos文章:When NFS Server Is Down, Oracle Server Freezes With No Errors In Alert Log File (文档 ID 1316251.1) 适用于: Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later   [Release: 10.2 and later

【翻译自mos文章】修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法

修改被 DB Control 监控的db (10g and 11g)中 dbsnmp密码的方法 参考原文: How to Change DBSNMP Password in Database 10g and 11g Monitored by DB Control (Doc ID 259387.1) 适用于: Enterprise Manager for Oracle Database - Version 10.1.0.4 to 11.2.0.3 [Release 10.1 to 11.2] In

【翻译自mos文章】改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法

改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法 参考原文: How To Change the Password of the Database User Sysman (DB Control Repository Schema) (Doc ID 259379.1) 适用于: Enterprise Manager for Oracle Database - Version 10.1.0.2 to 11.2.0.3 [Release 10

【翻译自mos文章】oracle密码管理策略

oracle密码管理策略 参考原文: Oracle Password Management Policy (Doc ID 114930.1) 细节: 密码管理通过使用profile来建立. 当密码过期后,如果user有能力独立地从 end-user application(前台业务软件)修改密码的话,通常的推荐是只指派给这些schemas 一个profile,该profile有  password aging an expiration features . 通常这意味着application(

【翻译自mos文章】在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information)

在重建控制文件之后,丢失了数据库补充日志信息(Missed Database Supplemental Log Information) 参考原文: Missed Database Supplemental Log Information After Recreate Controlfile In 10g Database. (Doc ID 1474952.1) 适用于: Oracle Server - Enterprise Edition - Version 10.1.0.2 and late

【翻译自mos文章】Main Note - ogg的 Supplemental Logging and TRANDATA

Main Note - ogg的 Supplemental Logging and TRANDATA 参加原文: Main Note - Supplemental Logging and TRANDATA for OGG (Doc ID 1537838.1) 适用于 Oracle GoldenGate - Version 9.5_EA and later Information in this document applies to any platform. 目的 从oracle redo l

【翻译自mos文章】使用asmcmd命令在本地和远程 asm 实例之间 拷贝asm file的方法

使用asmcmd命令在本地和远程 asm 实例之间 拷贝asm file的方法 参考原文: How to Copy asm files between remote ASM instances using ASMCMD command (Doc ID 785580.1) 适用于: Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.2 [Release 11.1 to 11.2] Information in thi

【翻译自mos文章】SYS_OP_C2C 导致的全表扫描(fts)/全索引扫描

SYS_OP_C2C 导致的全表扫描(fts)/全索引扫描 参考原文: SYS_OP_C2C Causing Full Table/Index Scans (Doc ID 732666.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.1.0.1 [Release 10.1 to 12.1] Information in this document applies to any platform. This

【翻译自mos文章】怎么样kill 一个被挂起的自动物化视图刷新job?

怎么样kill 一个被挂起的自动物化视图刷新job? 参考原文:How to kill a hung automated materialized view refresh job (文档 ID 341842.1) 适用于: Oracle Server - Enterprise Edition - Version 8.1.5.0 to 10.2.0.5 [Release 8.1.5 to 10.2] Information in this document applies to any plat