An error message was encountered when deleting files in bulk on the AIX platform:
Ksh:/usr/bin/rm:0403-027 The parameter list is too long
Reason:
This occurs mainly because the AIX kernel parameter Ncargs control, the command line cache has the limit
Lsattr-el sys0-a Ncargs
Ncargs 6 arg/env list size in 4K byte blocks True
Modify the Ncargs value
Chdev-l sys0-a ncargs=64
SYS0 changed
Workaround:
<1> Find/-name "*"-type f-exec rm {} \;
Bulk Delete $oracle_base/admin
<2> $more rm_rc.sh
Files= ' ls-l/oracle/admin/$ORACLE _sid/bdump |grep trc|awk {' Print $9 '} '
For I in $files
Do
rm-rf/oracle/admin/$ORACLE _sid/bdump/$i
Done
$more rm_dump_file.sh
Files= ' ls-l/oracle/admin/$ORACLE _sid/bdump |grep trc|awk {' Print $9 '} '
For I in $files
Do
rm-rf/oracle/admin/$ORACLE _sid/bdump/$i
Done
Files= ' ls-l/oracle/admin/$ORACLE _sid/udump |grep trc|awk {' Print $9 '} '
For I in $files
Do
rm-rf/oracle/admin/$ORACLE _sid/udump/$i
Done
Files= ' ls-l/oracle/admin/$ORACLE _sidump |grep core|awk {' Print $9 '} '
For I in $files
Do
rm-rf/oracle/admin/$ORACLE _sidump/$i
Done
How to delete a large number of small trace files in Oracle