DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: create bAtch file to delete old listener log on windows

Threaded View

  1. #5
    Join Date
    Apr 2006
    Posts
    377
    You can use forfiles to delete/move older files on Windows. However, you'll have to either shutdown the listener or find a utility that will allow you to delete/move an open file.

    Forgot to mention, you do have an option to avoid shutting down the listener. You could run the following command to rename the listener.log file while the listener is running:

    Code:
    C:\> lsnrctl
    LSNRCTL> SET LOG_FILE c:\oracle\network\log\new_listener.log
    Last edited by ebrian; 07-12-2008 at 06:49 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width