我已经设置了RStudio服务器,并指定它使用现有的R (2.13)安装。当从R访问时,ROracle运行良好,但在RStudio web界面上则不起作用。
> library(ROracle)
Loading required package: DBI
> drv <- dbDriver("Oracle")
Error in .oci.Driver() : ROracle internal error [rociDrvInit, 1, -1]
我使用--nodeps安装了RStudio服务器,后来通过设置/etc/rstudio/rserver.conf文件中的值,将它指向一个现有的R安装。
已尝试从RStudio支持获取帮助,但被指向“堆栈溢出”。http://support.rstudio.org/help/discussions/problems/1879-rstudio-roracle-internal-error
先谢谢你,小赛。
发布于 2012-03-16 23:42:33
最终在Denis Mukhin on the Oracle forums的帮助下让它正常工作。特别是,在RStudio环境中缺少ORACLE_HOME和OREACLE_SID。将以下行添加到~/.Renviron修复了该问题:
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
ORACLE_SID=<your sid (the default is usually orcl)>
export ORACLE_HOME ORACLE_SIDhttps://stackoverflow.com/questions/9729492
复制相似问题