Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Question about truncate the audit (aud$)

Re: Question about truncate the audit (aud$)

From: C Chang <chi-soon_x_chang_at_raytheon.com>
Date: 21 Sep 2004 03:38:14 -0700
Message-ID: <88c62e86.0409210238.4b4f7479@posting.google.com>


sybrandb_at_yahoo.com wrote in message news:<a1d154f4.0409200718.31d1ec16_at_posting.google.com>...
> chi-soon_x_chang_at_raytheon.com (C Chang) wrote in message news:<88c62e86.0409200157.4a2c2ebd_at_posting.google.com>...
> > Daniel Morgan <damorgan_at_x.washington.edu> wrote in message news:<1095648966.158220_at_yasure>...
> > > cschang wrote:
> > > > I activated the audit under the sys and altered its tablespace out of
> > > > system and put it into a user schema tablespace. However, according to
> > > > the principle, I should periodically store the content to another place
> > > > (out of system ). I believe I can write a procedure under the sys to
> > > > copy the content to other user?s table and TRUNCATE out the content.
> > > > Although many previous newsgroup articles suggest to grant the execute
> > > > privilege to another user to run the procedure. My question is: is that
> > > > still a bad practice to create a procedure (an object) under the sys
> > > > which is from the Oracle to define the system and is not supposed to be
> > > > modified? ( I remembered one of the previous newsgroup articles
> > > > mentioned about such principle). My system is 8.1.7 on NT 4. Thanks.
> > > >
> > > > C Chang
> > >
> > > Never, ever, for any reason write anything as SYS. There is no reason
> > > to and you shouldn't. It has always been a bad practice and remains so.
> >
> > So then, how can I clean out the aud$ table periodically without
> > creating a procedure under SYS? Thanks.
> >
> > C Chang
>
>
> You need privilege to that table. *Any* user with the DBA role (or
> delete any table privilege) has that privilege.
>
> Sybrand Bakker
> Senior Oracle DBA

Would that be too danger to grant other non-sys DBA user a privilege of DELETE ANY TABLE which will be involved with SYS? (or I mixed with the idea of DROP ANY TABLE). I need to the manuals word by word. Thanks.

Chisoon Received on Tue Sep 21 2004 - 05:38:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US