Skip to content

What are the necessary Oracle software to install and run ROracle ?

5 messages · thomas.carrie at bnpparibas.com, Marc Schwartz, MacQueen, Don

#
On Jan 5, 2011, at 2:55 AM, thomas.carrie at bnpparibas.com wrote:

            
If you have not, read through the INSTALL file for the package:

  http://cran.r-project.org/web/packages/ROracle/INSTALL

Past postings with similar issues regarding the inability to load shared libs would suggest that compiling and installing the package outside of R from the CLI using 'R CMD INSTALL ...' rather than from within R using install.packages("ROracle"), may resolve the issue.  Also, be sure you are running all of this as root, since installation to default locations will require root privileges.

Two more things to consider:

1. R 2.12.1 is the current version of R. If you can, I would recommend updating from 2.11.1.

2. Be sure that you don't have a conflict between 32 and 64 bit versions of R and the Oracle tool chain. All components need to be one or the other. You seem to be using 32 bit versions of the Oracle components above. Check:

  .Machine$sizeof.pointer

in R to see if you are running 32 or 64 bit R. If the former, the above will return 4, if the latter, 8.


Another alternative would be to consider using Prof. Ripley's RODBC package and connecting to Oracle via ODBC.


If you need further assistance, I would suggest subscribing and posting to r-sig-db or contacting the package author directly. More info on the list is here:

  https://stat.ethz.ch/mailman/listinfo/r-sig-db

HTH,

Marc Schwartz
#
On Jan 6, 2011, at 3:11 AM, thomas.carrie at bnpparibas.com wrote:

            
Thomas,

Three thoughts:

1. How did you install R? From source or from a pre-built binary? If the former, it is possible that ROracle requires that R be built as a shared library. The default for this option is 'no' when compiling from source, whereas the pre-built binaries typically are built as a shared library. If you did build from source, use --enable-R-shlib when you run ./configure and them recompile and install R.

2. Mathieu Drapeau posted about a possibly similar issue back in 2006 (http://tolstoy.newcastle.edu.au/R/e2/help/06/09/1192.html). You may wish to contact him as he references a manual compilation. Hopefully his e-mail in that post is still valid.

3. If the above fails, I would contact the package maintainer (David James) for additional assistance. The package appears to not have been updated since late 2007 and who knows, perhaps something has changed in the intervening time frame that may require his attention either for the package itself or simply more clarity in the documentation of the installation process. The INSTALL file mentions that ROracle was last tested with R 2.3.0, which was released back in 2006.

HTH,

Marc Schwartz