Starting with version 11.4.0 of Spotfire Server, you can use command-line commands to migrate a Spotfire database instance or an action database instance within the same database server i.e. within MS SQL Server or within Postgre SQL, etc.
Note:
- To use these commands, you need the Microsoft SQL and Oracle drivers; however, these operations are not supported with the bundled Microsoft Data Direct and Oracle Data Direct drivers.
- If Spotfire Server is configured to authenticate with the source Spotfire database using Windows Integrated Authentication, then you must run the command as the same user that Spotfire Server authenticates. Otherwise, the command tool cannot authenticate with the database.
- Create a working backup of your Spotfire database.
- You must have created the new Spotfire database, with the same version.
To perform, please follow these steps:
- Turn off all services that run toward the existing database. Please note, If you are migrating a database for a Spotfire Server cluster, turn off all servers in the cluster before performing the migration.
- Open a command-line window.
- Browse to the directory <installation-directory>/tomcat/spotfire-bin.
- Run the appropriate command either migrate-db or migrate-action-db, specifying the newly-created Spotfire database as your target database.
Example:
The following example demonstrates migrating the Spotfire database from its current database instance to a target database instance within the same database server and the --update-bootstrap will update the bootstrap file with the new DB details
config.bat migrate-db --tool-password=password --target-driver-class=com.microsoft.sqlserver.jdbc.SQLServerDriver --target-database-url=jdbc:sqlserver://my_host_name:1433/my_target_dbname --target-username=username -- target-password=my_target_pw --update-bootstrap