Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-28000: the account is locked

ABU JAMANNov 21 2016 — edited Nov 21 2016

we are in windows 2012R2 64 bit server. 12.1.0.2 database. The user account is locked with above message and he wants to know os user,client machine and date/time that locked the account. I built the query as below but it gives lots of records. I want to find out  locked few days ago or today only. I would appreciate if someone help to built the query.

Select os_username, username,userhost,terminal,timestamp,action_name,logoff_time,RETURNCODE

from DBA_AUDIT_SESSION where RETURNCODE in (1017,28000)

and username='EGIS_VECTOR'AND ROWNUM<15 order by timestamp;

This post has been answered by Solomon Yakobson on Nov 21 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2016
Added on Nov 21 2016
7 comments
1,275 views