RE: aud$ delete

  • From: "Allen, Brandon" <Brandon.Allen@xxxxxxxxxxx>
  • To: "jo.holvoet@xxxxxxxxxxxxx" <jo.holvoet@xxxxxxxxxxxxx>, "cemail_219@xxxxxxxxxxx" <cemail_219@xxxxxxxxxxx>, "oracle-l@xxxxxxxxxxxxx" <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 22 Mar 2010 09:07:47 -0700

That's what I use and it works in my 10.2 databases - here is the script I run 
through cron:

export PATH=$PATH:/usr/local/bin
export ORAENV_ASK=NO
export ORACLE_SID=${1}
. oraenv

sqlplus -s /nolog <<-EOF
conn / as sysdba
delete from aud$ where ntimestamp# < sysdate-100;
quit;
EOF


From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On 
Behalf Of Holvoet, Jo


There's also the ntimestamp# column. See ML note 427296.1 :

"In database version 10gR1 and above, the TIMESTAMP# column is obsoleted in 
favor of the new NTIMESTAMP# column."


________________________________
Privileged/Confidential Information may be contained in this message or 
attachments hereto. Please advise immediately if you or your employer do not 
consent to Internet email for messages of this kind. Opinions, conclusions and 
other information in this message that do not relate to the official business 
of this company shall be understood as neither given nor endorsed by it.

Other related posts: