我试图使用RODBC驱动程序将Rstudio与Oracle Database 12c连接。
conn <- odbcConnect('driver=oracle.jdbc.OracleDriver;server=102.83.1.1;database=ABC;trusted_connection=true')
警告消息:
1: In RODBC::odbcDriverConnect("DSN=driver=oracle.jdbc.OracleDriver;server=102.83.1.1;database=ABC;trusted_connection=true") :
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
2: In RODBC::odbcDriverConnect("DSN=driver=oracle.jdbc.OracleDriver;server=102.83.1.1;database=ABC;trusted_connection=true") :
ODBC connection failed
已连接,我能够从数据库中获取数据。