Solved

How to prevent system tablespace fragmentation when using Oracle Audit?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
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.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

759 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

19 Experts available now in Live!

Get 1:1 Help Now