我正在尝试将计算实例上的 RStudio 连接到 Oracle 自治仓库。我已经介绍了以下步骤:
- 预置的自治数据仓库
( https://docs.oracle.com/en/cloud/paas/autonomous-data-warehouse-cloud/tutorial-provision-adw/ )- 存储DB连接钱包;
- 安装 Oracle Instant 客户端基本包:https ://www.oracle.com/technetwork/topics/winx64soft-089540.html
- 下载并放置在与即时客户端相同的目录下:SDK包和ODBC包
- 在环境可验证的 PATH ("C:/oracle_client/instantclient_18_5") 中包含即时包路径,并使用相同的路径创建 OCI_LIB64 系统变量
- 安装的 GTools 检查 PATH 选项
- 将钱包解压到:C:\oracle_client\instantclient_18_5\network\admin
现在我在 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