Home | Previous Page | Next Page   Appendix C. Event Alarms > Using ALARMPROGRAM to Capture Events >

Interpreting Error Messages

Some of the events that the database server reports to the message log cause it to invoke the alarm program. The class messages indicate the events that the database server reports.

The database server reports a nonzero exit code in the message log. In the alarm program, set the EXIT_STATUS variable to 0 for successful completion and to another number for a failure.

For example, if a thread attempts to acquire a lock, but the maximum number of locks that LOCKS specifies has already been reached, the database server writes the following message to the message log:

10:37:22  Checkpoint Completed:  duration was 0 seconds.
10:51:08  Lock table overflow - user id 30032, rstcb 10132264
10:51:10  Lock table overflow - user id 30032, rstcb 10132264
10:51:12  Checkpoint Completed:  duration was 1 seconds.

When the database server invokes alarmprogram.[sh|bat] or your alarm program, it generates a message that describes the severity and class of the event. If the severity is greater than 2, the message takes the following format:

Reasonably severe server event:
Severity: 3
Class ID: 21
Class msg: Database server resource overflow: 'Locks'.
Specific msg: Lock table overflow - user id 30032, rstcb 10132264 
See Also:                             # optional message
The following message appears at the end of each e-mailed message:
This e-mail was generated by the server ALARMPROGRAM script on
 servername
 because something untoward just happened to eventname.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]