The individual find commands run ok.
Thanks for the display tips.
My query is specific to logrotate.
Why are files NOT being cleared down and the following size error being generated:
"log does not need rotating (log size is below the 'size' threshold)".
I just want logrotate to clear down the files older than 30 days..
/apps/oracle/database/RFXD2/product/12.1.0.2/rdbms/audit/*.aud
{
missingok
nomail
postrotate
/usr/bin/find /apps/oracle/database/RFXD2/product/12.1.0.2/rdbms/audit/ -name "*aud*"
-type f -mtime +30 -exec rm {} ;
endscript
}
/oraadm/diag/rdbms/rfxd2/RFXD2/trace/*.trc
{
missingok
nomail
postrotate
/usr/bin/find /oraadm/diag/rdbms/rfxd2/RFXD2/trace/ -name "*trc*"
-type f -mtime +30 -exec rm {} ;
endscript
}
/oraadm/diag/rdbms/rfxd2/RFXD2/trace/*.trm
{
missingok
nomail
postrotate
/usr/bin/find /oraadm/diag/rdbms/rfxd2/RFXD2/trace/ -name "*trm*"
-type f -mtime +30 -exec rm {} ;
endscript
}
/oraadm/diag/rdbms/rfxd2/RFXD2/trace/alert_RFXD2.log {
notifempty
size 1M
copytruncate
dateext
missingok
rotate 20
compress
}