Oracle 数据库连接异常 ORA-28000: the account is locked
Oracle Java 大约 523 字异常
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';
阅读 3994 · 发布于 2020-04-28
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓
昵称:
随便看看
换一批
-
Java 堆内存动态调整阅读 185
-
使用 LuaRocks 管理 Lua 依赖阅读 4433
-
Spring Boot 设置 Cookie 和 Session 过期时间阅读 8042
-
OpenResty 解析 JSON 中的 null 字段时问题阅读 2907
-
PHP 判断函数、类、方法、属性、数组中的 key 是否存在阅读 3851
-
Vue 脚手架工具 Vue CLI阅读 586
-
CSS absolute 绝对定位布局在 Android 系统软键盘弹出时被顶起阅读 1935
-
软考-系统架构设计师:电子数据交换(EDI)阅读 2596
-
走进 Rust:Vector 集合阅读 1866
-
MySQL 自动更新时间戳及默认时间戳阅读 4738