Skip to Main Content

SQL & PL/SQL

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!

Enable auditing for failed login attempts

BugsJan 30 2017 — edited Jan 31 2017

Guys,

Could you please suggest the possible ways to enable auditing for failed login attempts to the database? Any thoughts on other than the one approach below would be highly appreciated.

-- # 1 - Modifiy initialization parameters

alter system set audit_trail=db scope=spfile;

-- # 2 - Restart the database

shutdown immediate

startup

-- # 3 - Enable auditing for failed login attempts

audit create session whenever not successful;

-- # 4 - Query the dba_audit_trail view to see failed login attempts

set lines 130

col OS_USERNAME for a20

col USERNAME for a20

col USERHOST for a20

select OS_USERNAME,USERNAME,USERHOST,to_char(timestamp,'MM-DD-YYYY HH24:MI:SS'), returncode

from dba_audit_trail

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2017
Added on Jan 30 2017
11 comments
3,070 views