I am trying to access a database.
myConn <-odbcDriverConnect("Driver={Oracle in OraClient11g_home1};Dbq=IIESP;Uid=user;Pwd=pass;")
table_list <- sqlTables(myConn)
res <- sqlFetch(myConn, "MV_LIFELAPSE", max = 10)
res
We find that res is a character vector of length 2.
[1] "42S02 942 [Oracle][ODBC][Ora]ORA-00942: table or view does not exist\n"
[2] "[RODBC] ERROR: Could not SQLExecDirect 'SELECT * FROM \"MV_LIFELAPSE\"'"
The issue I am having is that table_list contains thousands of rows. MV_LIFELAPSE
is an entry in the TABLE_NAME column of table_list. I am not entirely certain of the "Driver" I am just using the code from this answer, Failure to connect to odbc database in R. It seems strange that I can view all of the available tables but am unable to retrieve results from the table.
I have accessed the data in PowerPivot using the same user and pass so I do not think it is an issue of access.