您好,登錄后才能下訂單哦!
這篇文章主要介紹“Oracle自動鎖住不經常使用的用戶指的是什么”的相關知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“Oracle自動鎖住不經常使用的用戶指的是什么”文章能幫助大家解決問題。
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會自動將不活躍(超過一定時間沒有操作)的用戶鎖住。該時間是通過參數INACTIVE_ACCOUNT_TIME
來設置的。
該參數單位:天。表示從該用戶上次成功登陸開始計算,如果超過參數設定的天數,那么Oracle會自動鎖住該用戶。
該參數默認是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
關于該參數的更多說明:
INACTIVE_ACCOUNT_TIME默認值是UNLIMITED,也就是不啟用自動鎖用戶.
參數值是15到24855之間.
如果不想自動鎖用戶,則需要把 INACTIVE_ACCOUNT_TIME參數值設置為UNLIMITED.
想將該參數時間設置為默認PROFILE中指定的參數值,可設置 INACTIVE_ACCOUNT_TIME 參數值為 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.
關于“Oracle自動鎖住不經常使用的用戶指的是什么”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識,可以關注億速云行業資訊頻道,小編每天都會為大家更新不同的知識點。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。