我将R 3.5.2与odbc和DBI的最新软件包一起使用。我能够连接到存放我的表的数据库,但是在没有收到错误的情况下无法运行任何类型的查询。
数据库使用驱动程序“ Oracle的Microsoft ODBC”。
sudo
(连接成功)
script:
- useradd -d /builds/{GITLAB_USER} -g users -M -N builder
- chown -R builder:users ..
- |
sudo -H -i -u builder sh -e -x << EOS
umask 0077
export CONTINUOUS_INTEGRATION_SYSTEM="gitlab" TIMESTAMP=`date +%Y%m%d%H%M%S` DEFAULT_TARGET="debug"
export PREFIX="\${HOME}/usr" SYSCONFDIR="\${HOME}/etc/conf" LOCALSTATEDIR="\${HOME}/var"
cd my-project
make install
make -C _deploy/debian clean package bundle BUILD_ID="-0{other}\${TIMESTAMP}"
EOS
[1]是
library(DBI)
library(odbc)
con <- dbConnect(odbc(),
driver = "Microsoft ODBC Driver for Oracle"
dsn = "SAM"
uid = "user"
pwd = "pwd")
错误:“ SELECT * FROM“ MY_TABLE”' nanodbc / nanodbc.cpp:1581:HY092:[Microsoft] [ODBC驱动程序管理器]选项类型超出范围
我能够使用Oracle sqldeveloper和Microsoft Excel成功运行查询。任何帮助表示赞赏!