Problem
-------
On 64 bit box, listener log file stops logging when size reaches 4.1 gb.
There could be some internal limitation from oracle side because of which it is not able to update log file.
Solution
--------
We can rotate log file, below are the steps.
1. take a back up of listener log file, check available disk space before going this. If you want to preserve time stamp use cp -p
cp -p log file name log file name_bkp
2. truncate listener log file
cat "" > log file name
3.
lsnrctl
set current_listener
set log_status off
set log_status on
4. check if listener log file is getting updated.
Additional command that could help.
fuser
You can write small script to rotate listener log file and schedule cronjob to be executed every one month or so. Instead of using "log file_bkp" use "log_file_`date`"
Regards
No comments:
Post a Comment