2012-03-15 9 views
3

RStudio 서버를 설정하고 기존 R (2.13) 설치를 사용하도록 지정했습니다. Rracle은 R에서 액세스 할 때 정상적으로 작동하지만 RStudio 웹 인터페이스에서는 작동하지 않습니다.RStudio 서버 ROracle throw : 오류 : .oci.Driver() : ROracle 내부 오류 [rociDrvInit, 1, -1]

> drv <- dbDriver("Oracle")

Error in .oci.Driver() : ROracle internal error [rociDrvInit, 1, -1]

> library(ROracle)

Loading required package: DBI

나는 --nodeps와 RStudio 서버를 설치하고 나중에 /etc/rstudio/rserver.conf 파일의 값을 설정하여 R 의 기존 설치를 지적했다.

RStudio 지원에서 도움을 얻으려고했지만 "스택 오버플로"를 가리켰습니다. http://support.rstudio.org/help/discussions/problems/1879-rstudio-roracle-internal-error

미리 감사드립니다. Sai.

답변

1

마지막으로 Denis Mukhin on the Oracle forums의 도움을 받았습니다. 특히 RStudio 환경에서 ORACLE_HOMEOREACLE_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_SID 
+1

내가 어떤 잘못이라도 한 경우, 편집 주시기 바랍니다. – derobert