[R-sig-DB] In odbcDriverConnect ODBC connection failed

Luis Ridao Cruz Lu|@r @end|ng |rom h@v@|o
Thu Aug 13 17:25:55 CEST 2009


R-sig-DB help,

I have installed an ODBC Driver for Linux.

I want to connect to our database through R via:

>library(RODBC)
>con <- odbcDriverConnect("SERVER=IP_address:PORT;DRIVER=ORACLE;DATABASE=MAGNUS")
Warning message:
In odbcDriverConnect("SERVER=IP_address:PORT;DRIVER=ORACLE;DATABASE=MAGNUS") :
  ODBC connection failed

I don't really know whether this is the right syntax. I copy-paste files "odbc.ini" and "odbcinst.ini":

## file odbc.ini
[ORACLE]
Driver        = ORACLE
Database        = //IP_address:PORT/MAGNUS
User        = my_username
Password        = my_password
METADATA_ID        = 0
ENABLE_USER_CATALOG        = 1
ENABLE_SYNONYMS        = 1

## file odbcinst.ini
[ORACLE]
Description        = Easysoft ODBC Oracle Driver
Driver        = /usr/local/easysoft/oracle/libesoracle.so
Setup        = /usr/local/easysoft/oracle/libesoraclesetup.so
DontDLClose        = 1
FileUsage        = 1
UsageCount        = 1


Thanks in advance




More information about the R-sig-DB mailing list