Solved

How to prevent system tablespace fragmentation when using Oracle Audit?

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

Question has a verified solution.

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

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

832 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