启动项目的时候提示ORA-28000 the account is locked,这是因为用户被锁定了。oracle11g中默认在default概要文件中设置了 “FAILED_LOGIN_ATTEMPTS=10次”,当输入密码错误次数达到设置值将导致此,该用户会自动锁住。
处理办法:
1、sqlplus /nolog
2、conn /as sysdba //用sysdba登录数据库
3、desc dba_profiles
4、 select resource_name,limit from dba_profiles where resource_name='FAILED_LOGIN_ATTEMPTS';// 查看登录限制次数
5、alter user xxx account unlock; //xxx用被锁定用户名替换
6、alter profile default limit failed_login_attempts unlimited; // 修改后,用户密码输入错误多少次都不会被锁定