Post Installation Tasks

Post-Installation Tasks

Oracle Installation

The N2SVCD Service Daemon when connecting to an Oracle database via the DBApp has dependencies on the Oracle Instant Client.

To install the client, download the Linux instant client packages from this URL:

http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

The packages required are:

Once downloaded, install via RPM:

rpm -Uvh oracle-instantclient-basic-21.1.0.0.0-1.x86_64.rpm \
         oracle-instantclient-devel-21.1.0.0.0-1.x86_64.rpm \
         oracle-instantclient-sqlplus-21.1.0.0.0-1.x86_64.rpm

Oracle Perl DB Driver

The Oracle DB driver must be built for the platform. To install, as root, retrieve the Perl DBD::Oracle driver v1.80 (or later) from the URL:

https://cpan.metacpan.org/authors/id/M/MJ/MJEVANS/DBD-Oracle-1.80.tar.gz

… and build and install on the target platform. First install Perl pre-requisites for building software:

yum install perl-ExtUtils-MakeMaker make gcc

Then build the package itself:

export ORACLE_HOME=/usr/lib/oracle/21/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

ln -s /usr/share/oracle/21/client64/demo/demo.mk /usr/share/oracle/21/client64/

cd /path/to/dbd/oracle/package
tar zvfx DBD-Oracle-1.80.tar.gz
cd DBD-Oracle-1.80
perl Makefile.PL
make install

Dynaloader

After installing the n2lua package, the OS dynamic library loader will need to be updated in order to utilize the installed package.

Create a new dynaloader link:

vim /etc/ld.so.conf.d/liblua.conf

Adding:

/opt/n2lua/lib/

Update the dynaloader index:

ldconfig

SAR

sar (System Activity Reporter) is a useful unix tool for system monitoring. It is highly recommended that this is installed on all systems.

To enable, install into systemd:

systemctl enable sysstat

Post-Installation Checks

To confirm that the n2svcd package has installed successfully, check that the n2svcd process is executing:

ps -ef | grep n2sv[d]

Depending on configuration, this is expected to display one or more n2svcd processes running. Immediately after a fresh install a single process will be shown:

[root@demo n2svcd]# ps -ef | grep n2svc[d]
n2in       92774       1  0 08:47 ?        00:00:01 n2svcd n2svcd.xml   

Confirm that the correct version of the n2svcd package is installed:

rpm -qa n2svcd

This will respond with the package name, including the version number:

[root@demo n2svcd]# rpm -qa n2svcd
n2svcd-7.8.0-2.noarch