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).
Thanks. This works like a charm.
You’re welcome
didnt work for me. I am trying to delete many files with similar file extension.
Thanks this works for me