After the Fiorano installation, Analytics data can be migrated from one database to another using the script file present in the bin directory of Fiorano Installation. Sections below illustrate the steps to perform Analytics Migration.
Step 1: Set the required parameters in the MigrateEnvironmentAnalytics.properties file
Before running the utility, perform the following actions:
- Go to the location $FIORANO_HOME/esb/FioranoMigration/bin/ to find the MigrateEnvironmentAnalytics.properties file.
Open the MigrateEnvironmentAnalytics.properties file and provide values as described in the table below.
Provide the details of the Postgres server from which the data needs to be migrated
Property Description POSTGRES_INSTALLATION_PATH Path to the bin folder in the Postgres installation
POSTGRES_URL_OLD IP address of the old Postgres server from which the data is to be migrated.
POSTGRES_PORT_OLD Port at which the Database Server is running.
POSTGRES_USER_NAME_OLD User name of the Database Server.
POSTGRES_PASSWORD_OLD Password of the Database Server.
POSTGRES_DATABASE_NAME_OLD Database name in the server from which the data is to be migrated.
POSTGRES_SCHEMA_NAME Schema name in the Database.
POSTGRES_MIGRATION_ENVIRONMENT Environment name in the Schema
Provide the details of the Postgres server to which the data needs to be migrated
Property Description POSTGRES_URL IP address of the new Postgres server to which the data is to be migrated.
POSTGRES_PORT Port at which the Database Server is running.
POSTGRES_USER_NAME
UserName of the Database Server.
POSTGRES_PASSWORD Password of the Database Server.
POSTGRES_DATABASE_NAME Database name in the server to which the data is to be migrated.
Step 2: Execute the Migration Script
Open console from the location $FIORANO_HOME/esb/FioranoMigration/bin and execute the following script:
Acknowledgment for the database copied analytics database can be seen in the console.