Solved

Audit all objects of a schema

Posted on 2001-08-14
3
862 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Assigning Database Principals to Database Roles 3 41
Format Transaction Number 19 49
Ranking Students in Ms Access based on given Criteria 5 60
Query Task 8 19
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…
Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

734 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