Contents Index Automating Tasks Using Schedules and Events Understanding schedules

ASA Database Administration Guide
  Automating Tasks Using Schedules and Events

Introduction


Many database administration tasks are best carried out systematically. For example, a regular backup procedure is an important part of proper database administration procedures.

You can automate routine tasks in Adaptive Server Anywhere by adding an event to a database, and providing a schedule for the event. Whenever one of the times in the schedule passes, the database server executes a sequence of actions called an event handler.

Database administration also requires taking action when certain conditions occur. For example, it may be appropriate to e-mail a notification to a system administrator when a disk containing the transaction log is filling up so that the administrator can handle the situation. These tasks too can be automated by defining event handlers for one of a set of system events.

Chapter contents 

This chapter contains the following material:

Questions and answers 
To answer the question... Consider reading...
What is a schedule? Understanding schedules.
What is a system event? Understanding events
What is an event handler? Understanding event handlers
How do I debug event handlers? Developing event handlers
How does the database server use schedules to trigger event handlers? How the database server checks for scheduled times
How can I schedule regular backups? For an example, see Understanding schedules.
What kind of system events can the database server use to trigger event handlers? Understanding events.

CREATE EVENT statement.

What connection do event handlers get executed on? How event handlers are executed.
How do event handlers get information about what triggered them? Developing event handlers

EVENT_PARAMETER function [System]


Contents Index Automating Tasks Using Schedules and Events Understanding schedules