The Oracle TriggerClosed The Oracle Trigger tool uses the Oracle Server trigger functionality to create a trigger on a table of a specified Oracle data source. When a specified data modification is attempted, such as, an attempt to add or delete a table row, the trigger then causes a task to run. step triggers a task to run when a specific table in an Oracle database is updated, deleted, or has a new row inserted.

In addition, global variablesClosed Variables are created and used extensively throughout and can either have fixed values or values that are dynamically populated when a task is run. Global variables are available for all tasks in this BPA Platform installation. Once created, global variables can be used by any task. created for the task can be mapped to a specific column in the selected table, so that the column value may be used in other steps.

Prerequisites

Adding an Oracle Trigger Agent

The Oracle Trigger Agent is a service that sits between BPA Platform and an Oracle server. It can be installed onto any Oracle Server. It is responsible for both maintaining the triggers in Oracle Server, and for handling the running of a task once a trigger has been fired.

When an Oracle trigger is fired, a connection is made to the agent service which then launches the applicable task.

The Oracle Trigger Agent must be installed on the computer hosting the Oracle database instance, on a Windows Server operating system.

For a detailed description of how to install the Agent, see How to Install the Oracle Trigger Agent.

(Optional) Polling the Oracle Database

The Oracle Trigger Agent constantly polls its monitored database for any changes. In high-traffic databases where inserts, updates, and deletes happen frequently, this may not be suitable. Do this in the Oracle Global Configuration interface.

You open this interface from the resources tree — expand System > Tools > Event and double-click Oracle Trigger in the items list.

Adding a Task Step

To add a new Oracle Trigger step to an existing task:

  1. Open the relevant task (if creating a new task, see How to Create a Basic Task).
  2. Either:
Click and drag the Oracle Trigger icon from the Task Browser to the task Design area.

–OR–

From the task's Design tab, right-click on empty space and select New > Event > Oracle Trigger.
  1. In the General tab, Name your task step.
  2. Go to the Main tab and enter the database details for the Oracle Trigger Agent to monitor.
  3. Go to the Trigger tab and configure the database operations that trigger this task to run.
  4. Click  to save the task step.