Oracle: Rotate Listener logfile

One of the larger growing log fileon Oracle RDBMS is listener.log located at $TNS_ADMIN. You can clean it up and put the logfile to rotation without shutting down the listener.

$ ls -l *.log
-rw-r----- 1 oracle dba 13387343 Mar 18 09:53 listener.log

Truncate file/ Clear the logfile:

cat /dev/null > listener.log

or

echo "" > listener.log

Now, listener.log will be of 0 bytes.

No comments:

Post a Comment