Search This Blog

Friday, July 17, 2009

-bash: /bin/rm: Argument list too long

In our production box while cleaning the archivelog file (manually) I received the below error and not able to delete , even though it is not related to oracle error but linux so worth to post in blog.

[oracle@PROD PROD_archivelog1]$ rm -rf *.dbf
-bash: /bin/rm: Argument list too long

[oracle@PROD PROD_archivelog1]$ du -h
50G .
becuase folder size is too big (50gb) that is why system is not allowing to delete.

Solution: found on google :)
[oracle@PROD PROD_archivelog1]$ find . -name '*.dbf' | xargs rm

[oracle@PROD PROD_archivelog1]$ du -sh
5.5M .


Yasir said...

WHy did you manually remove archivelog files.
Arn't you using RMAN.RMAN could backup archivelog delete all input.

Anonymous said...

In it something is. Thanks for the information, can, I too can help you something?