Solved

Auditing DBA activity in Oracle

Posted on 2001-07-23
6
1,446 Views
Last Modified: 2008-01-16
I am currently trying to find a way of auditing DBA activity but my investigations have shown that it is not possible to create audit records for activity by the user 'SYS' - DBA within Oracle 8i. Do you know of any way of doing this? I have looked into using a 3rd party tool but have been unable to find anything of any help as yet.
If you know of any way of auditing DBA activity, either within Oracle itself or through the use of a third party tool, your help would be much appreciated.
Thankyou

Fiona Campbell
0
Comment
Question by:fionacampbell
6 Comments
 
LVL 3

Expert Comment

by:myerpz
Comment Utility
Perhaps you could try switching on Session Auditing, then using the session info. connected to the view which shows which users have got DBA privileges ?

select os_username      "OS User",
       username,
       returncode,
       count(*)         "No. of Logons"
from   sys.dba_audit_session
where  username in
      (
       select grantee
       from   dba_role_privs
       where  granted_role = 'DBA'
      )
group by os_username, username, returncode
/


Sorry if I'm preaching to the converted, but you will need to have had the line
     audit_trail = true
in your init.ora file at database startup time
and then in SQL*Plus, you'll need to execute the command
     AUDIT BY SESSION;

and then session auditing will be switched on.


Hope this helps
0
 
LVL 2

Expert Comment

by:jbever
Comment Utility
have you tried the new archive mining options?
j.
0
 
LVL 1

Expert Comment

by:edice
Comment Utility
We use a parameter in the INIT.ORA configuration file.
For Oracle 8.0.5, I believe we used this:

Parameter: AUDIT_TRAIL = DB

This will load DBA actions into the DBA_AUDIT_TRAIL view
              (aka SYS.AUD$ table)

Ed
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 1

Accepted Solution

by:
edice earned 50 total points
Comment Utility
Did it work?
Get what you need?

Ed
0
 

Author Comment

by:fionacampbell
Comment Utility
i passed your answer on to my boss and he seemed very happy with it.
Cheers
0
 
LVL 1

Expert Comment

by:edice
Comment Utility
Glad I could help.

Thanks,
Ed
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now