R and Oracle SQL

跟風遠走 提交于 2019-12-11 10:27:05

问题


Have anyone tried to use R and Oracle servers?

The credientials required for connection are:

HOST = somewhere.com
PORT = 1525
SERVICE_NAME = someservice
USERNAME = user
PASSWORD = pass

I've tried RODBC:

library(RODBC)
channel <- odbcConnect("somewhere.com:1525/someservice", uid="user", pwd="pass")

But it only gives me these warnings:

Warning messages:
1: In odbcDriverConnect("somewhere.com:1525/someservice", uid="user", pwd="pass") :
[RODBC] ERROR: state IM010, code 0, message [Microsoft][ODBC Driver Manager] Data source name too long
2: In odbcDriverConnect("somewhere.com:1525/someservice", uid="user", pwd="pass") :
ODBC connection failed

Are there other ways to connect to Oracle?

Thanks all

来源:https://stackoverflow.com/questions/24274161/r-and-oracle-sql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!