连接:Oracle自治数据库和R-ROracle软件包问题

时间:2019-06-10 11:47:14

标签: r database oracle connection roracle

我正在尝试将计算实例上的RStudio连接到Oracle自治仓库。 我已经介绍了以下步骤:

现在,在RStudio中安装ROracle软件包时遇到了麻烦。 我正在使用以下脚本:

Sys.setenv(OCI_LIB64="C:/oracle_client/instantclient_18_5") 
install.packages("ROracle")

我得到的错误是找不到包含标头:

Warning in strptime(xx, f, tz = tz) :
  unable to identify current timezone 'C':
please set environment variable 'TZ'
* installing *source* package 'ROracle' ...
** package 'ROracle' successfully unpacked and MD5 sums checked
** using staged installation
Oracle Client Shared Library 64-bit - 18.5.0.0.0 Operating in Instant Client mode.
found Instant Client C:/oracle_client/instantclient_18_5
found Instant Client SDK C:/oracle_client/instantclient_18_5/sdk/include
ERROR: cannot find Oracle Client include headers in C:/oracle_client/instantclient_18_5/sdk/include.
       Please set OCI_INC to correct location.
ERROR: configuration failed for package 'ROracle'
* removing 'C:/Users/opc/Documents/R/win-library/3.6/ROracle'
Warning in install.packages :
  installation of package ‘ROracle’ had non-zero exit status

每个人都说也要像这样设置OCI_INC(但我没有以“ ... client_1 / oci / include /:

Sys.setenv(OCI_INC="C:/Oracle/product/11.2.0/client_1/oci/include")

您知道我对于ROracle还是总体上缺少什么?

R版本:3.6

操作系统:计算实例上的Windows Server

0 个答案:

没有答案