java.sql.SQLException: ORA-28000: the account is locked

刺骨的言语ヽ痛彻心扉 2022-10-31 00:40 147阅读 0赞

ORA-28000: the account is locked

今天启动项目突然发现程序连接数据库提示账号已锁定

java.sql.SQLException: ORA-28000: the account is locked

  1. select username,user_id,account_status,lock_date,default_tablespace from dba_users order by user_id;

用sql查查确实account_status状态为locked
在这里插入图片描述

解决

修改账号状态open

  1. ALTER USER ccense ACCOUNT UNLOCK;
  2. commit;

查看结果

  1. select username,user_id,account_status,lock_date,default_tablespace
  2. from dba_users where username = 'CCENSE';

在这里插入图片描述

写在最后

天下英雄出我辈,一入江湖岁月催
我是「无间行者」,努力把实践过的解决方案分享给大家
如果这篇文章对你有用,一个赞、一个评论、一个关注,我都很开心
码字不易,给点鼓励吧,让我知道你在看

发表评论

表情:
评论列表 (有 0 条评论,147人围观)

还没有评论,来说两句吧...

相关阅读