当前位置:   article > 正文

Oracle复杂度设置_oracle 密码复杂度设置

oracle 密码复杂度设置

概述:

Oracle的复杂度通过参数PASSWORD_VERIFY_FUNCTION设置,通常该参数使用数据库自带的脚本utlpwdmg.sql配置,不同版本的数据库脚本自带的复杂度也不尽相同,当然也可以自己配置脚本文件。

以下测试使用的是Oracle Database 12c Enterprise Edition Release 12.2.0.1.0

一、查看复杂度

select * from dba_profiles where resource_name='PASSWORD_VERIFY_FUNCTION';

这时看到能配置复杂度的有两个函数:默认的DEFAULT、系统版本自带的ORA_STIG_PROFILE。

查看用户使用的复杂度函数:

select username,profile,account_status from dba_users;

在此,我的测评数据库都是使用DEAULT。

根据图1的结果,DEFAULT没有复杂度设置(NULL)。

二、验证复杂度

测试复杂度,在此使用账户LHX,修改密码。

修改成功。验证可知,测试账户LHX未配置复杂度。

三、应用utlpwdmg.sql,配置数据库复杂度

服务器使用sysdba账户登录数据库,输入

@utlpwdmg.sql

四、查看复杂度

 五、验证复杂度

使用账户LHX,修改密码。

 

 

 

备注:报错原因,经查阅是特殊字符只能使用指定字符_,$和#。

 验证可知,该数据库版本自带的复杂度ORA12C_VERIFY_FUNCTION是至少8位字符,由字母、数字、特殊字符组成。

六、查看自带的复杂度脚本

服务器切换Oracle账户,进入$ORACLE_HOME/rdbms/admin文件夹下,可以看到utlpwdmg.sql

  1. [root@localhost ~]# su - oracle
  2. [oracle@localhost ~]$ cd $ORACLE_HOME/rdbms/admin
  3. [oracle@localhost admin]$
  1. [oracle@localhost admin]$ cat utlpwdmg.sql
  2. Rem
  3. Rem $Header: rdbms/admin/utlpwdmg.sql /main/13 2016/01/04 21:20:04 sumkumar Exp $
  4. Rem
  5. Rem utlpwdmg.sql
  6. Rem
  7. Rem Copyright (c) 2006, 2015, Oracle and/or its affiliates.
  8. Rem All rights reserved.
  9. Rem
  10. Rem NAME
  11. Rem utlpwdmg.sql - script for Default Password Resource Limits
  12. Rem
  13. Rem DESCRIPTION
  14. Rem This is a script for enabling the password management features
  15. Rem by setting the default password resource limits.
  16. Rem
  17. Rem NOTES
  18. Rem This file contains a function for minimum checking of password
  19. Rem complexity. This is more of a sample function that the customer
  20. Rem can use to develop the function for actual complexity checks that the
  21. Rem customer wants to make on the new password.
  22. Rem
  23. Rem MODIFIED (MM/DD/YY)
  24. Rem sumkumar 12/15/15 - Bug 22369990: Make all PVFs as common objects
  25. Rem so as to make them available inside PDBs
  26. Rem yanlili 09/18/15 - Fix bug 20603202: Handle quoted usernames if
  27. Rem called directly
  28. Rem hmohanku 02/17/15 - bug 20460696: add long identifier support
  29. Rem sumkumar 12/26/14 - Proj 46885: set inactive account time to
  30. Rem UNLIMITED for DEFAULT profile
  31. Rem jkati 10/16/13 - bug#17543726 : remove complexity_check,
  32. Rem string_distance, ora12c_strong_verify_function
  33. Rem since we now provide them by default with new db
  34. Rem creation
  35. Rem skayoor 10/26/12 - Bug 14671375: Execute privilege on pwd verify
  36. Rem func
  37. Rem jmadduku 07/30/12 - Bug 13536142: Re-organize the code
  38. Rem jmadduku 12/02/11 - Bug 12839255: Compliant Password Verify functions
  39. Rem jmadduku 01/21/11 - Proj 32507: Add a new password verify function
  40. Rem STIG_verify_function and enhance functionality of
  41. Rem code that checks distance between old and new
  42. Rem password
  43. Rem asurpur 05/30/06 - fix - 5246666 beef up password complexity check
  44. Rem nireland 08/31/00 - Improve check for username=password. #1390553
  45. Rem nireland 06/28/00 - Fix null old password test. #1341892
  46. Rem asurpur 04/17/97 - Fix for bug479763
  47. Rem asurpur 12/12/96 - Changing the name of password_verify_function
  48. Rem asurpur 05/30/96 - New script for default password management
  49. Rem asurpur 05/30/96 - Created
  50. Rem
  51. -- This script sets the default password resource parameters
  52. -- This script needs to be run to enable the password features.
  53. -- However the default resource parameters can be changed based
  54. -- on the need.
  55. -- A default password complexity function is provided.
  56. Rem *************************************************************************
  57. Rem BEGIN Password Management Parameters
  58. Rem *************************************************************************
  59. -- This script alters the default parameters for Password Management
  60. -- This means that all the users on the system have Password Management
  61. -- enabled and set to the following values unless another profile is
  62. -- created with parameter values set to different value or UNLIMITED
  63. -- is created and assigned to the user.
  64. ALTER PROFILE DEFAULT LIMIT
  65. PASSWORD_LIFE_TIME 180
  66. PASSWORD_GRACE_TIME 7
  67. PASSWORD_REUSE_TIME UNLIMITED
  68. PASSWORD_REUSE_MAX UNLIMITED
  69. FAILED_LOGIN_ATTEMPTS 10
  70. PASSWORD_LOCK_TIME 1
  71. INACTIVE_ACCOUNT_TIME UNLIMITED
  72. PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
  73. /**
  74. The below set of password profile parameters would take into consideration
  75. recommendations from Center for Internet Security[CIS Oracle 11g].
  76. ALTER PROFILE DEFAULT LIMIT
  77. PASSWORD_LIFE_TIME 90
  78. PASSWORD_GRACE_TIME 3
  79. PASSWORD_REUSE_TIME 365
  80. PASSWORD_REUSE_MAX 20
  81. FAILED_LOGIN_ATTEMPTS 3
  82. PASSWORD_LOCK_TIME 1
  83. PASSWORD_VERIFY_FUNCTION ora12c_verify_function;
  84. */
  85. /**
  86. The below set of password profile parameters would take into
  87. consideration recommendations from Department of Defense Database
  88. Security Technical Implementation Guide[STIG v8R1].
  89. ALTER PROFILE DEFAULT LIMIT
  90. PASSWORD_LIFE_TIME 60
  91. PASSWORD_REUSE_TIME 365
  92. PASSWORD_REUSE_MAX 5
  93. FAILED_LOGIN_ATTEMPTS 3
  94. PASSWORD_VERIFY_FUNCTION ora12c_strong_verify_function;
  95. */
  96. Rem *************************************************************************
  97. Rem END Password Management Parameters
  98. Rem *************************************************************************

本文参考:

ORACLE密码复杂度校验脚本utlpwdmg.sql解析-CSDN博客

 oracle数据库设置密码复杂度,Oracle EBS 数据库密码复杂度设置-CSDN博客

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号