Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space TMAG and version 7.13
Sv translation
languageru

Ротация логов базы данных - это процесс архивирования, хранения и удаление старых данных в журналах, нужный для экономии и освобождения свободного дискового пространства. В Traffic Monitor ротация настроена на:

  1. Логи базы данных:
    1. xml-файл, содержащий журнал ошибок и важных сообщений в папке /u01/app/oracle/diag/rdbms/iwtm/iwtm/alert. Срок хранения файла - 1 год. Он ротируется по 10 Мб и удаляется автоматически;
    2. trc-, trm-файлы, содержащие подробную информацию об ошибках БД (trace files) в папке /u01/app/oracle/diag/rdbms/iwtm/iwtm/trace. Срок хранения файлов - 30 дней, после которых удаляются автоматически;
    3. alert_iwtm.log -  лог БД в текстовом формате в папке /u01/app/oracle/diag/rdbms/iwtm/iwtm/trace. Он ротируется службой logrotate по 100 Мб и удаляется после превышения количества в 1000 файлов. 
  2. Логи сетевой службы listener:
    1. xml-файл, содержащий логи службы listener в папке /u01/app/oracle/diag/tnslsnr/hostname/listener/alert. Срок хранения файла - 1 год. Он ротируется по 10 Мб и удаляется службой crond.
    2. trc-, trm-файлы, содержащие подробную информацию об ошибках службы listener.  Срок хранения файлjd файлов - 30 дней, после которых удаляются службой crond.
    3. listener.log - лог службы listener в текстовом формате в папке /u01/app/oracle/diag/tnslsnr/hostname/listener/alert. Он ротируется службой logrotate по 100 Мб и удаляется после превышения количества в 100 файлов. 

Настройки службы crond для удаления старых файлов находятся в  /etc/cron.daily/delete_old_oracle_logs.cron.

Настройки службы logrotate находятся в  в  /etc/logrotate.d/iwtm-oracle-conf-server.

Sv translation
languageen

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:

  1. Database logs:
    1. 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 Mb of the file. The file is deleted automatically.
    2. 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.
    3. 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 folder. Rotation applies to each 100 MB Mb of the file. The file is rotated by the logrotate service and is deleted when the number of files exceeds 1000. 
  2. Logs of listener network service:
    1. XML file that contains logs of the listener service. The file is located in the /u01/app/oracle/diag/tnslsnr/hostname/listener/alert folder folder. The file is stored for one year. The file is stored for one year. Rotation applies to each 10 MB Mb of the file. The file is deleted automatically by the crond service.
    2. 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. 
    3. 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 folder. Rotation applies to each 100 MB 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.