查明哪些用户被锁:
SQL> select username,account_status,lock_date from dba_users; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------- LOCK_DATE ------------------- USER1 OPEN USER2 OPEN MGMT_VIEW OPEN
查看某个用户(ABCuser这个用户)是否被锁:
select LOCK_DATE,username from dba_users where username='ABCecuser';
LOCK_DATE为空说明没有锁定,非空为锁定。