How do I get a list of locked users in an Oracle database?

后端 未结 3 882
半阙折子戏
半阙折子戏 2021-02-11 16:43

I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I\'m having is querying the \"locke

3条回答
  •  醉话见心
    2021-02-11 16:52

    select username,
           account_status 
      from dba_users 
     where lock_date is not null;
    

    This will actually give you the list of locked users.

提交回复
热议问题