Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Script to cleanup asm files

Vinay KSep 23 2015 — edited Sep 24 2015

We are storing export dumps on asm diskgroup.

Can someone help me with a script which can be used to cleanup the old dumps which are say x days old on asm diskgroup.

I am looking for find command with mtime kind of thing which works on asmcmd.

Currently, using this which is generic.

. /home/oracle/grid

sid="+ASM1"

echo "Check Space on "$sid

export ORACLE_SID=$sid

asmcmd << EOF

cd +DG1/export/dumps

rm *.dat

EOF

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2015
Added on Sep 23 2015
2 comments
1,947 views