SyntaxFix
Write A Post
Hire A Developer
Questions
select username, account_status from dba_users where lock_date is not null;
This will actually give you the list of locked users.