Q
Problem solve Get help with specific problems with your technologies, process and projects.

Deleting archive logs in Windows 2000

Is there a way I can delete the archive log files that are older than three days in Windows 2000?

Yes, you can. In Unix, I have a scheduled job which does this for me. Unfortunately, there is no native way to script this in a Windows platform since the DIR command cannot find files older than a specific date. To cure this problem, I had to create a Perl script which does this for me. You can find a copy of this Perl script on my Web site at http://www.peasland.net/delete_old.pl and of course, you'll need to install Perl on your machine to get this to work. A good installation of Perl can be found on ActiveState's Web site (http://www.activestate.com).

In my Perl script, there is a variable that you can easily modify that will specify how old the files must be. You'll also have to change the directory that the files reside in for your specific installation.

I also schedule this job using Window's AT command. This way, I can automate the removal of these older files.

For More Information


Dig Deeper on Oracle database design and architecture

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close