Prepare the Database
This section describes the steps you need to follow to prepare the database.
The Pentaho Data Integration tool requires the creation of the actual data warehouse database. To prepare the Pentaho repository, you must:
- Create database users in either Oracle or SQL Server.
- Create storage for BPM People Planner.
Create Database Users
To create database users in Oracle:
- From the command prompt, run the following: sqlplus system/manager
It may be necessary to specifically connect to the database to be used.
- In sqlplus, enter the following:
create user MACONOMY_DWH identified by MACONOMY_DWH;
grant dba to MACONOMY_DWH;
- If you do not want to use default database settings for the user's default table space and temporary table space, you can change them with statements such as the following in sqlplus:
alter user MACONOMY DWH default table space <x1> temporary table space <y1>;
where <x1>, <x2>, <y1>, <y2> should be replaced by relevant values. - To confirm that the settings work, enter the following:
connect MACONOMY_DWH / MACONOMY_DWH;
- Exit sqlplus.
To create database users in MS SQL Server:
- Log in to Microsoft SQL Server Management Studio with the user name sa.
- Right-click Databases and create the database MACONOMY_DWH.
- In the Options tab, set collation to
SQL_Latin1_General_CP1_CS_AS.
Note: This makes the SQL data warehouse case-sensitive to match with Maconomy database for an accurate comparison of data for the ETL.
- Expand Security, right-click Logins, and select New Login.
- Enter the name MACONOMY_DWH for the login.
- Set Authentication to SQL Server Authentication.
- Enter a password.
- On the left-hand side of the window, click User Mappings.
- On the User Mappings dialog box, map the database to the corresponding user.
- Specify the role db_owner.
- To check that the databases work, log out and then log in again with the data warehouse database credentials.
For more information, see Build the BPM Data Warehouse .
Create Storage for BPM People Planner
Use the steps above to create storage for BPM People Planner. Replace (what) with the user PEOPLEPLANNER_DWH.
For BPM People Planner other parameters in the kettle.properties file are needed:
- #DWH_CONNECTION_TYPE = ORACLE
- DWH_CONNECTION_TYPE = SQL
- #PP_CONNECTION_TYPE = ORACLE
- PP_CONNECTION_TYPE = SQL
- #PP_STAND_ALONE = YES
- PP_STAND_ALONE = NO
- # How many years old AvailableHours data should be loaded into DWH
- PP_ACTUAL_YEAR_RANGE_MIN = 2
- # How many years in future since current date
- # should be loaded for AvailableHours into DWH
- PP_ACTUAL_YEAR_RANGE_MIN = 2
The "#" symbol means that all strings following it are comments. By changing its position, you can switch which RDBMS system to use to access the DWH database and which one to use for PeoplePlanner.
Parameter PP_STAND_ALONE defines how PeoplePlanner is used, meaning, is it used in integration with Maconomy system or as a standalone system.
The last two parameters define how many years before and after the current date should be loaded in the DWH.