如何获得Oracle数据库中的锁定用户列表? [英] How do I get a list of locked users in an Oracle database?
本文介绍了如何获得Oracle数据库中的锁定用户列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够列出给定数据库中的所有用户以及确定他们是否被锁定的图标.我遇到的问题是查询给定用户的锁定"状态,尽管它可能已经在all_users
上了,但事实并非如此.谁能指出我正确的方向?
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 "locked" status for a given user, I though it might have been on all_users
but it isn't. Can anyone point me in the right direction?
推荐答案
找到了!
SELECT username,
account_status
FROM dba_users;
这篇关于如何获得Oracle数据库中的锁定用户列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文