An error occurred while establishing the connection:
Long Message: 登录失败次数超过限制
Details: Type: java.sql.SQLException Error Code: -2508 SQL State: 22001
--达梦数据库用户登录限制查询
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 TOPICPSP account unlock;
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;
FAILED_LOGIN_ATTEMPTS:将引起一个账户被锁定的连续注册失败的次数 最大值100 最小值1 缺省3(系统预设管理员用户默认无限制)
PASSWORD_LOCK_TIME:如果超过 FAILED_LOGIN_ATTEMPTS 设置值,一个账户将被锁定的分钟数 最大值1440(1 天) 最小值1 缺省值1(系统预设管理员用户默认无限制)
参考链接:国产化DM达梦数据库 - 用户状态查询、锁定与解锁,“登录失败次数超过限制”问题解决-腾讯云开发者社区-腾讯云