Migrating the built-in database server (PostgreSQL) to Microsoft SQL Server or another instance of a PostgreSQL Server.

Supported database migrations:

Supported database versions:

To migrate the built-in PostgreSQL to a different database, follow the steps listed below.

Backup PostgreSQL Data


Configure Microsoft SQL Server

Common Settings to be performed in Microsoft SQL Server


Providing credentials to other users in the domain

If not, right click the Logins, New Login and provide a corresponding user name. The New user must have the sysadmin server level role and database level role of db_owner.

Follow the steps to provide the sysadmin role permission:
Right click the user, click 'Properties'
Go to 'Server Roles' → Check sysadmin and click 'OK'

Note: Details about user roles: Refer the documents in the following links:
For Server Level Roles: http://msdn.microsoft.com/en-us/library/ms188659.aspx
For Database Level Roles: http://msdn.microsoft.com/en-us/library/ms189121.aspx


Server Role of the user should be 'sysadmin' and Database Role of the user should be 'db_owner'.
The members of sysadmin server role can perform any activity in SQL Server and have completes control over all database functions.
The members of db_owner database role can perform any activity in the database.


MS SQL Server in local computer

Copy the following files to <Log360 Home>\bin folder.


MS SQL Server in remote computer

Note: Please install the corresponding SQL Native Client / Command line Utilities in the Log360 machine as per the MS SQL Server version and CPU type of Log360 machine.

MS SQL Server Version

Native Client

2008

Download

2012

Download

2014

Download

2017

Download

2019

Download


Note - MS SQL server version 2022 is also supported by Log360.

After installing the Command Line utilities, please copy the following files:

Copy the files to <Log360 Home>\bin folder.

Windows Firewall Settings

If the Firewall is enabled in MS SQL Server machine, the TCP and UDP Ports need to be opened.

UDP Port is normally 1434.

To check TCP Port settings, open SQL Configuration Manager:

tcp_ip

Steps for Migration:

Note: Take a Backup/Snapshot of Log360 before proceeding with the steps (Important)

  1. Open the Command Prompt and navigate to <Log360 home\bin> (Here, Log360 home is the location where Log360 is installed).
  2. Stop Log360 by running shutdown.bat.
  3. Run the ChangeDB.bat.
  4. From the Server Type menu, select the database server you plan to switch to.
  5. If you select PostgreSQL Server, then:
  6. Prerequisites for PostgreSQL migration

  7. If you select MS SQL Server, then:
  8. Check the box next to Migrate Existing Data to copy the data from your old database to the new database.
  9. IMPORTANT: Leave this box unchecked only if you are changing the database of a fresh installation of Log360.

  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. Prerequisites for PostgreSQL migration

  13. Once Test Connection has been established successfully, click Configure DB to initiate migration.
  14. Prerequisites for PostgreSQL migration