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.
Backup your data. See Back up your existing Pentaho products and install Pentaho 10.2.
If the Pentaho Server is currently running, stop it.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
Make sure that your Postgresql instance is up and running.
Browse to the
<*your pentaho directory*>/pentaho-server/data/postgresqlfolder and using any text editor, open thecreate_quartz_postgresql.sqlfile.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.
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.sqlThe new Quartz scheduler table prefixed with
QRTZ6_is created. Any existingQRTZ5_scheduler database is retained. However, starting the Pentaho Server at this point will result in an empty schedule.If you want to retain your existing scheduler database, using any text editor, open the
migrate_old_quartz_data_postgresql.sqlfile.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.
Run the migration script:
<*your pentaho directory*>pentaho-server/data/postgresql/migrate_old_quartz_data_postgresql.sqlRestart 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?

