Download binary from oracle: http://www.oracle.com/technetwork/database/database-technologies/r/roracle/downloads/index.html
The run the following command in r, substituting the file path:
setwd('xxxxx') # set to path of download
install.packages('ROracle_1.1-11.zip', repos = NULL)
Then load the library and use the package - you may have to change XXXX to whatever is in your TNS Names:
library('ROracle')
drv <- dbDriver("Oracle")
# NOTE: never store passwords in a saved script!!
con <- dbConnect(drv, "USER GOES HERE", "PASSWORD GOES HERE", dbname='XXX')
test connection:
dbReadTable(con, 'DUAL')
I'm also getting the same error after installing and trying to load ROracle.
Loading required package: DBI
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.2.3/library/ROracle/libs/x64/ROracle.dll':
LoadLibrary failure: The specified module could not be found.
Error: package or namespace load failed for ‘ROracle’
However, before I get that error message, I get this dialog box error pop up:
"The program can't start because OCI.dll is missing from your computer. Try reinstalling the program to fix this problem."
Any ideas how to fix the OCI.dll? Where would I download this and put into?