You can use SQL scripts to create a dedicated schema in the database.
If you set the Rule Execution Server persistence to datasource or jdbc and you intend to use Decision Warehouse to store your test execution results, you must create a dedicated schema in the database that contains these tables and views. To do so, you can use the provided SQL scripts, located in <ODM_InstallDir>/executionserver/databases. A readme file in this directory provides additional information about the scripts.
The script that creates the Decision Warehouse database schema is named trace_<database_name>.sql.
The Installation Settings wizard in the Rule Execution Server console creates all the necessary tables for Rule Execution Server and for Decision Warehouse. If you are configuring Decision Validation Services and you have already run the Installation Settings wizard to create the tables, you do not have to create database resources manually. However, if you did not use the wizard to create database resources, you must run the script to create the Decision Warehouse database schema.
Select * from SYSCAT.BUFFERPOOLS
CREATE BUFFERPOOL BP32K SIZE 2000 PAGESIZE 32K
CREATE TABLESPACE RESDWTS PAGESIZE 32K BUFFERPOOL BP32K;
CREATE TABLESPACE RESDWTS PAGESIZE 32K MANAGED BY Database
USING [ FILE 'C:\DB2\Container.file' 640 ] BUFFERPOOL BP32K;
If you completed this task as part of the Rule Execution Server configuration, you do not have to do this a second time. It is included here solely for completeness.
If you use Command Editor to run the scripts, you must log in with the credentials that you use for the data source for Rule Execution Server.
Use any tool that can handle SQL to import and run the SQL scripts. The tools provided for each database include:
Database | Database tool |
---|---|
IBM DB2 | DB2 command line processor |
Derby | ij command line processor |
MySQL | mysql command line processor |
Oracle | sqlplus command line processor |
Postgre SQL | Postgre SQL command line tool |
SQL Server | Query Tool |
Sybase | isql command line processor |
Install a database client for the database that you use. Refer to the documentation of the database for more information.
The default CLOB size might not be sufficient for the FULL_EXECUTION_TRACE field in the EXECUTION_TRACES table. You might need a size qualifier if SQL raises exceptions with the <Lob-Value> reason code.