lhs-panel Click here to expand

Database migration

Using this option you can change the built-in database server (PostgreSQL) of EventLog Analyzer to MS SQL Server or another instance of a PostgreSQL Server.

Important points to remember

  • Supported database migrations:
    • PostgreSQL Server to MS SQL Server or another instance of PostgreSQL Server.
    • MS SQL Server to PostgreSQL Server or another instance of MS SQL Server.
  • Supported database versions:
    • PostgreSQL: 10 to 14
    • MS SQL: 2008 and above
  • Take a backup of the database before you proceed.
  • We recommend applying the Windows service packs and cumulative updates suggested by Microsoft during your migration to MS SQL Server.
  • MySQL to Postgres migration:
    • If you need an external backup for Postgres during the migration from MySQL to Postgres, please contact our support team for assistance.
  • Before making changes to the database with the changeDBServer.bat file, it's crucial to ensure that the product is fully operational. Once confirmed, proceed to shut down the product. Once the product has successfully stopped, run the changeDBServer.bat file.

Prerequisites for MSSQL migration

Prerequisites for PostgreSQL migration

  1. Open the remote machine where the product is installed & navigate to Product Home\ pgsql\ data\ pg_hba.conf
  2. Open pg_hba.conf file and add an entry of the host IP address and its subnet mask as 0.0.0.0/0
  3. Database migration
  4. Navigate to Product Home\ pgsql\ data \ postgresql.conf
  5. Open postgresql.conf and change the Listen_addresses as '*' & remove the # in the start of the line.
  6. Database migration

Database backup for External PostgreSQL

  • In the machine where PostgreSQL is installed, go to <postgresql_installdir>/data and open the posgresql.conf file. Search for wal_level entry. Uncomment the entry and change its value to archive.
  • Copy all the files in <postgresql_installdir>/lib and <postgresql_installdir>/bin folders, and paste them in <product_home>/pgsql/lib and <product_home>/pgsql/bin folders respectively. Create a folder named <product_home>/pgsql/data. <product_home> refers to the home directory of EventLog Analyzer or the integrated products for which you're configuring the auto backup scheduler.
  • Restart the external PostgreSQL server.

Repeat the steps 1 to 3 from above whenever you update the PostgreSQL server.

Steps for Migration

Note: Take a Backup/Snapshot of EventLog Analyzer before proceeding with the steps (Important)
  1. Open the Command Prompt and navigate to <EventLog Analyzer home\bin> (Here, EventLog Analyzer home is the location where EventLog Analyzer is installed).
  2. Stop EventLog Analyzer by running shutdown.bat.
  3. Run the tools/ChangeDBServer.bat.
  4. From the Server Type menu, select the database server you plan to switch to.
  5. If you select PostgreSQL Server, then:
    • In the Host Name and Port field, enter the host name or IP address and the port number of the PostgreSQL database server.
    • Enter the username and password of a user with the necessary permissions to create a new database.
    Database migration
  6. If you select MS SQL Server, then:
    • Move the bcp.exe and bcp.rll files into the bin folder manually.
    • In the Host Name and Port field, enter the host name or IP address and the port number of the MS SQL database server.
    • In the Select Server Instance field, select the SQL Server instance you want to use.
    • For Authentication, you can use either Windows credentials or a SQL Server user account.
    • If you want to use a SQL Server user account, then select SQL Authentication and enter the Username and Password.
    Database migration
  7. If you want to use Windows authentication, select Windows Authentication, and enter the username and password of a Windows domain user account.
  8. Database migration
    Note: The user account used must have permission to create a database in the selected MS SQL Server.
  9. Check the box next to Migrate Existing Data to copy the data from your old database to the new database.
    IMPORTANT: Leave this box unchecked only if you are changing the database of a fresh installation of EventLog Analyzer.
  10. If the MS SQL server you wish to migrate to has Force encryption enabled, check the box next to SSL connection.
  11. Click Test Connection and wait for the connection to be established.
  12. Once Test Connection has been established successfully, click Configure DB to initiate migration. Database migration
  13. Click the OK button to initiate the migration process. During the migration, you have the option to cancel if necessary.

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link