查明哪些用户被锁: SQL select username,account_status,lock_date from dba_users;USERNAME ACCOUNT_STATUS------------------------------ --------------------------------LOCK_DATE-------------------USER1 OPENUSER2 OPENMGMT_VIEW OPEN 查看
查明哪些用户被锁:
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为空说明没有锁定,非空为锁定。
以上就是oracle查看用户是否被锁的详细内容,更多请关注每日运维其它相关文章!