Initialize Quartz for MS SQL Server

Follow the steps below to initialize a new Quartz database for a MS SQL Server 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 MS SQL Server instance is up and running.

  3. Browse to the <*your pentaho directory*>/pentaho-server/data/sqlserver folder and using any text editor, open the create_quartz_sqlServer.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 sqlcmd utility window, or from Microsoft SQL Server Management Studio, run the creation script:

    <*your pentaho directory*>/pentaho-server/data/sqlserver/create_quartz_sqlServer.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_sqlserver.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:

    <y*our pentaho directory*>/pentaho-server/data/sqlserver/migrate_old_quartz_data_sqlserver.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?