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.
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 MS SQL Server instance is up and running.
Browse to the
<*your pentaho directory*>/pentaho-server/data/sqlserverfolder and using any text editor, open thecreate_quartz_sqlServer.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 sqlcmd utility window, or from Microsoft SQL Server Management Studio, run the creation script:
<*your pentaho directory*>/pentaho-server/data/sqlserver/create_quartz_sqlServer.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_sqlserver.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:
<y*our pentaho directory*>/pentaho-server/data/sqlserver/migrate_old_quartz_data_sqlserver.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?

