Initialize Quartz for PostgreSQL

Follow the steps below to initialize a new Quartz database for a PostgreSQL Pentaho Server repository.

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.

    For instructions on stopping the server, see Stop and start the Pentaho Server and repository.

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

  3. Browse to the <*your pentaho directory*>/pentaho-server/data/postgresql folder and using any text editor, open the create_quartz_postgresql.sql file.

  4. As needed, modify the create script according to your existing setup for the user, password, database, and other required information and then save and close the file.

  5. Open a PSQL Console window from a terminal and using the pgAdminIII tool, and then run the creation script:

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

    The new Quartz scheduler table prefixed with QRTZ6_ is created. Any existing QRTZ5_ scheduler database is retained. However, starting the Pentaho Server at this point will result in an empty schedule.

  6. If you want to retain your existing scheduler database, using any text editor, open the migrate_old_quartz_data_postgresql.sql file.

  7. As needed, modify the migration script according to your existing setup for the user, password, database and other required information and then save and close the file.

  8. Run the migration script:

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

  9. Restart the Pentaho Server.

The original Quartz scheduler database is migrated to the new Quartz database.

Note: The original QRTZ5_ data is retained. You can delete it at your discretion after confirming the migration was successful and complete within the Pentaho Server repository.

Last updated

Was this helpful?