Find out which users are locked:
SQL> select username,account_status,lock_date from dba_users; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------- LOCK_DATE ------------------- USER1 OPEN USER2 OPEN MGMT_VIEW OPEN
Check whether a certain user (ABCuser) is locked:
select LOCK_DATE,username from dba_users where username='ABCecuser';
LOCK_DATE is empty. There is no lock. If it is not empty, it is locked.
The above is the detailed content of oracle checks if user is locked. For more information, please follow other related articles on the PHP Chinese website!