在运行项目中,连接 Oracle 数据库用户时,提示:
java.sql.SQLException: ORA-28000: the account is locked
很明显,是因为数据库用户被锁导致的,需要通过数据库管理员账号对该用户解锁才行,解锁命令如下:
select * from dba_profiles where resource_name like 'FAILED_LOGIN_ATTEMPTS%';
alter profile default limit FAILED_LOGIN_ATTEMPTS unlimited;
select * from dba_profiles where resource_name like 'FAILED_LOGIN_ATTEMPTS%';
alter user scott account unlock;