Database Administration (MOSC)

MOSC Banner

Listener log rotation in 19c not working

I am testing listener log rotation in 19c by creating a file in /etc/logrotate.d. The following is the contents. However, after I set this I can see that the logs are deleted rather than rotated.

My objective is to keep the logs will be rotated hourly, 6 logs will be there in compressed format.

Please help.

-------------------------------------------------------------------------------------

/u01/app/grid/diag/tnslsnr/cirs010101/listener/trace/listener.log /u01/app/odaorabase/oracle/diag/tnslsnr/cirs010101/listener/trace/listener.log

{

 hourly

 copytruncate

 missingok

 rotate 6

 compress

}

-----------------------------------------------------------------------------

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center