签到成功

知道了

CNDBA社区CNDBA社区

Oracle 12C R2-新特性-自动锁住不活跃用户

2017-12-16 21:22 4147 0 原创 Oracle 12C
作者: Expect-乐

说明

Starting with this release, you can configure user accounts to automatically lock if they have been inactive over a period of time.

The CREATE USER and ALTER USER SQL statements enable you to set a new profile parameter, INACTIVE_ACCOUNT_TIME, which enables you to automatically lock inactive accounts.

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

12.2开始,Oracle会自动将不活跃(超过一定时间没有操作)的用户锁住。该时间是通过参数INACTIVE_ACCOUNT_TIME来设置的。

该参数单位:天。从该用户上次成功登陆开始计算,如果超过参数设定的天数,那么Oracle会自动锁住该用户。当然该参数默认是UNLIMITED。需要手动开启。http://www.cndba.cn/Expect-le/article/2487

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

SQL> select profile,resource_name,limit from dba_profiles t where t.resource_name='INACTIVE_ACCOUNT_TIME';
PROFILE        RESOURCE_NAME	      LIMIT
------------------------------ ------------------------------ --------------------
DEFAULT INACTIVE_ACCOUNT_TIME UNLIMITED
ORA_STIG_PROFILE	       INACTIVE_ACCOUNT_TIME	      35
TEST_PROFILE	       INACTIVE_ACCOUNT_TIME	      35

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

关于该参数的更多说明:

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

1.  The default value for INACTIVE_ACCOUNT_TIME is UNLIMITED.http://www.cndba.cn/Expect-le/article/2487

2.  You must specify a whole number for the number of days. The minimum setting is 15 and the maximum is 24855.

3.  To set the users account to have an unlimited inactivity time, set the INACTIVE_ACCOUNT_TIME to UNLIMITED.

4.  To set the users account to use the time specified by the default profile, set INACTIVE_ACCOUNT_TIME to DEFAULT.

5.  You can set this parameter for all database authenticated users, including administrative users, but not for external or global authenticated users.

6.  In a read-only database, the last successful login is not considered in the INACTIVE_ACCOUNT_TIME timing. It is not possible to lock a user account in a read-only database (except by performing consecutive failed logins equal in number to the accounts FAILED_LOGIN_ATTEMPTS password profile setting).

7.  For a newly created user account, the timing begins at account creation time. When this user logs out and then logs again, the timing starts when the user successfully logs in.

8.  In a multitenant environment, the INACTIVE_ACCOUNT_TIME setting applies to the last time a common user logs in to the root. A common user is considered active if this user logs in to any of the PDBs or the root.

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

9.  For a proxy user account login, the INACTIVE_ACCOUNT_TIME begins the timing when the proxy user logs in successfully.

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

详细信息查看官方文档:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/dbseg/configuring-authentication.html#GUID-ED98E6DA-A30C-4052-A343-B516CD641737

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

INACTIVE_ACCOUNT_TIME

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

Expect-乐

关注

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

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

        QQ交流群

        注册联系QQ