Solved

How to prevent system tablespace fragmentation when using Oracle Audit?

Posted on 2001-06-19
3
1,190 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
[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
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

691 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