Afternoon,
Iam currently running a oracle datapump through a unix shell script.
The problem i have is that the dmp files have increased over time to more or less 25 dmp files perday BUT are not deleted daily. It deletes only the first 22 files leaving the other two or three in the set directory.
HOW CAN I DELETE ALL FILES WITHIN DIRECTORY
herewith my removing of files command within my unix script
herwith example of files not deleted from directory
Any assistance will be highly appreciated
Iam currently running a oracle datapump through a unix shell script.
The problem i have is that the dmp files have increased over time to more or less 25 dmp files perday BUT are not deleted daily. It deletes only the first 22 files leaving the other two or three in the set directory.
HOW CAN I DELETE ALL FILES WITHIN DIRECTORY
herewith my removing of files command within my unix script
Code:
if [ -r ${EXPORTDIR}/${i}.dmp ]; then
rm ${EXPORTDIR}/${i}.dmp
fi
herwith example of files not deleted from directory
Code:
rw-r----- 1 oracle oinstall 1060347904 Nov 7 01:59 /u8/datapump/MAC/MAC20.dmp
-rw-r----- 1 oracle oinstall 1605095424 Nov 7 01:59 /u8/datapump/MAC/MAC21.dmp
-rw-r----- 1 oracle oinstall 898039808 Nov 7 01:59 /u8/datapump/MAC/MAC22.dmp
-rw-r----- 1 oracle oinstall 166653952 Nov 6 01:54 /u8/datapump/MAC/MAC23.dmp
-rw-r----- 1 oracle oinstall 36659200 Nov 6 01:54 /u8/datapump/MAC/MAC24.dmp
Any assistance will be highly appreciated