2012-03-15 53 views
3

我設置RStudio服務器,並指出它使用現有的R(2.13)安裝。來自R訪問時ROracle工作正常,但同樣不從RStudio Web的接口工作。RStudio服務器ROracle拋出:錯誤.oci.Driver():ROracle內部錯誤[rociDrvInit,1,-1]

> 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

在此先感謝, 賽。

回答

1

終於得到它的幫助工作從Denis Mukhin on the Oracle forums。特別是,ORACLE_HOMEOREACLE_SID分別在RStudio環境缺失。添加以下行~/.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_SID 
+1

我在從Oracle論壇帖子的細節複製,請隨時編輯如果我得到任何的錯。 – derobert 2012-03-17 09:34:39