1.查看账号被锁情况
SELECT username,account_status,lock_date FROM dba_users WHERE username="user_name";2.解锁被锁定的账户
alter user user_name account unlock;SELECT username,account_status,lock_date FROM dba_users WHERE username="user_name";ACCOUNT_STATUS | 注释 |
OPEN | 正常 |
LOCKED | 通过 SQL 语句进行的锁定 |
LOCKED(TIMED) | 超过最大错误登录次数被动锁定 |
EXPIRED || EXPIRED(GRACE) | 密码过期状态 |
EXPIRED & LOCKED(TIMED) | 密码过期并超过了限制次数被锁定 |
alter user user_name account unlock;
评论