/*
 *
 * Licensed Materials - Property of IBM
 * 5724X98 5724Y15 5655V82 5724X99 5724Y16 5655V89 5725B69 5655W88 5725C52 5655W90 5655Y31
 * Copyright IBM Corp. 1987, 2015 All Rights Reserved
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with
 * IBM Corp.
 *
 */

// ------------------------------------------------------------------------------------
//  This file is provided by IBM Decision Server
// ------------------------------------------------------------------------------------

In the same directory as this readme.txt you will find two sql files per database supported by Rule Execution Server.

For each database, you will find two SQL scripts which handle instructions to create the
database resources.

The repository* scripts contain the database schema of Rule Execution Server
The trace* scripts contain the database schema of Decision Warehouse.

You will find the complete list of supported databases in the documentation.

======================
Prerequisites
======================

   * The SQL scripts attempt to drop and create tables and indexes. Verify that your database
     user has the corresponding rights before running these scripts.

   * For Oracle, in addition to tables and indexes, sequences and a view are also created. 
     Also verify that your database user has the corresponding rights before running these scripts.
   
   * For DB2, the Decision Warehouse database schema uses a buffer pool of 32k page size. The default name of the buffer pool
     is BP32K.
     

======================
How to use the scripts
======================

To use these SQL scripts, you load them into a database tool that can execute SQL instructions.
Each database provides such a tool:
   * 'ij' for Derby
   * 'command center' or 'command line processor' for IBM DB2
   * 'SqlTool' for Hypersonic HSQLDB
   * 'mysql' for MySQL
   * 'sqlplus' for Oracle
   * 'Pointbase console' for Pointbase
   * 'Query Tool' for SQL Server
   * 'isql' for Sybase

Refer to the documentation of these tools for more information.

======================
Notes
======================

For the schema, you can only change the RULESET_RESOURCES.NAME length. Other modifications are not supported (expect adding index).
