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

oracle checks if user is locked

王林
Release: 2020-05-12 16:40:56
forward
8466 people have browsed it

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
Copy after login

Check whether a certain user (ABCuser) is locked:

select LOCK_DATE,username from dba_users where username='ABCecuser';
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template