I have PATROL that monitors some features on my database. It is creating a listener log almost every minute and its now in hundreds of megs.
Questions;
1/ Can I remove the listener.log (as you can you with the alert.SID.log) and it would generate a new one once needed?
2/ should I re-direct the listener log location from within listener.ora file? Which is the better option. I would prfer the first but what do you think? Or is there a third?
Thanks
1/ Can I remove the listener.log (as you can you with the alert.SID.log) and it would generate a new one once needed?
YES.
Code:
2/ should I re-direct the listener log location from within listener.ora file? Which is the better option. I would prfer the first but what do you think?
Depends on situation.
You can always change the log file directory by setting
LOG_DIRECTORY in the listener.ora file.
You can also change the LOG_DIRECTORY value dynamically using lsnrctl utility.
Alway prefer LSNRCTL reload ( where ever applicable ) - this will not down the listener.
1/ Can I remove the listener.log (as you can you with the alert.SID.log) and it would generate a new one once needed?
YES.
Ah, kind of yes, kind of no.
If you are on some Unix platforms, the listener will keep writing to the listener.log even though it is deleted. It will not generate a new listener.log until you bounce the listener.
This is different than the alert.log in that the alert.log will generate a new file as soon as it needs to write something.
Bookmarks