Entering content frame

This graphic is explained in the accompanying text Example: Log Backup After the LOGABOVELIMIT Event Locate the document in the library structure

If the log area of the database instance DEMODB on the PARMA database computer is more than 80% full, the database instance should trigger the LOGABOVELIMIT event. The event dispatcher should then immediately switch on the automatic log backup.

Prerequisites

·        The DBM operator (in the example OLEG with the password MONDAY) must have the DBInfoRead server authorization, see Concepts of the Database System, Server Authorizations for the DBM Server.

·        You must have created a backup medium mylogbackup for automatic log backup. See Concepts of the Database System, Backup Media.

Procedure

...

       1.      You activate the LOGABOVELIMIT event with the Database Manager CLI, assign the priority HIGH for this event and set the value at which the database instance is to trigger the event to 80 (%).

dbmcli -d DEMODB -u OLEG,MONDAY -n PARMA event_set LOGABOVELIMIT HIGH 80

OK

       2.      You add a new entry to the testconfig.cfg configuration file in the C:\test directory with the add command:

dbmevtdisp add C:\test\testconfig.cfg Name == LOGABOVELIMIT Priority == HIGH Value1 == 80 Command == "dbmcli -d DEMODB -u OLEG,MONDAY –n PARMA autolog_on mylogbackup"

OK

0

       3.      From your computer, you start the event dispatcher on the PARMA database computer with the following command:

dbmevtdisp start C:\test\testconfig.cfg –l C:\test\test.log –d DEMODB –u OLEG,MONDAY –n PARMA

Event Dispatcher instance 1 running

using configuration file C:\test\testconfig.cfg

event with name DISPINFO:DISPSTART not dispatched (count 0)

Result

An event dispatcher with the ID 1 (instance 1) has been started on the PARMA computer and is now monitoring the DEMODB database instance on the same computer. The event dispatcher logs its actions in the test.log log file.

Note

The event dispatcher triggers the DISPINFO:DISPSTART event every time it is started. As you have not added an entry to the configuration file for this event, you receive the message not dispatched.

See also:

Example: E-mail Notification After the DATABASEFULL Event

Overview of Event Dispatcher Commands

 

Leaving content frame