Oracle Consulting Oracle Training Oracle Support Development
Home
Catalog
Oracle Books
SQL Server Books
IT Books
Job Interview Books
eBooks
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
image
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
 Phone
 800-766-1884
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books
image
image

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle

STATSPACK Viewer

Privacy Policy

 

   
 

Oracle Tips by Burleson

Chapter 8 General Oracle Auditing

  1. Then the data in the archived table should be deleted from the main aud$ table. A simple DELETE AUD$ will do; but there are two problems:

  • A regular delete generates a lot of redo and undo activity.
     

  • A regular delete also does not reset the high water mark, so the table is fragmented.

Therefore, as an alternative, we will create a separate temporary table named aud_temp on the same tablespace as the aud$ table. This table holds the records that are not present in the archived table AUD0306.

  1. After this table is created, the original aud$ table is dropped.
     

  2. The table aud_temp is then renamed to the main table aud$. The index on it, I_AUD1, is rebuilt.
     

  3. The tablespace AUD0306 is converted to READ ONLY.
     

  4. This tablespace is now transported to a separate medium such as a WORM device, which could be as simple as a Writable CD-ROM. The datafiles of the tablespace and the small export dump file are written to the WORM device.
     

  5. The tablespace is then dropped.

These steps have been implemented in the code below. The code has been deliberatively broken into three parts since only the successful execution of the prior part should pave the way for the next part. If an error occurs during any part, it should be stopped.

archive_audit_1.sh

--**********************************************
--
--   Copyright © 2003 by Rampant TechPress Inc.


The above text is an excerpt from the bestselling book: Oracle Privacy Security Auditing It's only $39.95 and has an download of working security scripts:

 

This is the only authoritative book on Oracle Security, Oracle Privacy, and Oracle Auditing written by two of the world’s leading Oracle Security experts.

This indispensable book is only $39.95 and has an download of working security scripts:

 

http://rampant-books.com/book_2003_2_audit.htm

 


Download your Oracle scripts now:

www.oracle-script.com

The definitive Oracle Script collection for every Oracle professional DBA

 

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster



Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   

 

   

 Copyright © 1996 -2016 by Burleson. All rights reserved.


Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks