Step 2: Run SQL scripts

To use PostgreSQL as the database for your Pentaho Repository, you must initialize the Jackrabbit, Quartz, Hibernate, and Operations Mart components used by the Pentaho Repository to work with PostgreSQL. You can run SQL scripts developed by Pentaho to create and initialize these components.

Perform the following steps to run the PostgreSQL-specific initialization SQL scripts provided in the Pentaho Data Integration and Analytics software distribution.

Note: You may need administrator permissions to run these scripts on the host OS server.

  1. If the Pentaho Server is currently running, stop it. See Start and stop the Pentaho Server for configuration.

  2. Make sure that your PostgreSQL instance is up and running.

  3. Open a PSQL Console window from a terminal and run the following SQL creation scripts in the order shown:

    1. <*your pentaho directory*>pentaho-server/data/postgresql/create_quartz_postgresql.sql

    2. <*your pentaho directory*>pentaho-server/data/postgresql/create_jcr_postgresql.sql

    3. <*your pentaho directory*>pentaho-server/data/postgresql/create_repository_postgresql.sql to initialize Hibernate

    4. <*your pentaho directory*>pentaho-server/data/postgresql/pentaho_mart_postgresql.sql

    The Jackrabbit, Quartz, Hibernate, and Pentaho Operations Mart components are created.

  4. Start the Pentaho Server.

You have initialized PostgreSQL to be used as the database for the Pentaho Repository.

Note: You unpacked the Pentaho Operations Mart SQL file while preparing your environment for the archive installation process. Depending on your environment, see Prepare your Windows environment for an archive install or Prepare your Linux environment for an archive install for details.

Last updated

Was this helpful?