Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 28th, 2008, 06:36 AM
giteshtrivedi giteshtrivedi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 2 giteshtrivedi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 25 sec
Reputation Power: 0
VBScript - Purging of Listener.log

Hi,

We are working as Oracle DBA and we have more than 30 oracle databases on windows servers.

Our listener.log resides in %ORACLE_HOME%\network\log location. We want to purge this file and kept new file with same name.

We want to create script which can do following.
1) stop listener process and open the listener.log file
2) rename same file with today's date
3) create new file with same name "listener.log"
4) move last month's data in new listener.log
5) zip older one file and start listener process

Can anybody help me to create same thing. We are able to make shell script for doing this task for our unix databases.

Thanks a lot in advance

Reply With Quote
  #2  
Old May 28th, 2008, 03:43 PM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 34 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Quote:
Originally Posted by giteshtrivedi
Hi,

We are working as Oracle DBA and we have more than 30 oracle databases on windows servers.

Our listener.log resides in %ORACLE_HOME%\network\log location. We want to purge this file and kept new file with same name.

We want to create script which can do following.
1) stop listener process and open the listener.log file
2) rename same file with today's date
3) create new file with same name "listener.log"
4) move last month's data in new listener.log
5) zip older one file and start listener process

Can anybody help me to create same thing. We are able to make shell script for doing this task for our unix databases.

Thanks a lot in advance
What's name of the listener process? What folder do you want the old one in? etc.

And do you really need to compress a plain text file?
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #3  
Old May 28th, 2008, 10:44 PM
giteshtrivedi giteshtrivedi is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 2 giteshtrivedi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 25 sec
Reputation Power: 0
Quote:
Originally Posted by Nilpo
What's name of the listener process? What folder do you want the old one in? etc.

And do you really need to compress a plain text file?


Hi,

Thanks for replying.

Listener process name is LISTENER
In original path of listener (%ORACLE_HOME%\network\log) we should need to create old backup of file and also want to compress it.(If compressing is not possible then no problem).

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > VBScript - Purging of Listener.log


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT