Profile管理使用者口令及解鎖user

2021-10-14 09:29:11 字數 769 閱讀 4389

使用profile管理使用者口令

賬戶鎖定

1)上鎖

sql> create  profile    lock_account  limitfailed_login_attempts   3   password_lock_time  1;

----建立乙個profile檔名為lock_account ,3次登入失敗,使用者被鎖定,鎖定時間是1天

sql> alter   user  xiaoming  profile  lock_account;

----將profile檔案給予某個使用者

2)解鎖

sql>alter   user  xiaoming   account  unlock;

3)終止口令

刪除profile

sql> drop profile password_history cascade;

注意:profile 的功能主要作用是,控制使用者資源以及密碼,對系統安全很重要。

解鎖、殺掉鎖表程序 

1、檢視鎖

select t2.username,t2.sid,t2.serial#,t2.logon_time

from v$locked_object t1,v$session t2

where t1.session_id=t2.sid ;

2、kill

--alter system kill session 'sid,serial#';

alter system kill session '151,14678';

使用profile管理使用者口令

使用profile管理使用者口令 profile是口令限制,資源限制的命令集合,當建立資料庫時,oralce會自動建立名稱為default的profile,當建立使用者沒有指定profile選項,oracle會將default分配給使用者。1 賬戶鎖定 指定該賬戶或使用者登入時最多可以輸入密碼的次數...

Oracle使用者口令

password life time 60 口令的生命週期,超過這段時間口令可能會自動過期,是否過期要看是否設定了password grace time password grace time 10 接著password life time特性,如果password life time的期限已到,那...

Ansible 批量管理使用者口令策略

批量設定linux 使用者口令過期日間,步驟如下 1 使用ansible shell模組將遠端client端系統中的使用者名稱取出存放至本地 tmp目錄 注意 shell模組中元字元需使用 轉義 2 使用ansible script模組執行ansible本地指令碼在client端執行,修改使用者密碼...