Oracle® R Enterprise Installation and Administration Guide Release 1.3 for Windows, Linux, Solaris, and AIX E36763-09 |
|
|
PDF · Mobi · ePub |
First decide which platforms the Oracle R Enterprise server and clients will run on.
Then install the prerequisite software before you install Oracle R Enterprise:
R Requirement (includes installation instructions)
Verify that one of these supported operating systems is installed on both client and server. Client and server can be installed on different operating systems; for example, the server is installed on Linux and the clients on Microsoft Windows.
Oracle Linux Release 5 Update 6 through Oracle Linux 6
Red Hat Enterprise Linux Release 5 Update 6 through Red Hat Enterprise Linux 6
To download Oracle Linux Release 5 Update 6 Media Pack for x86_64 (64 bit), go to http://www.oracle.com/us/technologies/linux/index.html
).
64-bit Oracle Solaris 10 update 10 through Oracle Solaris 11 for both SPARC and x86 (Intel) platforms and Solaris sunstudio 12u3 or later.
IBM AIX 5.3 or higher (64-Bit)
Oracle R Enterprise is also supported on
Oracle Exadata Database Machine running Oracle Linux or Solaris
SPARC SuperCluster
You must install R on the server and all clients.
Note:
Oracle R Enterprise 1.3 and 1.3.1 are certified with R 2.15.1.Oracle R Enterprise 1.0, 1.1, and 1.2 are certified with R 2.13.2.
Oracle R Distribution (for Linux, Solaris, and AIX) was created to work with Oracle R Enterprise.
For Windows, the version of R that you download from CRAN at http://www.r-project.org
works with Oracle R Enterprise.
For Linux and Solaris, the free Oracle R Distribution was created to work with Oracle R Enterprise.
Installation of R depends on the platform:
Oracle R Distribution is Oracle's free distribution of the open source R environment for Linux and Solaris.
It is recommended that you use Oracle R Distribution with Oracle R Enterprise for these reasons:
Oracle R Distribution has been enhanced for faster performance by taking advantage of hardware specific math library implementations, such as Intel's MKL libraries for high performance mathematical computations on x86 hardware.
Oracle R Distribution has been compiled with the flags that are required by Oracle R Enterprise.
Note:
If you install R from CRAN, you must ensure that R is compiled with the correct flags for Oracle R Enterprise.Oracle offers support Oracle R Distribution on Oracle Linux 5 Update 6 and higher, Oracle Linux 6, and Red Hat Enterprise Linux 5 Update 6 and higher. Oracle also offers support for Oracle R Distribution on Oracle Solaris 10 and 11 for both SPARC and x86.
For installation information, see Install R on Linux, or Install R on AIX.
The version of binaries distributed by the Comprehensive R Network (CRAN) for Windows work with Oracle R Enterprise.
Follow these steps to install R 2.15.1 on Windows:
Go to http://www.r-project.org
; click CRAN under the heading Download, Packages.
Select a CRAN Mirror.
Click Download R for Windows.
Click base.
Under the heading Other builds, click Previous releases in the third bullet.
Click R 2.15.1 (June, 2012) to start the download.
Note:
If you are installing a version of Oracle R Enterprise earlier than 1.3, download R 2.13.2 (September, 2011).When the download completes, double-click the executable that you downloaded, R-2.15.1-win.exe,
to launch the Windows installer for R. Follow the instructions to complete the installation.
Note:
It is strongly recommended that you perform a full R installation on 64-bit Windows platforms, so that 64-bit R is installed. (The full R install for 64-bit Windows installs both 32-bit R and 64-bit R.) The Oracle R Enterprise 64-bit Windows Server requires 64-bit R.You can quickly check that R was installed by starting R from the command line. You will see this startup message for 64-bit R:
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Install R on Red Hat Enterprise Linux 6
It is recommended that you install Oracle R Distribution. Installation on Red Hat Enterprise Linux 6. requires a rebuild.
This section describes how to install Oracle R Distribution on Oracle Linux or Red Hat Linux. To install Oracle R Distribution on Oracle Exadata Database Machine, see Install R on Oracle Exadata Database Machine.
The exact steps depend on the version of Linux where you install Oracle R Distribution:
If the Intel Math Kernel Library is available on your system and you wish to use them, see Using MKL.
Oracle R Distribution for Linux 5 allows you to install a version of R 1.13.2 or a version of R 2.15.1 that is designed to work with Oracle R Enterprise. Oracle R Distribution supports Oracle Enterprise Linux 5 and Red Hat Enterprise Linux 5.
Go to http://public-yum.oracle.com/
and follow these steps to install R:
Become root; for example use
sudo su -
Install the yum repository as follows:
cd /etc/yum.repos.d
Use this command to get el5.repo
:
wget http://public-yum.oracle.com/public-yum-el5.repo
Open a text editor on the file just downloaded public-yum-el5.repo
.
Set
"enabled=1" for [el5_addons]
"enabled=1" for [el5_latest]
This step is optional.
Type the following commands in a shell to check that your yum repository is configured correctly:
sudo yum repolist
The output should look like this:
sudo yum repolist $ sudo yum repolist Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock Loading support for kernel ABI el5_latest | 1.4 kB 00:00 el5_latest/pri | 12 MB 00:07 el5_latest 9713/9713 ol6_UEK_latest | 1.2 kB 00:00 ol6_UEK_latest/primary | 4.3 MB 00:02 ol6_UEK_latest 106/106 ol6_addons | 1.2 kB 00:00 ol6_addons/primary | 11 kB 00:00 ol6_addons 52/52 ol6_latest | 1.4 kB 00:00 ol6_latest/primary | 23 MB 00:14 ol6_latest 18112/18112 repo id repo name status el5_latest Oracle Linux 6Server Latest (x86_64) 9,713 ol6_UEK_latest Latest Unbreakable Enterprise Kernel for Oracle Linux 6Server (x86_64) 106 ol6_addons Oracle Linux 6Server Add ons (x86_64) 52 ol6_latest Oracle Linux 6Server Latest (x86_64) 18,112 repolist: 27,983
Make sure that both the el5_addons
and ol5_u6_base
repository are listed. The list of repository can be different depending on the Linux version and current user's configuration of yum.
To install R, use the following command:
yum install R.x86_64
You can quickly check that R was installed by starting R from the command line. You will see this startup message:
Oracle Distribution of R version 2.15.1 (--) -- "Roasted Marshmallows" Copyright (C) The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-pc-mingw32/i386 (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
Oracle R Distribution for Linux 6 allows you to install a version of R 2.15.1 that is designed to work with Oracle R Enterprise.
Note:
Oracle R Distribution is available for Oracle Enterprise Linux 5 and 6 and Red Hat Enterprise Linux 5.To install R on Red Hat Enterprise Linux 6, see Install R on Red Hat Enterprise Linux 6.
Go to http://public-yum.oracle.com/
and follow these steps to install R:
Become root; for example use
sudo su -
Install the yum repository as follows:
cd /etc/yum.repos.d
Use this command to get ol6
.repo:
wget http://public-yum.oracle.com/public-yum-ol6.repo
Open a text editor on the file just downloaded, public-yum-ol6.repo
.
Set
"enabled=1" for [ol6_addons]
"enabled=1" for [ol6_latest]
This step is optional.
Type the following commands in a shell to check that your yum repository is configured correctly:
sudo yum repolist $ sudo yum repolist Loaded plugins: aliases, changelog, downloadonly, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock Loading support for kernel ABI el5_latest | 1.4 kB 00:00 el5_latest/pri | 12 MB 00:07 el5_latest 9713/9713 ol6_UEK_latest | 1.2 kB 00:00 ol6_UEK_latest/primary | 4.3 MB 00:02 ol6_UEK_latest 106/106 ol6_addons | 1.2 kB 00:00 ol6_addons/primary | 11 kB 00:00 ol6_addons 52/52 ol6_latest | 1.4 kB 00:00 ol6_latest/primary | 23 MB 00:14 ol6_latest 18112/18112 repo id repo name status el5_latest Oracle Linux 6Server Latest (x86_64) 9,713 ol6_UEK_latest Latest Unbreakable Enterprise Kernel for Oracle Linux 6Server (x86_64) 106 ol6_addons Oracle Linux 6Server Add ons (x86_64) 52 ol6_latest Oracle Linux 6Server Latest (x86_64) 18,112 repolist: 27,983
The list of repository can be different depending on the Linux version and current user's configuration of yum.
To install R, use the following command:
yum install R.x86_64
You can quickly check that R was installed by starting R from the command line.
Oracle Distribution of R version 2.15.1 (--) -- "Roasted Marshmallows" Copyright (C) The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
You must rebuild Linux 6 Oracle R Distribution RPMs from the source RPMs on Red Hat 6 before you install R.
Follow these steps to rebuild the RPMs on Red Hat Enterprise Linux 6:
Create an RPM build directory structure:
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
Set up RPM tools to use your own build tree (to avoid root
login):
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
Download the R 2.15.1 SRPM (*.src.rpm
) from Oracle's public yum at http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/x86_64/R-2.15.1-1.el6.src.rpm
.
Save them to the rpmbuld/SRPMS
directory.
Rebuild for Red Hat Enterprise Linux 6 using rpmbuild
. For example,
rpmbuild --rebuild ~/rpmbuild/SRPMS/R-2.15.1-1.el6.src.rpm
Note that if any dependencies are missing you will need to yum install them as root
.
The binary RPMs will be built and saved under ~/rpmbuild/RPMS.
Login as root: and run the commands to install. You use commands of the form
rpm -i <path to rpmbuild/RPMS/<R-core RPM >
For example,
rpm -i /refresh/home/rpmbuild/RPMS/x86_64/R-core-2.15.1-1.el6.x86_64.rpm
You can quickly check that R was installed by starting R from the command line. R starts up with:
[oracle@celvpint1001 ~]$ R Oracle Distribution of R version 2.15.1 (--) -- "Roasted Marshmallows" Copyright (C) The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-unknown-linux-gnu (64-bit)
The Intel Math Kernel Library (MKL) includes highly vectorized and threaded Linear Algebra, Fast Fourier Transforms (FFT), Vector Math and Statistics functions. Oracle R Distribution includes support that dynamically picks up the Intel Math Kernel Library (MKL) if MKL is installed on your system.
Follow these steps to use MKL with Oracle R Distribution:
Add libmkl_rt.so
, $R_HOME/lib
, and $ORACLE_HOME/lib
to the LD_LIBRARY_PATH system environment variable.
Start R and execute this Oracle R Distribution function Sys.BlasLapack()
:
R> Sys.BlasLapack() $vendor [1] "Intel Math Kernel Library (Intel MKL)" $nthreads [1] -1
The vendor value returned indicates the presence of MKL instead of R's internal BLAS.
In order to get the speedup provided by MKL, you must set the MKL_THREADING_LAYER environment variable to GNU before you invoke Oracle R Distribution on your system. In the Bash shell, set the variable as follows:
export MKL_THREADING_LAYER=GNU
R for Solaris is available in two ways:
Oracle R Distribution is available for Solaris. Oracle R Distribution is compiled with the flags required for Oracle R Enterprise.
This distribution of open source R version 2.15.1 is linked with sunperf, Oracle Sun Performance Library, a high performance math library.
This distribution is compatible with Solaris 10 update 10 or later and Solaris sunstudio 12u3 or later.
For installation instructions, see Install Oracle R Distribution on Solaris.
Open-source R can be configured and built for Solaris using source code from CRAN. See the R Installation and Administration guide http://cran.r-project.org/doc/manuals/R-admin.pdf
for details.
If you install from CRAN, be sure to download R 2.15.1 (June, 2012).
Follow these steps to install Oracle R Distribution for Solaris:
The installation script install.sh
for Oracle R Distribution must be run as root
or as a user with sudo
access.
Go to Oracle R Distribution at https://oss.oracle.com/ORD/.
Download the correct set of files for your installation:
For x86 64-bit systems:
ord-2.15.1-sol10-x86-64-sunstudio12u3.tar.gz ord-2.15.1-supporting-sol10-x86-64-sunstudio12u3.tar.gz
For SPARC 64-bit systems:
ord-2.15.1-sol10-sparc-64-sunstudio12u3.tar.gz ord-2.15.1-supporting-sol10-sparc-64-sunstudio12u3.tar.gz
Uncompress either ord-2.15.1-sol10-x86-64-sunstudio12u3.tar.gz
or ord-2.15.1-sol10-sparc-64-sunstudio12u3.tar.gz
.
Run install.sh
as root
or as a user with sudo
to install the Solaris PKG file for Oracle R Distribution.
uninstall.sh
uninstalls Oracle R Distribution on Solaris.
Uncompress either ord-2.15.1-supporting-sol10-x86-64-sunstudio12u3.tar.gz
or ord-2.15.1-supporting-sol10-sparc-64-sunstudio12u3.tar.gz
Uncompress the libraries to a local file such as $ORACLE_HOME/lib
and add that directory to LD_LIBRARY_PATH
.
These tar files contain the following shared libraries that R shared library libR.so
depends on:
libiconv.so.2
libncurses.so.5
libreadline.so.6
libsunperf.so
(This library and its dependent shared libraries usually ship with Solaris sunstudio).
Run ldd -r /usr/lib/64/R/lib/libR.so
to verify that libR.so
is picking up its shared library dependencies correctly from the local directory.
To verify that R is installed correctly, type R
.
R for IBM AIX is available in two ways:
Oracle R Distribution is available for AIX. Oracle R Distribution is compiled with the flags required for Oracle R Enterprise.
Oracle R Distribution has been built with IBM XLF 11.1 and IBM XLC 8.0. It is supported on AIX 5.3 onwards.
For installation instructions, see Install Oracle R Distribution on AIX. To uninstall Oracle R Distribution, see Uninstall Oracle R Distribution for AIX.
Open-source R can be configured and built for AIX using source code from CRAN. See the R Installation and Administration manual http://cran.r-project.org/doc/manuals/R-admin.pdf
for details.
If you install from CRAN, be sure to download R 2.15.1 (June, 2012).
Follow these steps to install Oracle R Distribution for AIX:
The installation script install.sh
for Oracle R Distribution must be run by a user with the super user privilege. You can also use smitty
(GUI) to instal Oracle R Distribution. You must also be super user to uninstall Oracle R Distribution.
Go to Oracle R Distribution at https://oss.oracle.com/ORD/.
Download these files:
ORD.2.15.1.0.bff.gz
ord-supporting-aix.tar.gz
First install the prerequisite for Oracle R Distribution for AIX.
Uncompress and untar ord-supporting-aix.tar.gz
. This results in a collection of rpms:
$ gunzip ord-supporting-aix.tar.gz # get ord-supporting-aix.tar $ tar -xvf ord-supporting-aix.tar # extract contents of .tar file $ ls ord-supporting-aix # list of rpms bash-4.2-5.aix5.1.ppc.rpm expat-2.0.1-3.aix5.1.ppc.rpm gettext-0.17-1.aix5.1.ppc.rpm glib2-2.28.6-1.aix5.1.ppc.rpm info-4.13a-2.aix5.1.ppc.rpm libiconv-1.14-1.aix5.1.ppc.rpm libpng-1.5.9-1.aix5.1.ppc.rpm libpng-devel-1.5.9-1.aix5.1.ppc.rpm pkg-config-0.25-2.aix5.1.ppc.rpm readline-6.2-3.aix5.1.ppc.rpm readline-devel-6.2-3.aix5.1.ppc.rpm texinfo-4.13a-2.aix5.1.ppc.rpm zlib-1.2.6-1.aix5.1.ppc.rpm zlib-devel-1.2.6-1.aix5.1.ppc.rpm $
You can also download these rpms from http://www.perzl.org/aix/
.
Install these rpms using an rpm command from the directory where you extracted the contents of ord-supporting-aix.tar.gz
.
$ cd ord-supporting-aix $ su # rpm -i *.rpm
To upgrade existing dependencies, use
# rpm -UF *.rpm
If you experience conflicts with dependencies, use
# rpm -UF --nodeps *.rpm
Add /opt/freeware/lib
to the LIBPATH (or LD_LIBRARY_PATH) environment variable:
For ksh
$ export LIBPATH=/opt/freeware/lib:$LIBPATH
For csh
$ setenv LIBPATH /opt/freeware/lib:$LIBPATH
Make sure that /opt/freeware/lib
is before /usr/lib
.
Now install Oracle R Distribution:
Uncompress ORD-2.15.1-aix.bff.gz
to get ORD-2.15.1-aix.bff:
$ gunzip ORD.2.15.1.0.bff.gz
To install all of the filesets in Oracle R Distribution, use the installp
command (with the apply option) from the directory where the file has been downloaded:
$ su # installp -a -d . ORD # install all the filesets in ORD
You can also independent filesets:
# installp -a -d . ORD.core # installs only ORE.core # installp -a -d . ORD.devel # installs only ORE.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 (or LD_LIBRARY_PATH) environment variable:
For ksh
$ export LIBPATH=/usr/lib/R/lib:$LIBPATH
For csh
$ setenv LIBPATH //usr/lib/R/lib:$LIBPATH
To verify that R is installed correctly, type R
.
To unistall filesets, use the installp
command (uninstall option).
$ su # installp -u ORD # uninstall all filesets
Uninstall independent filesets as follows:
# installp -u ORD.devel # uninstall only ORD.devel # installp -u ORD.core # uninstall only ORD.core
Oracle R Distribution is recommend for Oracle Exadata Database Machine. You must install R on every Exadata Compute Server, as described in Install R on Linux or Install R on Solaris.
Using http://public-yum.oracle.com/
is the recommended way to install R on Oracle Exadata for Linux. Using the downloads at https://oss.oracle.com/ORD/
are the recommended way to install R on Solaris.
Oracle R Enterprise requires Oracle 11.2 Enterprise Edition; Oracle Database can be installed on Oracle Linux, Red Hat Linux, Oracle Solaris, IBM AIX, or Microsoft Windows.
The 64-bit version of the database must be installed for all platforms. You can check that the proper database is installed by examining $ORACLE_HOME/bin/oracle
.
The instance of Oracle Database must satisfy these requirements:
Fix for bug number 11678127 must be installed, as described in Required Bug Fix
extproc
must be configured, as described in Configure extproc.
In order for certain Oracle R Enterprise functionality to work properly, Oracle Database must include the patch that fixes bug number 11678127.
Oracle 11.2.0.3 or later includes this fix.
If you cannot upgrade to Oracle 11.2.0.3, you can use Oracle 11.2.0.1 or 11.2.0.2 if you install the patch that fixes bug number 11678127. For basic information about patching an Oracle Database, see Patching Oracle Databases.
Use one of these solutions to install the required patch on the system where you install the Oracle R Enterprise server:
For Oracle 11.2.0.1.0: on Linux:
Bug 11678127 in the Bug Database refers to the bug for the Linux 11.2.0.1.0 patch 12598677.
Patch 12598677 refers to Patch Request 13785245 http://aru.us.oracle.com:8080/ARU/ViewPatchRequest/process_form?aru=13785245
in Oracle Automated Release Updates (ARU).
From ARU 13785245, the patch is p11678127_112010_Linux-x86-64.zip
.
You can also search My Oracle Support for Patch number 11678127 to find the patch.
For Oracle 11.2.0.2.0 on Linux:
Bug 11678127 in the Bug Database refers to the bug for the Linux 11.2.0.2 patch 12976544.
Patch 12976544 refers to Patch Request 14095540 http://aru.us.oracle.com:8080/ARU/ViewPatchRequest/process_form?aru=14095540
in Oracle Automated Release Updates (ARU).
From ARU 14095540, the patch is p11678127_112020_Linux-x86-64.zip
.
You can also search My Oracle Support for Patch number 11678127 to find the patch.
Patches for Oracle products are downloaded from My Oracle Support (http://support.oracle.com
). Access to My Oracle Support requires a CSI (Customer Support ID).
Note:
A patch may not be available on all supported platforms at any given time. Check My Oracle Support to see if a patch is available for your platform.After you download patches, install them using OPatch, described in Oracle Universal Installer and OPatch User's Guide 11g Release 2 (11.2) for Windows and UNIX.
Before you apply a patch, review README.txt
. The patch may require other patches. Also make sure that the latest version of OPatch is installed.
When an application such as Oracle R Enterprise calls an external procedure such as R, Oracle Database starts an external procedure agent named extproc
.
In order to run R in embedded mode, the Oracle Database must have extproc
configured.
For information about configuring extproc
, see "Default Configuration for External Procedures" in Oracle Database Net Services Administrator's Guide at http://docs.oracle.com/cd/E14072_01/network.112/e10836/advcfg.htm#g508505
.