Rotation of database logs is the process of archiving, storing, and deleting obsolete data in logs. This process is required to save space and free up disk space. In Traffic Monitor, rotation applies to: - Database logs:
- XML file that contains a log of errors and important messages. It is located in the
/u01/app/oracle/diag/rdbms/iwtm/iwtm/alert folder. The file is stored for one year. Rotation applies to each 10 Mb of the file. The file is deleted automatically. - TRC and TRM files that contain detailed information about DB errors (trace files). They are located in the
/u01/app/oracle/diag/rdbms/iwtm/iwtm/trace folder. Files are stored for 30 days and then they are automatically deleted. alert_iwtm.log - a database log file in a text format. It is stored in the /u01/app/oracle/diag/rdbms/iwtm/iwtm/trace folder. Rotation applies to each 100 Mb of the file. The file is rotated by the logrotate service and is deleted when the number of files exceeds 1000.
- Logs of listener network service:
- XML file that contains logs of the listener service. The file is located in the
/u01/app/oracle/diag/tnslsnr/hostname/listener/alert folder. The file is stored for one year. The file is stored for one year. Rotation applies to each 10 Mb of the file. The file is deleted automatically by the crond service. - TRC and TRM files that contain detailed information about errors of the listener service. Files are stored for 30 days and then they are automatically deleted by the crond service.
listener.log - a log file of the listener service in a text format. The file is located in the /u01/app/oracle/diag/tnslsnr/hostname/listener/alert folder. Rotation applies to each 100 Mb of the file. The file is rotated by the logrotate service and is deleted when the number of files exceeds 100.
Settings of the crond service for deleting obsolete files are located in /etc/cron.daily/delete_old_oracle_logs.cron. Settings of the logrotate service are located in /etc/logrotate.d/iwtm-oracle-conf-server. |