星期三, 11月 18, 2015

在Redhat 6 rotate Oracle RAC 11g scan listener log 的方法

Redhat 6 rotate Oracle RAC 11g scan listener log 的方法

 

cat /etc/logrotate.d/listener_scan1

/u01/app/grid/11203/log/diag/tnslsnr/dallinux01/listener_scan1/trace/listener_scan1.log {

weekly

copytruncate

rotate 2

compress

}

 

ref:

http://www.dbaexpert.com/blog/rotate-all-the-log-files-in-the-rac-environment/

http://www.putorius.net/2012/11/rotating-custom-logs-with-logrotate-on.html

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...