Oracle 数据库连接异常 ORA-28000: the account is locked
Oracle Java About 523 words异常
Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: ORA-28000: the account is locked
原因
尝试多次登录不成功,后被系统锁定。
解决
连接sysdba
connect as sysdba;
解锁用户
alter user username account unlock;
更改登录失败尝试次数
登录失败尝试次数更改为1000次,1000次后锁定账户。
alter profile DEFAULT limit FAILED_LOGIN_ATTEMPTS 1000;
更改登录失败尝试不限制次数
alter profile default limit failed_login_attempts unlimited;
查看登录失败尝试次数
select * from dba_profiles where RESOURCE_NAME='FAILED_LOGIN_ATTEMPTS';
Views: 4,445 · Posted: 2020-04-28
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...