Migrating Database
Please refer to Database Prerequisites before proceeding with the migration details.
Introduction
As HSQL is not suitable for production usage, OpsHub Integration Manager needs to be migrated to one of three databases supported by OpsHub Integration Manager. There is a utility provided with OpsHub Integration Manager installation and packaged in OpsHub Integration Manager's <Installation Directory>\OpsHub_Resources\DatabaseMigrator directory [Migrator directory].
Steps to migrate from HSQL to other supported databases
Keep driver for database for which migration needs to be done in: OpsHub Integration Manager's
<Installation Directory>\OpsHubServer\libdirectory.For MySQL connector driver jar 5.1.8 is not supported, hence the latest connector driver jar should be used from http://dev.mysql.com/downloads/connector/j/5.1.html
Change
destinationconnection.propertiesandsourceconnection.propertiesin Migrator directory:sourceconnection.properties: Change
CONNECTION_HSQL_FILE_PATHproperty and replace<installation path>with installation pathdestinationconnection.properties: Provide all properties value as guided in file.
Shut down server (ensure service is not running if registered).
Take back up of database
Refer to Database Backup section on Taking Application Backup page for details.
Migrating on Windows
Run migrator.bat in Migrator directory
Migrating on Linux
Run migrator.sh in Migrator directory
If file execution fails with ^M bad interpreter error, use following steps:
Execute command in terminal
dos2unix migrator.shNow execute the sh file in terminal
migrator
Steps to perform after successful migration
Following are the steps to be performed after successful database migration:
Go to OpsHub Integration Manager's
<Installation Directory>\OpsHubServer\webapps\OpsHubWS\META-INFdirectoryDelete
war-trackerfileGo to OpsHub Integration Manager's
<Installation Directory>\OpsHubServer\webapps\OpsHubWSdirectorySelect all the files and add to archive with name
OpsHubWS.zipRename
OpsHubWS.ziptoOpsHubWS.warGo to OpsHub Integration Manager's
<Installation Directory>\OpsHubServer\webappsand replace newly createdOpsHubWS.warwith the existing oneDelete OpsHub Integration Manager's
<Installation Directory>\OpsHubServer\webapps\OpsHubWSdirectory and start the service.
Last updated

