Description:
Sometimes when we try to delete the large numbers of audit files, we get the error “/bin/rm: Argument list too long“.
Solution :
Run the below command using your audit home location:
1 |
find /u01/app/oracle/admin/mydb/adump \( -name "*.aud" -a -type f \) -mtime +3 -print -exec rm -f {} \; |
Note: you can use this command for other log files also like trace file(.trc).