1.檢視系統引數配置
select * from dba_profiles where resource_name like 'failed_login_attempts%';
-- default failed_login_attempts password 10
--連續錯誤連線10次使用者被鎖定
2.檢視被鎖使用者
select lock_date,username from dba_users where username='username';
lock_date為空說明沒有鎖定,非空為鎖定。
-----
select s.username,
decode(l.type, 'tm', 'table lock', 'tx', 'row lock', null) lock_level,
o.owner,
o.object_name,
o.object_type,
s.sid,
s.serial#,
s.terminal,
s.machine,
s.program,
s.osuser
from v$session s, v$lock l, dba_objects o
where s.sid = l.sid
and o.object_id = l.id1
and s.username is not null;
3.解鎖方法
alter user user_name account unlock;
4.設定系統預設連線錯誤次數
alter profile default limit failed_login_attempts 10;
-- 設定為連續錯誤連線10次使用者被鎖定
alter profile default limit failed_login_attempts unlimited;
-- 設定為連續錯誤連線10次使用者被鎖定不受限制
5. 給使用者授權
grant dba to lxg;--授予dba許可權
grant unlimited tablespace to lxg;--授予不限制的表空間
grant select any table to lxg;--授予查詢任何表
grant select any dictionary to lxg;--授予 查詢 任何字典
Oracle使用者被鎖解決方法
1 1 檢視使用者的proifle是哪個,一般是default 2 sql select username,profile from dba users 32 檢視指定概要檔案 如default 的密碼有效期設定 4 sql select from dba profiles s where s.pr...
Oracle使用者頻繁被鎖原因排查與解決
問題描述 專案小組同事說最近一段時間內,oracle使用者總是頻繁被鎖,導致應用及客戶端均無法登入運算元據庫。現象跟蹤 通過檢視監聽日誌listener.log,發現很多從10.1.3.107應用伺服器過來的訪問記錄,並伴有警告資訊出現,部分內容如下 05 aug 2015 03 49 57 con...
Oracle 使用者頻繁被鎖的解決方法
1 su oracle 2 用dba角色的使用者登陸 3 檢視被鎖使用者及時間 select username,account status,lock date from dba users 4 檢視哪個ip導致被鎖 搜尋檔案 find name listener.log 日誌內容 18 aug 2...