In continuation to part-1, here is the part-2 of the step by step installation process.

2-  Installing Oracle R Enterprise on the Server

Given below flowchart illustrate the process of Oracle R Enterprise installation on the server. Note that step-0 has been done already (see environment details mentioned earlier). Here we need to perform step 1, 2 & 3 as encircled in the below diagram.

2.1-  Install Oracle R Distribution on the Server

(a)  Download Oracle R Distribution

Go to the Oracle Open Source Software Download page for Oracle R Distribution:
https://oss.oracle.com/ORD

For this installation, we downloaded 3.3.0
ord-3.3.0-aix.tar
ord-supporting-aix-3.3.0.tar

Login to IBM AIX server machine using Oracle software owner.

Using Putty,
Login as: oracle
Pwd: *********

Copy both *tar.gz file to any path on AIX server. We copied to /oracle/R/Soft/ORD

/oracle/R/Soft/ORD/ord-supporting-aix-3.3.0.tar.gz
/oracle/R/Soft/ORD/ord-3.3.0-aix.tar.gz

(b)  Uncompress and untar ord-supporting-aix-3.3.0.tar.gz

Go to /oracle/R/Soft/ORD/

$ cd /oracle/R/Soft/ORD/

Get ord-supporting-aix.tar

$ gunzip ord-supporting-aix-3.3.0.tar.gz

Extract contents of .tar file

$ tar -xvf ord-supporting-aix-3.3.0.tar

After extraction, here is the list of rpms

Switch to “root” user to install the rpms…

Install rpms using command

rpm -i *.rpm

To upgrade existing dependencies (if prompted), use:

rpm -UF *.rpm

If you experience conflicts with dependencies (if prompted), use:

rpm -UF --nodeps *.rpm

exit “root” and Login as  “oracle”

Add /opt/freeware/lib to the LIBPATH environment variable:

$ export LIBPATH=/opt/freeware/lib:$LIBPATH

Note: Ensure that /opt/freeware/lib is before /usr/lib.

Does $LD_LIBRARY_PATH include $ORACLE_HOME/lib?

$ echo $LD_LIBRARY_PATH
/oracle/product/11.2.4/db/lib:/oracle/product/11.2.4/db/lib32:/lib:/usr/lib:/usr/local/lib

Does $PATH include $ORACLE_HOME/bin?

$ echo $PATH
/oracle/product/11.2.4/db/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java71_64/jre/bin:/usr/java6/bin:/oracle/product/11.2.4/db/bin:/etc:/usr/bin:/usr/bin/X11:/usr/lbin:/usr/local/bin:/oracle/product/OPatch:.:/usr/bin:/etc:/usr/sbin:/usr/ucb:/oracle/home/bin:/usr/bin/X11:/sbin:.:/oracle/R/3_3/usr/bin

(c)  Uncompress and untar ord-3.3.0-aix.tar.gz

Login as: oracle
Pwd: *********

Go to /oracle/R/Soft/ORD/

$ cd /oracle/R/Soft/ORD/

Get ord-3.3.0-aix.tar

$ gunzip ord-3.3.0-aix.tar.gz

Extract contents of .tar file

$ tar -xvf ord-3.3.0-aix.tar

Switch to “root” user to install all the filesets in Oracle R Distribution

To install all the filesets in Oracle R Distribution, execute the installp command (with the apply option) as root:

To install all filesets in ORD

installp -a -d . ORD

You can also install independent filesets:

installp -a -d . ORD.core
installp -a -d . ORD.devel

Run ldd to ensure that shared library dependencies were picked up correctly:

$ ldd /usr/lib/R/bin/exec/R
$ ldd /usr/lib/R/lib/libR.so (libiconv, libreadline)
$ ldd /usr/lib/R/lib/libRlapack.so
$ ldd /usr/lib/R/lib/libRblas.so

Add /usr/lib/R/lib to the LIBPATH environment variable:

$ export LIBPATH=/usr/lib/R/lib:$LIBPATH
$ cat ~/.profile

2.2-  Install Oracle R Distribution on the Server

The Oracle R Enterprise Server installation process creates RQSYS schema which is the system account for Oracle R Enterprise in Oracle Database. It contains metadata, PL/SQL packages, and other executable code that is used internally by Oracle R Enterprise Server.

The steps of the installation will create RQSYS user as a locked account with an expired password. The RQSYS user does not have the CREATE SESSION privilege.

Download setup files from
https://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/downloads/index.html

Once downloaded copy/move the files to the directory “/oracle/R/Soft/ORE”

Unzip server and supporting files

$ unzip ore-server-aix-ppc64-1.5.1.zip
$ unzip ore-supporting-aix-ppc64-1.5.1.zip

Execute server.sh to install Oracle R Enterprise server

$ ./server.sh -i 2>&1 | tee server_sh_1.log

Here is the output

Oracle R Enterprise 1.5.1 Server.
Copyright (c) 2012, 2017 Oracle and/or its affiliates. All rights reserved.
Checking platform .................. Pass
Checking R ......................... Pass
Checking R libraries ............... Pass
Checking ORACLE_HOME ............... Pass
Checking ORACLE_SID ................ Pass
Checking sqlplus ................... Pass
Checking ORACLE instance ........... Pass
Checking CDB/PDB ................... Pass
Checking ORE ....................... Pass
Choosing ORE user
ORE user to use [list]:  ruser1
Current configuration
R Version ........................ Oracle Distribution of R version 3.3.0  (--)
R_HOME ........................... /oracle/R/3_3/usr/lib/R
R_LIBS_USER ...................... /oracle/product/11.2.4/db/R/library
ORACLE_HOME ...................... /oracle/product/11.2.4/db
ORACLE_SID ....................... XXXXXX
Existing R Version ............... Oracle Distribution of R version 3.3.0  (--)
Existing R_HOME .................. /oracle/R/3_3/usr/lib/R
Existing ORE data ................ 1.5.1
Existing ORE code ................ 1.5.1
Existing ORE libraries ........... 1.5.1
RQSYS PERMANENT tablespace ....... SYSAUX
RQSYS TEMPORARY tablespace ....... TEMP
ORE user type .................... Existing
ORE user name .................... RUSER1
ORE user PERMANENT tablespace .... USERS
ORE user TEMPORARY tablespace .... TEMP
Grant RQADMIN role ............... No
Operation ........................ Install/Upgrade/Setup
Proceed? [yes]  yes
Removing R libraries ............... Pass
Installing R libraries ............. Pass
Configuring ORE .................... Pass
Removing ORE script ................ Pass
Creating ORE script ................ Pass
Installing supporting packages ..... Pass
Granting ORE privileges ............ Pass
Done

Till this point we have finished installation on AIX server. Part-3 contains next step which is client side installation.

to be continued...