达梦数据库关于用户常用命令

登录用户限制查询


-- 达梦数据库用户登录限制查询(小蓝枣)
select
b.username as "达梦数据库用户名",
a.failed_num as "失败次数限制",
a.failed_attemps as "失败尝试次数",
a.lock_time as "锁定时间(min)"
from sysusers a right join all_users b on a.id=b.user_id

 

 查看用户当前状态

-- 达梦数据库用户锁定状态查询(小蓝枣)
select 
username as "达梦数据库用户名", 
account_status as "账户状态",
lock_date as "锁定时间" 
from dba_users;

 

 手动解锁账户

​alter user 用户名 account unlock;​

手动锁定

alter user 用户名 account lock;​

解锁后失败尝试测试会重置的

posted @ 2022-01-19 16:14  卜闻卜问卜听卜在乎  阅读(494)  评论(0编辑  收藏  举报