Database Reference
In-Depth Information
Unfortunately, the WebLogic Server log rotation affects only the
soa_server1.log file but not the soa_server1.out file, which is generated
when you use Node Manager to start up and shut down the SOA managed serv-
er. To enable log rotation of the soa_server1.out log file on a Linux-based
system, perform the following steps:
1.
Ensure that you have the logrotate binary installed on your operating
system:
ls /usr/sbin/logrotate
2.
Create a logrotate configuration file (for example, under /home/or-
acle/scripts/logrotate.conf) with the following contents, setting
[Domain] to your domain name:
/u01/app/oracle/Middleware/user_projects/domains/ [Domain] /servers/soa_server?/logs/soa_server?.out {
missingok
copytruncate
compress
rotate=5
size=5M
}
3.
Create a logrotate status file (for example, under /home/oracle/
scripts/logrotate.status) with the following contents, setting [Do-
main] to your domain name:
logrotate state -- version 2
"/u01/app/oracle/Middleware/user_projects/domains/ [Domain] /servers/soa_server1/logs/soa_server1.out" 2012-1-1
4.
Add a new crontab entry by typing crontab -e and adding the following
line:
0,15,30,45 * * * * /usr/sbin/logrotate -s $HOME/scripts/logrotate.status $HOME/scripts/logrotate.conf
Search WWH ::




Custom Search