Migration Tools Installation

Overall Installation Steps

The high-level steps for installing and configuring the N2SNS migration tools are:

  1. Ensure the installation pre-requisites are met.
  2. Install the migration tools package.
  3. Perform any required post-installation steps.
  4. Update the migration tool configuration as desired.

Installation Pre-requisites

OS-specific Setup

Refer to the specific Red Hat or Debian instructions for any pre-requisites as required.

Perl

The N2SNS SMS node requires several Perl packages to be available prior to installation. The package names may vary depending on your OS type:

RPM-based Systems DEB-based Systems
perl >= 1:5.12
perl(Carp::Always)
perl(Clone)
perl(DBI)
perl(Data::Dumper)
perl(Digest::MD5)
perl(File::Basename)
perl(Getopt::Long)
perl(IO::Handle)
perl(JSON)
perl(POSIX)
perl(Storable)
perl(Switch)
perl(Time::HiRes)
perl(Time::Local)
perl(XML::LibXML)
perl(base)
perl(lib)
perl(strict)
perl(warnings)
perl >= 5.12
perl-base
perl-modules
libcarp-always-perl
libclone-perl
libdbi-perl
libjson-perl
libswitch-perl
libxml-libxml-perl

For each of these packages (or with all as one command), execute the instructions specific to your operating system:

RHEL 8 Other RPM-based Systems DEB-based Systems
sudo dnf install <package(s)> sudo yum install <package(s)> sudo apt-get install <package(s)>

Installation Steps

Follow the appropriate installation steps depending on your installation sources.

From N-Squared Repository

Execute the instructions specific to your operating system:

RHEL 8 Other RPM-based Systems DEB-based Systems
sudo dnf install n2sns-mig sudo yum install n2sns-mig sudo apt-get install n2sns-mig

Post-Installation Steps

Database Integration

Oracle Database Drivers

If migrating to N2SNS from an Oracle database, the Oracle-provided client packages must be installed.

Follow the Oracle-provided installation instructions to install your preferred version of the following packages:

NCC Migration

When migrating to N2SNS from the Oracle NCC platform, some configuration will have to be changed in order to connect to the incumbent platform.

To set these values, in the file /usr/share/n2sns/migration/NCC/migrate.pl, locate the following section:

# Site defaults.
my $ncc_dbconnect           = 'dbi:Oracle:host=REPLACE_WITH_NCC_HOSTNAME;sid=SMF';
my $ncc_dbusername          = 'smf';
my $ncc_dbpassword          = 'REPLACE_WITH_NCC_DB_PASSWORD';
my $n2_dbconnect            = 'dbi:Pg:dbname=n2in;host=REPLACE_WITH_N2SNS_DB_HOSTNAME;port=REPLACE_WITH_N2SNS_DB_PORT;';
my $n2_dbusername           = 'n2sns_owner';
my $n2_dbpassword           = 'REPLACE_WITH_N2SNS_DB_PASSWORD';
my $migration_user          = 'Migration';

Replace the sentinel values as follows:

In the same file, locate the following section:

# N2SNS/NCC defaults.
my $migration_user          = 'Migration';

These default values may be updated as required:

Firewall

The firewall (if any) on the migration tools node must be updated to allow:

The exact commands to do this will depend both on the firewall on your platform and also which port(s) are in use. For example, to allow the default Oracle and PostgreSQL ports when using firewalld, the commands might be:

firewall-cmd --zone=public --add-port=1521/tcp --permanent
firewall-cmd --zone=public --add-port=5432/tcp --permanent
service firewalld restart