RE: Script to remove network log/trace files

  • From: <rama.ari@xxxxxxxxxxxxx>
  • To: <cemail_219@xxxxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Mon, 8 Jan 2007 09:36:03 -0600

Dex,

You can write small batch file with following command and schedule it as
task scheduler in windows environment. I strongly suggest you test in
dev/test environment before implementing in prod env.

forfiles -p D:\oracle\ora92\network\admin\logs -m *.log -d -30 -c "CMD
/C DEL @FILE"

Thanks,

Rama Ari
-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of J. Dex
Sent: Sunday, January 07, 2007 5:10 PM
To: oracle-l@xxxxxxxxxxxxx
Subject: Script to remove network log/trace files

Does anyone have a script for Windows that will archive old network log
and 
trace files and also remove any that are more than a month old (or at
least 
be able to run under a monthly scheduled task)?    I have done this in
UNIX 
but not on Windows.

_________________________________________________________________
Communicate instantly! Use your Hotmail address to sign into Windows
Live 
Messenger now. http://get.live.com/messenger/overview

--
//www.freelists.org/webpage/oracle-l




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.
--
//www.freelists.org/webpage/oracle-l


Other related posts: