How to delete a large number of small trace files in Oracle

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.