签到成功

知道了

CNDBA社区CNDBA社区

Oracle 12C R2-新特性-提高了管理员密码的安全性

2017-12-17 19:35 4746 0 原创 Oracle 12C
作者: Expect-乐

说明

12.2中,通过强制执行相关管理员用户的profile密码的限制来提高管理员密码的安全性。

如:FAILED_LOGIN_COUNT, PASSWORD_LOCK_TIME, PASSWORD_GRACE_TIME, and PASSWORD_LIFE_TIME.

There is no special protection with the password file. The password verifiers must be stored outside of the database so that authentication can be performed even when the database is not open. In previous releases, password complexity functions were available for non-administrative users only. Starting with Oracle Database release 12c (12.2), password complexity functions can be used for both non-administrative users and administrative users.

12.2开始,密码复杂性函数也用于管理员用户。

1.1   对于管理员用户的密码profile设置

以下几个profile设置参数是必须设置的:

FAILED_LOGIN_ATTEMPT

INACTIVE_ACCOUNT_TIME

PASSWORD_LOCK_TIME

PASSWORD_LIFE_TIME

PASSWORD_GRACE_TIME

http://www.cndba.cn/Expect-le/article/2490

1.2   orapwd工具提高了密码的复杂性

In addition, for the ORAPWD utility, the restriction for the entries argument for the operating system password file has been removed.

并且orapwd工具取消了“entires”选项,经过测试创建了200个用户并授予sysdba权限都成功了。对于可以拥有sysdba权限的用户数量没有了限制。

创建脚本:

declare

sqltext1 varchar2(100);

sqltext2 varchar2(100);

begin

http://www.cndba.cn/Expect-le/article/2490

  for i in 1..200http://www.cndba.cn/Expect-le/article/2490

  loop

  sqltext1 := 'create user test'||i||' identified by test'||i;http://www.cndba.cn/Expect-le/article/2490

  sqltext2 := 'grant sysdba to test'||i;

  execute immediate sqltext1;

  execute immediate sqltext2;

  end loop;

end;

 http://www.cndba.cn/Expect-le/article/2490

密码复杂性增加如下:

Setting FORMAT to 12.2 enforces the following rules:

The password contains no fewer than 8 characters and includes at least one numeric and one alphabetic character.

The password is not the same as the user name or the user name reversed.

The password is not the same as the database name.

The password does not contain the word oracle (such as oracle123).

The password differs from the previous password by at least 8 characters.

The password contains at least 1 special character.

http://www.cndba.cn/Expect-le/article/2490

 

FORMAT=12.2 also applies the following internal checks:

http://www.cndba.cn/Expect-le/article/2490

The password does not exceed 30 characters.

The password does not contain the double-quotation character ("). However, it can be surrounded by double-quotation marks.

Configuring FORMAT=12.2 sets administrative users to use the default profile, which uses these settings:

PASSWORD_LIFE_TIME: 180 days

PASSWORD_GRACE_TIME: 7 days

FAILED_LOGIN_ATTEMPTS: 10 attempts

1.2.1  验证

#orapwd创建密码文件--format选项

[oracle@cndba dbs]$ orapwd file=orapwtest password=oracle format=12.2

OPW-00029: Password complexity failed for SYS user : Password must contain at least 8 characters.

 

[oracle@cndba dbs]$ orapwd file=orapwtest password=oracle123 format=12.2

OPW-00029: Password complexity failed for SYS user : Password must contain at least 1 special characthttp://www.cndba.cn/Expect-le/article/2490

[oracle@cndba dbs]$ orapwd file=orapwtest password=oracle123 format=11.2

#查看默认profile设置

SQL> select profile,resource_name,limit from dba_profiles where resource_name in('PASSWORD_LIFE_TIME','PASSWORD_GRACE_TIME','FAILED_LOGIN_ATTEMPTS');

PROFILE        RESOURCE_NAME       LIMIThttp://www.cndba.cn/Expect-le/article/2490

------------------------------ ------------------------------ --------------------

DEFAULT        FAILED_LOGIN_ATTEMPTS       10

DEFAULT        PASSWORD_LIFE_TIME       180

DEFAULT        PASSWORD_GRACE_TIME       7

http://www.cndba.cn/Expect-le/article/2490

 

#查看管理员用户的权限的相关信息,最后一次登录时间

SQL> select username,sysdba,ACCOUNT_STATUS,PASSWORD_PROFILE,LAST_LOGIN,EXPIRY_DATE from V$PWFILE_USERS;

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1594892次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ