Hello,
Why is everything so much more difficult than it need be in UNIX?!
I wanted to delete all *.aud files in the path /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/
So, as root and from root I typed:
rm /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/*.aud
but received
0403-027 the parameter list is too long
Searching the 'Net I discovered this was a common problem with (some?) shells.
The suggestion seems to be to find then rm.
Running this:
find /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/ -type f -name "*.aud" -mtime +7 -exec rm {} \;
Did nothing, yet if I removed the -exec there were no problems listing them. Oh, I added mtime since find gives me that option.
Anyway, just tried teh original rm again and it worked (did it do so many before giving up?!!!)
Are my original and secondary attempts erroneous or what?! Is there a definitive way to tidy up audit (and trace) files?!
Thanks in advance.
Why is everything so much more difficult than it need be in UNIX?!
I wanted to delete all *.aud files in the path /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/
So, as root and from root I typed:
rm /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/*.aud
but received
0403-027 the parameter list is too long
Searching the 'Net I discovered this was a common problem with (some?) shells.
The suggestion seems to be to find then rm.
Running this:
find /oracle/app/oracle/product/9.2.0.1.0/rdbms/audit/ -type f -name "*.aud" -mtime +7 -exec rm {} \;
Did nothing, yet if I removed the -exec there were no problems listing them. Oh, I added mtime since find gives me that option.
Anyway, just tried teh original rm again and it worked (did it do so many before giving up?!!!)
Are my original and secondary attempts erroneous or what?! Is there a definitive way to tidy up audit (and trace) files?!
Thanks in advance.