БД Алармов и событий — различия между версиями
Материал из archestra.info
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
Строка 13: | Строка 13: | ||
#Использовать утилиту для Intouch’a TSAlmDBPrt Utility, с помощью которой можно соединиться с БД, отобразить данные и распечатать их в файл. (правда, она достаточно давно создана и может некорректно работать на современных ОС) | #Использовать утилиту для Intouch’a TSAlmDBPrt Utility, с помощью которой можно соединиться с БД, отобразить данные и распечатать их в файл. (правда, она достаточно давно создана и может некорректно работать на современных ОС) | ||
#Также можно печатать поступающие алармы/события в файл с помощью утилиты Alarm Printer, из состава Intouch утилит - она может печатать алармы в текстовой файл или сразу на принтер (О ней можно подробнее узнать из док-та ITAlarmsAndEvents.pdf на дистрибутиве с Intouch) | #Также можно печатать поступающие алармы/события в файл с помощью утилиты Alarm Printer, из состава Intouch утилит - она может печатать алармы в текстовой файл или сразу на принтер (О ней можно подробнее узнать из док-та ITAlarmsAndEvents.pdf на дистрибутиве с Intouch) | ||
+ | |||
+ | |||
+ | == Разные вопросы == | ||
+ | === Утилита purge была применена, но размер файла БД не уменьшился === | ||
+ | *ISSUE: customer purge the whole AlmDB. The DB is empty but the size (files .mdf, .ldf) doesn't change. | ||
+ | *CAUSE: This is normal behaviour of SQL Server (or Express) that cleans the DB but mantain the size of the file. | ||
+ | *SOLUTION 1: open SQLManager, slect the DB and use the task Shrink. | ||
+ | *SOLUTION 2: Deleted the DB and created a new one | ||
+ | === Размер БД больше 6ГБ === | ||
+ | *Issue: The alarm database size is over 6 Gb, disk space is running out. | ||
+ | *Answer: | ||
+ | *#Use Shrink utility (under Tasks menu) in SQL Server Management Studio to reduce the log file size (the log file for SQL Server database) | ||
+ | *#Use Purge/Archive utility to purge old records | ||
+ | === Как контролировать БД алармов === | ||
+ | *Issue: How to maintain alarm database (size growing) | ||
+ | *Answer: | ||
+ | **The best is to use Alarm Purge/Archive utility to limit the size of alarm database | ||
+ | **Create a new alarm database periodically | ||
+ | **Shrink the datatabase (an SQL Server function). But this should be only used as way of mitigation, not a solution. | ||
+ | |||
+ | === Как ограничить БД алармов === | ||
+ | *Issue: Would like to limit AlarmDB size | ||
+ | *Answer: | ||
+ | **Use Alarm DB purge. | ||
+ | **Set "Number Days OnLine" on Purge Properties | ||
+ | **Then Schedule Purge on Purge/Archive, Run As Service and Activate |
Версия 14:52, 1 сентября 2015
см. также:
Содержание
Печать алармов
Варианты вывода алармов на печать:
- Использовать штатные функции InTouch: PrintScreen(), PrintWindow() (подробнее см. ITScriptsAndLogic.pdf, раздел Printing Windows at Run Time)
- Использовать дополнительный Wizard Intouch'a WWGenericSQLGrid, который позволит вам сохранить информацию в формате Excel и/или вывести данные на печать.
- Использовать импорт внешних данных в самом Excel, запросив данные с базы алармов (напр. WWALMDB )
- Использовать утилиту для Intouch’a TSAlmDBPrt Utility, с помощью которой можно соединиться с БД, отобразить данные и распечатать их в файл. (правда, она достаточно давно создана и может некорректно работать на современных ОС)
- Также можно печатать поступающие алармы/события в файл с помощью утилиты Alarm Printer, из состава Intouch утилит - она может печатать алармы в текстовой файл или сразу на принтер (О ней можно подробнее узнать из док-та ITAlarmsAndEvents.pdf на дистрибутиве с Intouch)
Разные вопросы
Утилита purge была применена, но размер файла БД не уменьшился
- ISSUE: customer purge the whole AlmDB. The DB is empty but the size (files .mdf, .ldf) doesn't change.
- CAUSE: This is normal behaviour of SQL Server (or Express) that cleans the DB but mantain the size of the file.
- SOLUTION 1: open SQLManager, slect the DB and use the task Shrink.
- SOLUTION 2: Deleted the DB and created a new one
Размер БД больше 6ГБ
- Issue: The alarm database size is over 6 Gb, disk space is running out.
- Answer:
- Use Shrink utility (under Tasks menu) in SQL Server Management Studio to reduce the log file size (the log file for SQL Server database)
- Use Purge/Archive utility to purge old records
Как контролировать БД алармов
- Issue: How to maintain alarm database (size growing)
- Answer:
- The best is to use Alarm Purge/Archive utility to limit the size of alarm database
- Create a new alarm database periodically
- Shrink the datatabase (an SQL Server function). But this should be only used as way of mitigation, not a solution.
Как ограничить БД алармов
- Issue: Would like to limit AlarmDB size
- Answer:
- Use Alarm DB purge.
- Set "Number Days OnLine" on Purge Properties
- Then Schedule Purge on Purge/Archive, Run As Service and Activate