1
I have access to an Oracle database, but have always used this data in the R using the PL/SQL
to extract the data in csv
. But now I would like to connect my Oracle database on itself RStudio
.
After some research, I found some solutions, but I still couldn’t make them work.
install.packages("RODBC")
library(RODBC)
Conectar_Oracle = odbcDriverConnect("driver={Microsoft ODBC for Oracle};
server='123.456.7.89';
database='banco01';
uid='usuario';
pwd='senha'")
But the following error message came:
[RODBC] ERROR: state IM002, code 0, message [Microsoft][ODBC Driver Manager] Nome da fonte de dados não encontrado e nenhum driver padrão especificado
In some forums they say you need to install the Oracle connector, in others it says that it is possible to connect with the bank directly. But I couldn’t make any of those options work.
Can you help me? Where am I going wrong? What should I do?
Hello Tomás Barcellos thank you very much for the reply. I’m having difficulty in the 'driver' field, when I try to run it it shows me an error that says the class was not found: "Error in . jfindClass(as.Character(driverClass)[1]) : java.lang.Classnotfoundexception"
– Izak Mandrak
You downloaded the file to the same project folder?
– Tomás Barcellos
Hello Tomas, while I was waiting for your answer, I managed to find the error. I have tested and is working perfectly. Thank you so much for your help!
– Izak Mandrak