Home  >  Article  >  Database  >  oracle checks if user is locked

oracle checks if user is locked

王林
王林forward
2020-05-12 16:40:568427browse

oracle checks if user is locked

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!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete