|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
Quote:
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! |
|
#3
|
|||
|
|||
|
Quote:
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). |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > VBScript - Purging of Listener.log |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|