Mufasa,
Not a problem. Basically this was to satisfy an audit requirement to track unsuccessful database login attempts for SARBOX at my company who is still running (against my wishes) Oracle 7.
set audit_trail = DB
The audit session command was issued
Below is the script I use to capture the data. I had trouble finding all the possible return code values from the dba_audit_session view but after scouring enough documentation on Metalink I was able to find some.
select upper(username) username,
upper(os_username) os_username,
terminal,
decode(min(returncode), 0, to_char(max(timestamp), 'MM/DD/RRRR HH24:MI:SS'), null) Success,
decode(returncode, 1017, to_char(timestamp, 'MM/DD/RRRR HH24:MI:SS'), null) Unsuccess,
to_char(sysdate, 'DD-MON-RRRR HH24:MI:SS') rpt_date,
to_char(sysdate, 'DD-MON-RRRR') to_date,
to_char(sysdate - 7, 'DD-MON-RRRR') from_date
from sys.dba_audit_session
group by
upper(username),
upper(os_username),
terminal,
decode(returncode, 1017, to_char(timestamp, 'MM/DD/RRRR HH24:MI:SS'), null)
order by upper(username), upper(os_username), terminal, Success
/
FLSTF