溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Oracle自動鎖住不經(jīng)常使用的用戶指的是什么

發(fā)布時間:2022-10-21 14:50:05 來源:億速云 閱讀:131 作者:iii 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要介紹“Oracle自動鎖住不經(jīng)常使用的用戶指的是什么”的相關(guān)知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“Oracle自動鎖住不經(jīng)常使用的用戶指的是什么”文章能幫助大家解決問題。

說明

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.

從12.2開始,Oracle會自動將不活躍(超過一定時間沒有操作)的用戶鎖住。該時間是通過參數(shù)INACTIVE_ACCOUNT_TIME來設(shè)置的。

該參數(shù)單位:天。表示從該用戶上次成功登陸開始計算,如果超過參數(shù)設(shè)定的天數(shù),那么Oracle會自動鎖住該用戶。
該參數(shù)默認(rèn)是UNLIMITED,需要手動開啟。

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

關(guān)于該參數(shù)的更多說明:

  • INACTIVE_ACCOUNT_TIME默認(rèn)值是UNLIMITED,也就是不啟用自動鎖用戶.

  • 參數(shù)值是15到24855之間.

  • 如果不想自動鎖用戶,則需要把 INACTIVE_ACCOUNT_TIME參數(shù)值設(shè)置為UNLIMITED.

  • 想將該參數(shù)時間設(shè)置為默認(rèn)PROFILE中指定的參數(shù)值,可設(shè)置 INACTIVE_ACCOUNT_TIME 參數(shù)值為 DEFAULT.

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

  • 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 account’s FAILED_LOGIN_ATTEMPTS password profile setting).

  • 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.

  • 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.

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

關(guān)于“Oracle自動鎖住不經(jīng)常使用的用戶指的是什么”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識,可以關(guān)注億速云行業(yè)資訊頻道,小編每天都會為大家更新不同的知識點。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI