Using ROracle with Oracle Instant Client 12c

February 18, 2016

(This article was first published on R – Nodalpoint, and kindly contributed to R-bloggers)

The other day, while setting up the new Oracle R Enterprise (ORE) 1.5 client packages in a Linux server, we installed the Oracle DB Instant Client v. 12.1, as advised in the relevant documentation.

Problem was, ORE failed to load, in fact due to ROracle failure:

> library(ORE)
Error in dyn.load(file, DLLpath = DLLpath, ...) :
  unable to load shared object '/usr/lib64/R/library/ROracle/libs/': cannot open shared object file: No such file or directory
Error: package ‘OREdm’ could not be loaded

Truth is, the file did not exist, but this was expected, simply due to the installed client being 12.1, and not 11.1:

[[email protected] ~]$ cd /usr/lib/oracle/12.1/client64/lib
[[email protected] lib]$ ll
total 190276
-rwxrwxr-x 1 root root   6990875 Jul  7  2014
-rwxrwxr-x 1 root root  58793741 Jul  7  2014

What is happening is that ROracle, despite being up to date (version 1.2-1), looks only for the 11.1 client.

The solution is to create a symbolic link in the Oracle Instant Client directory, pointing from the file (which is what ROracle is looking for) to (the existing one):

[[email protected] lib]$ ln -s
[[email protected] lib]$ ll
total 190276
lrwxrwxrwx 1 root root        17 Feb 16 12:36 ->

after which the issue is resolved.

See also the discussion I opened in the relevant Oracle R Technologies forum.

The post Using ROracle with Oracle Instant Client 12c appeared first on Nodalpoint.

To leave a comment for the author, please follow the link and comment on their blog: R – Nodalpoint. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)