Table of Contents

About Ispirer Systems

Ispirer Home Page Database Migration The New SQLWays Pricing


Database Migration Guide

This guide describes a typical process of database migration using the new SQLWays ® step by step. The guide is based on a particular example of sample of migrating one database to another. The process described will remain the same for all the supported databases.

Home page

This is the main page of the tool and contain information about the created projects, license information.

If your version of Ispirer Toolkit is not yet registered, you will see the corresponding text in the “License Information” box on the main page(e.g. “This software is not registered.”). Please go to the License Information chapter and follow the instructions to register the toolkit. If your license has expired, please request a new one on the Ispirer website.

For the toolkit that has already been successfully registered with a license that is still actual, you can start using the tool and create new project by clicking “Create a new project” button.

Create new project page

All object, data, and code conversion operations are performed within projects.

To create a new project, click Create New Project. The project creation window will then open.

On the New Project creation window, the user need to enter the following info:

If the project type Database is selected, the user need to choose an ODBC connection from the list of existing connections on the machine where the tool is installed, and specify the database username and password. The user specified on that page should have enough rights to successfully execute SELECT statements from system tables of the source database. More information about the source database user privileges can be found on the Database: Setup and Troubleshooting page.

Once the user provides the ODBC connection, username, and password, user need to check connection by clicking the Test Connection button. After clicking Test Connection, the tool should verify the connection using the specified ODBC connector and credentials. If the connection is successful, the Source Technology section is marked with a checkmark, the Test Connection button label changes to Connected Successfully, and the user should proceed to fill in the information about the Target technology.

In the Target Technology section, the user need to specify the destination for migration. To do this, the user selects the required technology from the drop-down list and, optionally, specifies the version of the target technology.

After the user selects the target technology, additional options appear below that should be specified. The set of options varies depending on the selected target.

For example, for the PostgreSQL database family, the following fields should be provided:

Note: If your target is not a PostgreSQL database, you will need to provide a path to a bin directory. This is the folder where the target database native utilities are stored on your computer where Ispirer Toolkit is installed. It means that to perform the import to the target database, you need to have the native utility installed on the computer where you run the conversion.

Oracle

For Oracle you need to specify the path to the folder containing the sqlldr.exe tool.

Microsoft SQL Server

For Microsoft SQL Server you need to specify the path to the folder containing the bcp.exe and sqlcmd.exe native utilities.

MySQL

For MySQL database you need to specify the path to the folder containing the mysql.exe native utility.

If there is no need to import conversion results into the target database, user can switch off “Conversion with import” option and in that case, converted objects will not be created in the target database.

Once all fields are filled in, the user have to verify the connection to the target technology by clicking Test Connection. The tool then validates the connection using the provided credentials. If the connection is successful, the user can proceed by clicking Create Project to create a new migration project.

Upon successful project creation, the tool generates an empty migration project and navigates to the project workspace — the project dashboard.

Project page

Once a new project is created, the user is presented with the project workspace, which includes the following components:

1. Sidebar Menu — contains the buttons Home, Migration and Help.

2. Project Objects Panel — contains a search bar, a list of the current project’s objects and their statuses, and provides the ability to add objects to the migration project using the Add Source Objects button.

3. Current Project Panel — displays the project name and the migration direction. It also allows the user to view the list of projects without navigating to the Home page and to switch to another project.

4. Top Menu — contains buttons for opening various workspace panels: Dashboard, File Editor, Log Files, and Settings.

5. Workspace/Window — its layout and functionality depend on which section is currently selected in the top menu.

Select objects for migrations

A migration project is created empty and does not contain a list of objects to be migrated. Before starting migration, the user should select the objects that will be migrated in this project. Until objects are selected, the Start Migration buttons remain disabled.

To add objects to the project, the user need to open the list of source database objects and select the required ones. The list of objects can be opened in two ways:

After clicking one of these buttons, the Source Objects Panel opens between the Sidebar Menu and the Project Objects Panel.

To add objects to a project, the user should:

  1. Open the Source Objects Panel.
  2. Select the desired objects.
  3. Click the Apply button (after clicking, the selected objects should appear in the Project Objects Panel).
  4. Close the Source Objects Panel.

Note: If objects are added to a project that already contains objects, the new objects will have no conversion or import status.

To remove objects from a project, the user should:

  1. Open the Source Objects Panel (previously selected objects are marked with checkmarks).
  2. Deselect or remove the desired objects.
  3. Click the Apply button (after clicking, the updated list of selected objects should be displayed in the Project Objects Panel).
  4. Close the Source Objects Panel.

Note: When objects are removed from a project, all statuses and files associated with those objects are deleted. If the same objects are added back to the project later, they will appear with empty statuses.

Start migration

Once objects are selected, the user can start one of the following processes: conversion, or migration (conversion + import).

Starting migration can be done by clicking the Start Migration button on the Dashboard or the Start Migration button above the Project Objects Panel. This will initiate the conversion, and if the project includes import, the import process will automatically start immediately afterward.

Starting conversion separately can be done by opening the drop-down menu on the Start Migration button above the Project Objects Panel and selecting Start Conversion. This will initiate conversion for all objects in the project. The import will not run automatically and should be started manually.

Starting import separately can be done by opening the drop-down menu on the Start Migration button above the Project Objects Panel and selecting Start Import. This will initiate import for all objects. The import can only be started in a project with import enabled and only if all objects have undergone conversion, regardless of their individual conversion status.

Results of migration

Migration results can be viewed on the Dashboard. The Dashboard displays the following information:

The status of each individual object and information by object type can be viewed in the Project Objects Panel. Each object displays its conversion status, import status, and general information about its type.

Edit conversion results

After migration, users can view the conversion results of objects generated by the tool. To do this, the user should click on the object name, and the corresponding file containing the resulting code for the selected object will open in the workspace.

The user can review the code, as well as see the object’s status and current errors in the Output panel.

If necessary, the user can manually edit the generated code. After making changes, the user can import the object with the modifications into the target database, provided the changes are saved beforehand. This can be done by clicking the Save button followed by Import Object.

After import, the object’s status should be updated to reflect the current state in the Output Window:

This allows the user to review all objects with errors, correct them manually, and import them into the target database directly from the new SQLWays interface.

Log files

The new SQLWays tool generates three types of log files:

To open the log files, click the Log Files button in the top-right corner of the new SQLWays.