Link to home
Start Free TrialLog in
Avatar of B_Pati
B_Pati

asked on

script to delete listner log automated process

we should be doing this on any Network/Listener/SQLnet.log files on all the DB servers.at this point .we need a automated process to perform this process. So can you please  work on writing a script to perform this
Avatar of B_Pati
B_Pati

ASKER

please provide me the script which i can run in all databases
- do you mean the phyisical file in the machine? you can create a dos .BAT file with command as follows:
@echo off
del c:\folder\sqlnettrace.trc
del c:\folder\sqlnet.log

- then save it somewhere and schedule to run that .BAT file daily/at your desired period using Windows Task Scheduler.
 
- for trace file, the filename is generated automatically therefore you can issue a delete all command such as del c:\folder\*.trc
Avatar of Chakravarthi Ayyala
I'm sorry.  But, I did not get your OS.
In Linux/AIX starting with Oracle 11g, Oracle automatically rotates the listener log file.  Hence, we need not write any script for doing the same.
I presume the same behviour with Windows too.
Avatar of B_Pati

ASKER

it is linux envirinment...

please can you help me with  the script how to truncate the listiner
ASKER CERTIFIED SOLUTION
Avatar of johnsone
johnsone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of B_Pati

ASKER

please provide me the script to run  ksh to run on Linux schedule
Avatar of B_Pati

ASKER

Solved