Skip to Content
Oracle Database Administration: The Essential Refe
book

Oracle Database Administration: The Essential Refe

by David C. Kreines, Brian Laskey
April 1999
Intermediate to advanced
584 pages
23h 17m
English
O'Reilly Media, Inc.
Content preview from Oracle Database Administration: The Essential Refe

Maintaining the Audit Trail

The audit trail table needs to be cleaned out on a periodic basis. You should periodically move the audit trail information out of the audit trail and into your own set of tables. There are several reasons why you need to maintain the audit trail in this way:

  1. The audit trail base table, SYS.AUD$, is created in the SYSTEM tablespace as part of the database creation process. If you have any level of auditing turned on, the audit trail will usually grow to become the single largest table in the SYSTEM tablespace. You cannot afford to allow this single table and its index to use up all free space in the SYSTEM tablespace.

  2. The audit trail is a view with a join; thus, if the table becomes large, queries to it will be slow. If you copy the information to a separate table and index it, your query performance may improve.

  3. If you have auditing enabled BY ACCESS, or if you have many small transactions connecting to the database, you may have more information in the audit trail than you expect.

  4. Because the audit trail base table, SYS.AUD$, is owned by SYS, it is not exported when a full or incremental export operation is performed. In the event of a database disaster that forces you to rebuild the database from an export, all existing audit trail information will be lost.

We recommend that you maintain the audit trail by following these steps:

  1. Determine what information you need to keep over time. In addition, ask whether you need to keep this information as it is recorded ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Oracle Databases

Oracle Databases

O'Reilly Media, Inc.
Oracle DBA Fundamentals

Oracle DBA Fundamentals

Robert G. Freeman

Publisher Resources

ISBN: 1565925165Catalog PageErrata