Installing Migration Toolkit¶
Before installing Migration Toolkit, you must install Java (version 1.7.0 or later).
To install Migration Toolkit, you must have credentials that allow access to the EnterpriseDB repository. To request credentials for the repository, visit the EnterpriseDB website at:
You can use an RPM package to install Migration Toolkit on a CentOS or RHEL host. The following steps provide detailed information about accessing the EnterpriseDB repository and installing Migration Toolkit.
Creating a Repository Configuration File
To create the repository configuration file, assume superuser privileges and invoke the following command:
On RHEL or CentOs 7:
yum -y install https://yum.enterprisedb.com/edb-repo-rpms/ edb-repo-latest.noarch.rpmOn RHEL or CentOs 8:
dnf -y install https://yum.enterprisedb.com/edb-repo-rpms/ edb-repo-latest.noarch.rpmThe repository configuration file is named
edb.repo. The file resides in/etc/yum.repos.d.
After creating the
edb.repofile, use your choice of editor to ensure that the value of theenabledparameter is1, and replace theusernameandpasswordplaceholders in thebaseurlspecification with the name and password of a registered EnterpriseDB user.[edb] name=EnterpriseDB RPMs $releasever - $basearch baseurl=https://<username>:<password>@yum.enterprisedb.com/ edb/ redhat/rhel-$releasever-$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/ENTERPRISEDB-GPG-KEY
After saving your changes to the configuration file, install the EPEL repository:
On RHEL or CentOS 7:
yum -y install https://dl.fedoraproject.org/pub/epel/ epel-release-latest-7.noarch.rpmOn RHEL or Centos 8:
dnf -y install https://dl.fedoraproject.org/pub/epel/ epel-release-latest-8.noarch.rpm
If you are using RHEL or CentOS 8.x, you must enable an additional repository to resolve dependencies:
On CentOS 8 (Powertools repo):
dnf config-manager --set-enabled PowerToolsOn RHEL 8 (codeready-builder-for-rhel-8- * -rpms repo):
ARCH=$( /bin/arch ) subscription-manager repos --enable "codeready-builder-for -rhel-8-${ARCH}-rpms"Installing Migration Toolkit
On RHEL or CentOs 7:
yum -y install edb-migrationtoolkitOn RHEL or CentOs 8:
dnf -y install edb-migrationtoolkitWhen you install an RPM package that is signed by a source that is not recognized by your system, yum may ask for your permission to import the key to your local server. If prompted, and you are satisfied that the packages come from a trustworthy source, enter a
y, and pressReturnto continue.During the installation, yum may encounter a dependency that it cannot resolve. If it does, it will provide a list of the required dependencies that you must manually resolve.
After installing Migration Toolkit, you must configure the installation. Perform the following steps before invoking Migration Toolkit.
Using Migration Toolkit with IDENT Authentication
By default, the
pg_hba.conffile for the RPM installer enforcesIDENTauthentication for remote clients. Before invoking Migration Toolkit, you must either modify thepg_hba.conffile, changing the authentication method to a form other thanIDENT(and restarting the server), or perform the following steps to ensure that anIDENTserver is accessible:
Confirm that an
identdserver is installed and running. You can use the yum package manager to install anidentdserver by invoking the command:
yum install xinetd authdThe command should create a file named
/etc/xinetd.d/auththat contains:service auth { disable = yes socket_type = stream wait = no user = ident cps = 4096 10 instances = UNLIMITED server = /usr/sbin/in.authd server_args = -t60 --xerror --os }Note
if the file includes a
-Eargument at the end ofserver_args, please erase the-E.Then, to start the
identdserver, invoke the commands:systemctl enable xinetd systemctl start xinetd
Open the
pg_ident.conffile and create a user mapping:# map_name system_username postgres_username edbas enterprisedb enterprisedbWhere:
The name specified in the
map_namecolumn is a user-defined name that will identify the mapping in the pg_hba.conf file.The name specified in the
system_usernamecolumn is enterprisedb.The name specified in the
postgres_usernamecolumn is enterprisedb.
Open the
pg_hba.conffile and modify theIDENTentries.On an IPv4 host:
host all all 127.0.0.0/0 ident map=edbasOn an IPv6 host:
host all all ::1/128 ident map=edbasRestart the EDB Postgres Advanced Server service before invoking Migration Toolkit.
If you have an existing RPM installation, you can use
yumto upgrade your repository configuration file and update to a more recent product version. To update the edb.repo file, assume superuser privileges and enter:yum upgrade edb-repoyum will update the edb.repo file to enable access to the current EnterpriseDB repository, configured to connect with the credentials specified in your edb.repo file. Then, you can use yum to upgrade Migration toolkit:
yum upgrade edb-migrationtoolkitYou can use an RPM package to install Migration Toolkit on a CentOS or RHEL ppc64le host.
Before installing Migration toolkit , you must:
Create the Advance Toolchain repository configuration file; assume superuser privileges and invoke the following command:
rpm --import https://public.dhe.ibm.com/software/server/POWER/ Linux/toolchain/at/redhat/RHEL7/gpg-pubkey-6976a827-5164221b
After creating the
advance-toolchain.repofile, use your choice of editor to ensure that the value of theenabledparameter is1, and replace theusernameandpasswordplaceholders in thebaseurlspecification with the name and password of a registered EnterpriseDB user.[advance-toolchain] name=Advance Toolchain IBM FTP baseurl=https://public.dhe.ibm.com/software/server/POWER/ Linux/toolchain/at/redhat/RHEL7 failovermethod=priority enabled=1 gpgcheck=1 gpgkey=ftp://public.dhe.ibm.com/software/server/POWER/Linux/ toolchain/at/redhat/RHELX/gpg-pubkey-6976a827-5164221bThe following steps provide detailed information about accessing the EnterpriseDB repository and installing Migration Toolkit.
Creating a Repository Configuration File
To create the EDB repository configuration file, assume superuser privileges and invoke the following command:
yum -y install https://yum.enterprisedb.com/edb-repo-rpms/ edb-repo-latest.noarch.rpmThe repository configuration file is named
edb.repo. The file resides in/etc/yum.repos.d.
After creating the
edb.repofile, use your choice of editor to ensure that the value of theenabledparameter is1, and replace theusernameandpasswordplaceholders in thebaseurlspecification with the name and password of a registered EnterpriseDB user.[edb] name=EnterpriseDB RPMs $releasever - $basearch baseurl=https://<username>:<password>@yum.enterprisedb.com/edb/ redhat/rhel-$releasever-$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/ENTERPRISEDB-GPG-KEY
After saving your changes to the configuration file, install the EPEL package:
yum -y install https://dl.fedoraproject.org/pub/epel/ epel-release-latest-7.noarch.rpm
If you are using RHEL 7 ppc64le, you must enable an additional repository to resolve dependencies:
subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-* -server-rpms"
To install Migration Toolkit, run the following command.
yum -y install edb-migrationtoolkitTo install a package with apt, complete the following steps. When invoking the commands, replace the
usernameandpasswordwith the user credentials provided by EnterpriseDB.
Assume superuser privileges:
sudo su –
Configure the EnterpriseDB repository:
On Debian 9, perform the following step to configure the EnterpriseDB repository:
sh -c 'echo "deb https://username:password@apt. enterprisedb.com/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list'On Debian 10, perform the following steps to configure the EnterpriseDB repository:
Set up the EnterpriseDB repository:
sh -c 'echo "deb [arch=amd64] https:// apt.enterprisedb.com/ $(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/ apt/sources.list.d/edb-$(lsb_release -cs).list'
Substitute your EnterpriseDB credentials for the
usernameandpasswordplaceholders in the following command:sh -c 'echo "machine apt.enterprisedb.com login <username> password <password>" > /etc/apt/auth.conf.d/edb.conf'
Add support to your system for secure APT repositories:
apt-get install apt-transport-https
Add the EBD signing key:
wget -q -O - https://username:password @apt.enterprisedb.com/edb-deb.gpg.key | apt-key add -
Update the repository metadata:
apt-get update
Install the
edb-migrationtoolkitpackage:apt-get -y install edb-migrationtoolkitYou can use the zypper package manager to install a Migration toolkit on an SLES 12 host. zypper will attempt to satisfy package dependencies as it installs a package, but requires access to specific repositories that are not hosted at EnterpriseDB.
You must assume superuser privileges and stop any firewalls before installing Migration Toolkit. Then, use the following commands to add EnterpriseDB repositories to your system:
zypper addrepo https://zypp.enterprisedb.com/suse/ edb-sles.repo
The command creates the repository configuration files in the /etc/zypp/repos.d directory. Use the following command to refresh the metadata on your SLES host to include the EnterpriseDB repository:
zypper refreshWhen prompted, provide credentials for the repository; specify
ato always trust the provided key and update the metadata to include the EnterpriseDB repository.
You must also add SUSEConnect and the SUSE Package Hub extension to the SLES host, and register the host with SUSE, allowing access to SUSE repositories. Use the commands:
SUSEConnect -r 'REGISTRATION_CODE' -e 'EMAIL' SUSEConnect -p PackageHub/12.4/x86_64 SUSEConnect -p sle-sdk/12.4/x86_64
Install SUSEConnect to register the host with SUSE, allowing access to SUSE repositories:
zypper addrepo https://download.opensuse.org/repositories/ Apache:/Modules/SLE_12_SP4/Apache:Modules.repo
Use the following command to refresh the metadata:
zypper refresh
Install OpenJDK (version 1.8) for Java based components:
zypper -n install java-1_8_0-openjdk
Now you can use the zypper utility to install a Migration Toolkit:
zypper -n install edb-migrationtoolkitFor detailed information about registering a SUSE host, visit:
You can use the graphical installer to install the Migration Toolkit on Windows. You can download the installer from www.enterprisedb.com.
Once you download the installer, right-click the installer icon, and select
Run As Administratorfrom the context menu. When theLanguage Selectionpopup opens, select an installation language and clickOKto continue to theSetupwindow.Note
This guide uses the term Stack Builder to refer to either StackBuilder Plus (distributed with EDB Postgres Advanced Server) or Stack Builder (distributed with the PostgreSQL one-click installer from EnterpriseDB).
You must have a Java JVM (version 1.7.0 or later) in place before Stack Builder can perform a Migration Toolkit installation.
The Java executable must be in your search path
(%PATH% on Windows)Use the following commands to set the search path (substituting the name of the directory that holds the Java executable forjavadir):On Windows, use the command:
SET PATH=javadir;%PATH%After setting the search path, you can use the Stack Builder installation wizard to install Migration Toolkit into either EDB Postgres Advanced Server or PostgreSQL.
The Java executable must be in your search path (
%PATH%on Windows,$PATHon Linux/Unix). Use the following commands to set the search path (substituting the name of the directory that holds the Java executable forjavadir):On Windows, use the command:
SET PATH=javadir;%PATH%On Linux, use the command:
PATH=javadir:$PATHAfter setting the search path, you can use the Stack Builder installation wizard to install Migration Toolkit into either EDB Postgres Advanced Server or PostgreSQL.
Launching StackBuilder Plus from EDB Postgres Advanced Server
To launch StackBuilder Plus from an existing EDB Postgres Advanced Server installation, navigate through the
Start(orApplications) menu to the EDB Postgres menu; open theEDB Add-onsmenu, and select theStackBuilder Plusmenu option.Launching Stack Builder from PostgreSQL
To launch Stack Builder from a PostgreSQL installation, navigate through the
Start(orApplications) menu to the PostgreSQL menu, and select theApplication StackBuilder Plusmenu option.Stack Builder opens as shown below.
![]()
The Stack Builder welcome window.¶
Use the drop-down listbox to select the target server installation from the list of available servers. If your network requires you to use a proxy server to access the Internet, use the
Proxy serversbutton to open theProxy serversdialog and specify a server; if you do not need to use a proxy server, clickNextto open the application selection window.If you are using StackBuilder Plus to add Migration Toolkit to your EDB Postgres Advanced Server installation, expand the
Add-ons, tools and utilitiesnode of the tree control, and check the box next toEnterpriseDB Migration Toolkit. ClickNextto continue.Note
If you are using Stack Builder to add Migration Toolkit to your PostgreSQL installation, expand the
EnterpriseDB Toolsnode of the tree control (located under the Registration-required and trial productsnode), and selectMigration Toolkitcheckbox. ClickNextto continue.![]()
The Stack Builder application selection window.¶
Confirm that Migration Toolkit is included in the
Selected Packageslist and that theDownload directoryfield contains an acceptable download location.![]()
The Stack Builder selection confirmation window.¶
Click
Nextto start the Migration Toolkit download.![]()
Stack Builder confirms the file download.¶
When the download completes, Stack Builder confirms that the installation files have been successfully downloaded. Choose
Nextto open the Migration Toolkit installation wizard.When prompted by the Migration Toolkit installation wizard, specify a language for the installation and click
OKto continue.The Migration Toolkit installation wizard opens. Click
Nextto continue.![]()
The Migration Toolkit installation wizard.¶
Carefully review the license agreement before highlighting the appropriate radio button; click
Nextto continue.![]()
The EnterpriseDB license agreement.¶
By default, Migration Toolkit will be installed in the
mtkdirectory; accept the default installation directory as displayed, or modify the directory, and clickNextto continue.![]()
Specify a Migration Toolkit installation directory.¶
The installation wizard confirms that the
Setupprogram is ready to install Migration Toolkit; clickNextto start the installation.![]()
Setup is ready to start the Migration Toolkit installation.¶
A dialog confirms that the Migration Toolkit installation is complete; click
Finishto exit the Migration Toolkit installer.![]()
The Migration Toolkit wizard has finished.¶
When Stack Builder finalizes installation of the last selected component, it displays the
Installation Completedwindow. ClickFinishto close Stack Builder.![]()
Stack Builder confirms the installation is complete.¶
After installing Migration Toolkit with Stack Builder, you must install the appropriate source-specific drivers before performing a migration; please see Installing Source-Specific Drivers for more information.
You can use the graphical installer to install the Migration Toolkit on Mac OS X. To download the installer, visit www.enterprisedb.com.
To launch the installer:
Navigate to the file path in the terminal:
/<User/Directory>/Downloads/edb-migrationtoolkit-54.0.0-1-osx.app/Contents/MacOS
Assume superuser privileges and invoke the following command:
./installbuilder.sh
On the
Language Selectionpopup opens, select an installation language and clickOKto continue to theSetupwindow.The Migration Toolkit installation wizard opens. Click
Nextto continue.![]()
The Migration Toolkit installation wizard.¶
Carefully review the license agreement before highlighting the appropriate radio button; click
Nextto continue.![]()
The EnterpriseDB license agreement.¶
By default, Migration Toolkit will be installed in the
mtkdirectory; accept the default installation directory as displayed, or modify the directory, and clickNextto continue.![]()
Specify a Migration Toolkit installation directory.¶
The installation wizard confirms that the
Setupprogram is ready to install Migration Toolkit; clickNextto start the installation.![]()
Setup is ready to start the Migration Toolkit installation.¶
A dialog confirms that the Migration Toolkit installation is complete; click
Finishto exit the Migration Toolkit installer.![]()
The Migration Toolkit wizard has finished.¶
Installing Source-Specific Drivers¶
Before invoking Migration Toolkit, you must download and install a
freely available source-specific driver. To download a driver, or for a
link to a vendor download site, visit the Third Party JDBC Drivers
section of the Advanced Downloads page at the EnterpriseDB website:
https://www.enterprisedb.com/advanced-downloads
After downloading the source-specific driver, move the driver file into
the <mtk_install_dir>/lib directory.




