Solved

How to prevent system tablespace fragmentation when using Oracle Audit?

Posted on 2001-06-19
3
1,176 Views
Last Modified: 2008-03-03
Hi All,

I plan to use Oracle Audit function to monitor the tables being updated or deleted. (Set Audit_trail=DB in initialaztion file).

Since the Aud$ table is stored in system tablespace, frequently truncating  the Aud$ table will cause system tablespace fragmentation and performance degrade.

Can anyone tell me how to  prevent this problem?

Thanks.
0
Comment
Question by:DBFan
  • 2
3 Comments
 

Accepted Solution

by:
mattia earned 30 total points
ID: 6207918
Hi,

What version of Oracle are you using?
There are two ways you can do this:

1) You can either issue:

ALTER TABLE SYS.AUD$ MOVE TABLESPACE <tablespace name>;
That will move the audit table out of SYSTEM tablespace and into another tablespace. Or...

2) Create a new table xyz using SELECT * FROM AUD$;
Drop table AUD$, then issue a rename command to rename xyz to AUD$.

In both cases make sure that auding isn't switched on.

Regards,
--M.A
0
 

Author Comment

by:DBFan
ID: 6208303
Mattia,

I use Oracle 8.0.6.  Alter table sys.aud$ move tablespace <new tablespace name> is not a valid command.  Can you check it for me?

Thanks.

DBFan

0
 

Expert Comment

by:mattia
ID: 6208644
Since you are using 8.0.6, you have to use the second option I mentioned above.

Moving tables between table spaces is supported in Oracle 8i (8.1.5 and later) only.

Hope this helps,
--M.A
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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 videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

680 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