Solved

Audit all objects of a schema

Posted on 2001-08-14
3
871 Views
Last Modified: 2012-05-04
I'm working on Oracle EE 8.1.7 .
 
I want to audit any alter,drop,truncate etc. on all the objects of a particular schema.

How an I attain this?
0
Comment
Question by:cheemahs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:ser6398
ID: 6385243
You can use Oracle LogMiner to gather this information.  You can find out details about LogMiner here:

http://demo.oracle.com.pl/8i/database/features/logminer.html

0
 
LVL 1

Expert Comment

by:dpd0809
ID: 6385609
You can also turn the auditing feature on all objects of the table.  Then, they are stored in the audit tables.  You need a) plenty of space to store this data b) ability to deal with slower response of the database c) Plenty of disk space in your archive log directory, if you are in archved log mode.
0
 
LVL 1

Accepted Solution

by:
sunrock_in earned 25 total points
ID: 6405436
The way to use Auditing is

connect as dba
spool <filename>
select 'audit all on '||table_name||';' from dba_tables
where owner='SCHEMANAME';
Spool off

@filename

optionally you can add 'whenever successfull' or whenever not successfull' options to get results when the statements executed are successfull or not.

to switch off auditing

connect as dba
spool <filename>
select 'noaudit all on '||table_name||';' from dba_tables
where owner='SCHEMANAME';
Spool off

@filename

You can get all the information required about the user/terminal/host from dba_audit_trail table or
aud$ view.

Thanks
Sunrock_in
0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

628 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