In this blog post I will show you the configurations that are necessary for RStudio Server to work with Oracle R Enterprise on your Oracle Database server. In theory if you have just installed ORE and then RStudio Server, everything should work, but if you encounter any issues then check out the following.
Before I get started make sure to check out my previous blog posts on installing R Studio Server. The first blog post was installing and configuring RStudio Server on the Oracle BigDataLite VM. This is an automated install. The second blog post was a step by step guide to installing RStudio Server on your (Oracle) Linux Database Server and how to open the port on the VM using VirtualBox.
Right. Let's get back to configuring to work with Oracle R Enterprise. The following assumes you have complete the second blog post mentioned above.
1. Edit the rserver.conf files
Add in the values and locations for RHOME and ORACLE_HOME
sudo vi /etc/rstudio/rserver.conf rsession-ld-library-path=RHOME/lib:ORACLE_HOME/lib
2. Edit the .Renviron file.
Add in the values for ORACLE_HOME, ORACLE_HOSTNAME and ORACLE_SID
cd /home/oracle sudo vi .Renviron ORACLE_HOME=ORACLE_HOME ORACLE_HOSTNAME=ORACLE_HOSTNAME ORACLE_SID=ORACLE_SID export ORACLE_HOME export ORACLE_HOSTNAME export ORACLE_SID
3. To access the Oracle R Distribution
Add the following to the usr/lib/rstudio-server/R/modules/SessionHelp.R
file for the version of Oracle R Distribution you installed prior to installing Oracle R Enterprise.
.rs.addFunction( "httpdPortIsFunction", function() { getRversion() >= "3.2" })
You are all done now with all the installations and configurations.
No comments:
Post a Comment