CREATE OR REPLACE TRIGGER logon_failures
AFTER SERVERERROR
ON DATABASE
BEGIN
IF (IS_SERVERERROR(1017)) THEN
INSERT INTO connection_audit
(login_date, user_name)
VALUES
(SYSDATE, 'ORA-1017');
END IF;
END logon_failures;
/
Login in with bad password or invalid user names several times and and
test different scenarios.
SELECT * FROM connection_audit;
/*
other errors that could be trapped include:
ORA-01004 - default username feature not supported
ORA-01005 - null password given
ORA-01035 - Oracle only available to users with restricted session priv
ORA-01045 - create session privilege not granted
*/
Thanks a lot for your response which will be quite helpful for future auditing purpose.
But what I want to know is:
at present if the audit session is not created,
no procedure or triggers are in place,
yet do we have a log or any other means to find out the unsuccessful logins of past?
Bookmarks