Setting up a database

Set up a database for your runtime servers to persist entity data and system state data.

Before you begin

A relational database can be configured to store the runtime state while Insight Server is running. After a system outage, the stored runtime state can be recovered from the database. The runtime state includes entity business information, in-progress transactions, and the history of events and event data.

Decide on whether to persist the runtime data in a database by balancing the following factors:

  • The value of the business information in the runtime state of the system is sufficiently valuable.
  • The risk of a full system outage is sufficiently high.
  • The performance impact to the business case is sufficiently small.

About this task

If persistence is required, you must set up a database by using the provided SQL scripts.

Tip: The database can exist on a separate computer, or on a computer that hosts a server.

Decision Server Insights includes a DB2® database script DB2Distrib.sql, which is in <InstallDir>/runtime/ia/persistence/sql/DB2, and an Oracle database script OracleDistrib.sql, which is in <InstallDir>/runtime/ia/persistence/sql/Oracle.

Tip: Because site-specific requirements vary greatly, the DB2Distrib.sql and OracleDistrib.sql files specify only the basic structure of the required tables. Attributes such as LOB column sizes, table spaces and LOB locations have a default value, or are not specified. A database administrator might want to modify a copy of these files to define the performance-related attributes. For more information, see the related tasks.

Procedure

To set up a database, you run the SQL statements from a command window or a database client.

Results

After the SQL script is run, an administrator can check the database to validate the following tables are created:

Database tables Description
DELAYEDEVENTS Data about the events that are due to be processed at a specific time.
ENTITIES Data about the entities in the run time.
EVENTSTORE Data about the event history that is related to entities.
INBOUNDEVENTS Data about the events that are waiting to go into an agent.
JOBHISTORY Data about the stored global aggregates.
JOBRESULTS Data about the stored global aggregates.
OUTBOUNDEVENTS Data about the events that are waiting to be sent, or in progress of being sent, to an outbound endpoint.
RULESETS Data about the rule engine state.

What to do next

When a server that is configured for database persistence and ready to start, run the server start command. After the server is started, run the dataLoadManager finalize command to activate the persistence.