oracle 线上用户老是被锁:
1,查明所有的用户哪些被锁了
sql> select username,account_status,lock_date from dba_users; username account_status ------------------------------ -------------------------------- lock_date ------------------- user1 open user2 open mgmt_view open
2,查看某个用户(abcuser这个用户)是否被锁:
select lock_date,username from dba_users where username='abcecuser';
lock_date为空说明没有锁定,非空为锁定。
3,解锁方法
alter user user_name account unlock;
4,一般数据库默认是10次尝试失败后锁住用户
4.1、查看failed_login_attempts的值
sql> select * from dba_profiles where resource_name like 'failed_login_attempts%';
profile resource_name resource
------------------------------ -------------------------------- --------
limit
----------------------------------------
default failed_login_attempts password
10
monitoring_profile failed_login_attempts password
unlimited
4.2、修改为30次
alter profile default limit failed_login_attempts 30;
4.3、修改为无限次(为安全起见,不建议使用)
alter profile default limit failed_login_attempts unlimited;
如对本文有疑问, 点击进行留言回复!!
Oracle常用语句(时间格式、去重、去特殊符号、查询表空间等)
Navicate 如何导出数据库中的存储过程、事件、视图等?
每日一记:Oracle升级2020年4月份的数据库补丁Database Patch Set Update : 11.2.0.4.200414 (30670774)
Oracle 19.3 dataguard for Redhat 7.6
网友评论