Skip to Main Content

Data Science & Machine Learning

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connection Error - tns protocol adapter not loadable

39806708-8060-42f2-a53f-459c829a703bApr 26 2016 — edited Apr 26 2016

Hi,

I'm trying too connect R with Oracle but always we get this error message:

"Error in .oci.Connect(.oci.drv(), username = username, password = password,  :

  ORA-12557: TNS:protocol adapter not loadable"

I have R on my laptop and my database is in the server.

I'm using ROracle package, i try with the following commands:

library(ROracle)

drv<-dbDriver("Oracle")

con<-dbConnect(drv,"wz","wz",dbname='PERU.ITIM')

I have this environment variables:

Sys.getenv("ORACLE_HOME")

"C:\\app\\mmlobato\\product\\11.2.0\\client"

Sys.getenv("ORACLE_SID")

"ANG_SUP"

Sys.getenv("PATH")

"C:\\app\\mmlobato\\product\\11.2.0\\client;C:\\app\\mmlobato\\product\\11.2.0\\client\\bin;C:\\app\\mmlobato\\product\\11.2.0\\client\\LIB;C:\\app\\mmlobato\\product\\11.2.0\\client\\network\\admin;C:\\app\\mmlobato\\product\\11.2.0\\dbhome_1;C:\\app\\mmlobato\\product\\11.2.0\\dbhome_1\\BIN;C:\\app\\mmlobato\\product\\11.2.0\\dbhome_1\\LIB;C:\\app\\mmlobato\\product\\11.2.0\\dbhome_1\\NETWORK\\ADMIN;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\Program Files (x86)\\OpenVPN\\bin"

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2016
Added on Apr 26 2016
1 comment
2,866 views