SAP® Advanced SQL Migration Tool Installation Guide v3.5.2.1
SAP® Advanced SQL Migration Tool Installation Guide v3.5.2.1
SAP® Advanced SQL Migration Tool Installation Guide v3.5.2.1
com
SAP®
Advanced SQL Migration
Migration Tool Installation Guide
v.3.5.2.1 community edition
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business
Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects
Software Ltd. Business Objects is an SAP company.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their
respective logos are trademarks or registered trademarks of Sybase Inc. Sybase is an SAP company.
Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are registered trademarks of Crossgate AG in Germany and other countries. Crossgate is
SAP® Advanced SQL Migration community ed. Installation Guide Version 3.5.2.1 – Feb 2023
TABLE OF CONTENTS
1 INTRODUCTION .......................................................................................................................... 3
1.1 Intended Audience ........................................................................................................................... 3
1.2 What is SAP Advanced SQL Migration? ......................................................................................... 3
1.3 Usage restrictions and copyright .................................................................................................... 3
1.4 Contact ............................................................................................................................................. 3
1.5 More information: see User Guide .................................................................................................. 3
2 INSTALLATION ........................................................................................................................... 4
2.1 Hardware/software requirements .................................................................................................. 4
2.2 Installation pathnames/locations in this Installation Guide ......................................................... 4
2.3 Cygwin required component ........................................................................................................... 4
2.4 Installing Cygwin 3.2 64 bits. .......................................................................................................... 5
2.5 Verifying the Cygwin installation (new users only) ........................................................................ 5
2.6 Installing SAP Advanced SQL Migration for new users ................................................................. 6
2.7 Installing SAP Advanced SQL Migration updates ...........................................................................7
2.8 Customizing the command prompt window .................................................................................. 8
2.9 Upgrading from version 2.8 or later ................................................................................................ 9
2.10 Upgrading from version 2.x to 2.8 or later (renamed migration tool) .......................................... 9
2.11 Troubleshooting (1) .......................................................................................................................... 9
2.12 Troubleshooting (2) ........................................................................................................................10
2.13 Support ............................................................................................................................................10
3 RUNNING THE MIGRATION TOOL FROM A USB DRIVE ............................................................ 11
4 CONNECTIVITY GATEWAY INSTALLATION .............................................................................. 12
5 UNINSTALLATION ..................................................................................................................... 13
1 INTRODUCTION
In addition, it is not permitted to circumvent the migration tool's connectivity gateway (see User Guide)
when connecting to the source DBMS of a customer whose application is being migrated.
1.4 Contact
For information about SAP Advanced SQL Migration, or about migration-related aspects in general,
contact [email protected].
2 INSTALLATION
The migration tool only writes into locations that are explicitly specified by the user (e.g. the installation
directory and project directories). The migration tool does not write into the Windows Registry.
The migration tool requires Cygwin to be installed. Cygwin 64 bits minimum version 3.2.0-1 is required
for SAP Advanced SQL Migration tool. Cygwin is not distributed as part of the migration tool, but
installation instructions are provided in this manual (see sections 2.3-2.4).
Performance of the migration tool is primarily bound by available CPU and memory. The recommended
minimum hardware resources are:
• 2-core, 2.5 GHz
• 8GB RAM
• 2 GB of free space on C:\ (not including space for extracted and converted SQL code)
• A minimum display size of 1280x768 is required for displaying the GUI (which is used to set
configuration options).
Please ensure that Windows Powershell is not in the %PATH% being used by the migration tool session,
as this could lead to errors and malfunction.
For reference, at least the following components must be present in the Cygwin environment:
1. Install latest Cygwin version from the official web site (https://cygwin.com/install.html) using
the 64 bits installer called “setup-x86_64.exe”. Keep the default folder (“c:\cygwin64”) for
Cygwin software installation. As indicated in the previous bullet you need to install the four
required components, so be sure you select:
In current Cygwin versions “file” utility is already installed by default so no need to select any
specific component for it.
2. Download the migration tool distribution .zip from SAP (check section 2.6). This file is named
something like sapdbmtk.v.3.5.2.1-X.community_edition.zip.
Unzip this file into C:\, so it creates directory C:\sapdbmtk.
2. In the above window, verify the Perl version by typing the following command at the prompt:
/usr/bin/perl –v
The output should indicate Perl version 5.32.x or later. If an earlier version of Perl is indicated,
this needs to be fixed first otherwise the migration tool will not run.
iconv -h
file -h
For both commands, 'usage' information should be displayed, indicating that these utilities were
installed correctly in the Cygwin environment. If not, re-install Cygwin.
The migration tool will not function correctly without these utilities.
To install the migration tool, the Cygwin environment must have been installed first as described in
sections 2.3, 2.4 and 2.5 of this Installation Guide.
1. Unzip the SAP Advanced SQL Migration .zip file into C:\. This will create directory C:\sapdbmtk.
Select a source DBMS and target DBMS and click the "Save & Next" button.
Another, larger and scrollable menu should now be displayed, with all applicable configuration
settings (no screenshot shown in this document, see the User Guide). Change a random setting
and click the "Validate & Save Changes" button. Then click the Exit button.
The menu should pop up again, showing the selections and changes made in the previous step.
When this all works successfully, the installation was done correctly.
A directory c:\mytestdir will have been created, where the subsequent menu selections will be
stored. This directory was for testing the installation only and can now be deleted.
https://tools.hana.ondemand.com/#hanatools
To install a migration tool update, the Cygwin installation steps described in this Installation Guide do
not need to be repeated. It is sufficient to extract the SAP Advanced SQL Migration distribution .zip file
into the C:\ directory, thus overwriting the files in C:\sapdbmtk (and its subdirectories) that were
created when an earlier version of the migration tool was installed. Ensure the migration tool is not
running when performing this operation.
It is generally recommended to save a copy of the existing version of SAP Advanced SQL Migration
before overwriting it with a new version.
Note that migration tool configuration settings in existing project directories, that were changed by the
user to a value different from their defaults, are retained, and not overwritten, when a migration tool
update is installed.
1. Set the line length to 120 and increase the window height to 50 lines:
2. Enable automatic copy & paste directly from the command prompt window:
a. Uninstall the current Cygwin version you had installed for previous version of SAP Advanced
SQL Migration tool. This basically means to remove “c:\cygwin” folder because the installation
was done decompressing the .zip file containing the Cygwin distribution provided by SAP.
b. Install latest Cygwin 64 bits version (3.2.0-1 or later) as indicated in sections 2-3, 2.4 and 2.5.
c. Download the new version (3.5.2.1 or later) of the migration tool distribution .zip file from SAP.
d. Unzip this file into C:\, so that directory C:\sapdbmtk is replaced with the new files.
e. Copy the files called start_bash.bat and cygwin.bashrc from C:\sapdbmtk\install to the news
Cygwin folder C:\cygwin64.
f. Existing project directories are not affected by upgrading to the renamed migration tool, they
will be automatically upgraded when you run any migration tool command for the first time on
them,
2.10 Upgrading from version 2.x to 2.8 or later (renamed migration tool)
In version pre-2.8, SAP Advanced SQL Migration was called ‘Exodus’, and some aspects were different
compared to v.2.8. For example, pre-2.8 assumes C:\Exodus to be the installation directory, while 2.8
assumes C:\sapdbmtk (though any directory name/path could be used, the documentation assumes
C:\sapdbmtk). Also, the main exodus command has been renamed to sapdbmtk. Another important
aspect is that the Cygwin version now is newer and 64 bits.
a. Uninstall the current Cygwin version you had installed for SAP Advanced SQL Migration tool
version pre-2.8. This basically means to remove “c:\cygwin” folder because the installation was
done decompressing the .zip file containing the Cygwin distribution provided by SAP.
b. Install latest Cygwin 64 bits version (3.2.0-1 or later) as indicated in sections 2-3, 2.4 and 2.5.
c. Download the new version of the migration tool (2.8 or later) distribution .zip file from SAP.
d. Unzip this file into C:\, so that a new directory C:\sapdbmtk is created.
e. Rename or remove the existing C:\Exodus directory to ensure it is no longer used.
f. Copy the files called start_bash.bat and cygwin.bashrc from C:\sapdbmtk\install to the news
Cygwin folder C:\cygwin64.
g. Modify any user-created settings -like environment variables- or files that reference the ‘old’
installation directory, and change this to point to the ‘new’ installation directory.
h. The command name exodus has changed to sapdbmtk. Any scripts using the exodus command
must be modified accordingly.
i. Existing project directories are not affected by upgrading to the renamed migration tool, they
will be automatically upgraded when you run any migration tool command for the first time on
them,
2. If the command sapdbmtk is not successful but ./sapdbmtk runs fine, this means that the
migration tool directory is not in the PATH. Verify/ensure that at least one of the following
applies:
a. C:\sapdbmtk is in the Windows %PATH%
b. /cygdrive/c/cygwin64 is in the bash $PATH (set in the cygwin.bashrc file)
c. . (='dot') is in the bash $PATH (set in the cygwin.bashrc file)
In case C:\cygwin64\start_bash.bat cannot be executed, an error message may be reported like this:
Windows cannot access the specified device, path or file. You may not have the appropriate
permissions to access the item
In this case, the file protections on C:\cygwin64\start_bash.bat may not be set properly. To resolve
this, double-click on C:\cygwin64\Cygwin.bat which opens a command prompt window.
Then type:
cd /cygdrive/c/cygwin64
chmod 777 *.bat
Now, retry running C:\cygwin64\start_bash.bat.
Before:
none /cygdrive cygdrive binary,posix=0,user 0 0
After:
none /cygdrive cygdrive binary,posix=0,user,noacl 0 0
2.13 Support
For support, please contact [email protected] or make a question in the official SAP
Advanced SQL Migration tool community:
https://community.sap.com/topics/advanced-sql-migration
5 UNINSTALLATION
As described in the installation section the installation process consists basically in installing Cygwin
and decompressing the .zip file you download with the migration tool software, so nothing is written and
kept in the Windows registry or other config files outside the migration tool software folder itself.
If you want to uninstall SAP Advanced SQL Migration tool you only must remove the migration tool
folder under “c:\sapdbmtk” and follow the official instructions to uninstall Cygwin.