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
Reason:
[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
Source:http://www.simplehelp.net/2009/02/18/linux-tip-overcoming-the-binrm-argument-list-too-long-error/
Result:
[oracle@PROD PROD_archivelog1]$ du -sh
5.5M .
"Teach Oracle Learn Oracle" -- Taj Contact me for support at askdbataj@gmail.com This blog is dedicated to all ORACLE Professionals and Learning Students.
Search This Blog
Friday, July 17, 2009
-bash: /bin/rm: Argument list too long
Subscribe to:
Post Comments (Atom)
1 comment:
In it something is. Thanks for the information, can, I too can help you something?
Post a Comment