Download Embedding IBM Informix

Transcript
Event
class
79
Event ID
Event ID message
79001
Dynamically added chunk chunk_name to space
'space_name'
Path: path, offset offset_number kilobytes
Size: size kilobytes
Here are the descriptions of some of the elements in Table 6-3 on page 160:
򐂰 Event class message
The event class message represents from which specific area of the Informix
server the alarm comes. Table 6-3 on page 160 lists all the event messages
currently available.
򐂰 Event specific message
This is usually the text of the message written to the message log.
򐂰 Event see-also file
For some events, the database server writes additional information to a file
when the event occurs. The path name in this context refers to the path name
of the file where the database server writes the additional information.
򐂰 Uniqueid
A unique event identifier (event ID) for the specific message
6.5.2 Custom alarm program
It is possible to write an alarm program that will take action on all the events listed
in Appendix C, “Event classes and event IDs” on page 431. It should be noted
that many of these events can be avoided by using tasks to monitor the system
and take corrective actions using the SQL adminstration API. These subjects are
discussed in Chapter 7, “The SQL administration API” on page 167 and in
Chapter 9, “Automating management through tasks and sensors” on page 203.
When modifying the alarm program, it should be treated as though it was a
multi-threaded program, because multiple copies of the alarm program can run
at the same time. This happens when multiple alarms are generated almost
simultaneously, where the first copy of the alarm program is still running when a
second copy is called. For this reason, actions such as writing to a file are
dangerous without synchronization.
One reason to write a custom alarm program is to take automatic actions based
on specific alarms. For example, event class 20, event ID 20001(Logical logs are
full—backup is needed) can be caught and a backup started.
Chapter 6. IBM Informix configuration for embeddability
161