Solved

Audit all objects of a schema

Posted on 2001-08-14
3
805 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
3 Comments
 
LVL 5

Expert Comment

by:ser6398
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

762 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

10 Experts available now in Live!

Get 1:1 Help Now