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!

ROracle failed at connection dbConnect

0eb17f97-22f6-4d91-a36c-17d2307faef8Nov 8 2016 — edited Nov 16 2016

Hi, I have done a lot of searches  but could not fix my problem. Please help! and thanks heaps in advance.

I have RStudio Server Pro V1 installed on RHEL7.0. R version is 3.3.1 and ROracle 1.2-2. I followed examples from here and below is my R script:

  1. library(ROracle)
  2. drv <- dbDriver("Oracle")
  3. host <- "dw.my.com"
  4. port <- "1521"
  5. sid <- "dwoa"
  6. connect.string <- paste(  "(DESCRIPTION=",  "(ADDRESS=(PROTOCOL=tcp)(HOST=", host, ")(PORT=", port, "))",  "(CONNECT_DATA=(SERVICE_NAME=", sid, ")))", sep = "")
  7. con <- dbConnect(drv, username = "admin", password = "admin", dbname = connect.string)

From line 1 to 6, it can run without a problem, but it failed at line 7 when trying to establish a connection. The error message returned was:

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

  ORA-21561: OID generation failed

What I else have I tried:

  • modified /etc/hosts to include database host
  • modified Reviron file based on this thread
  • tried uninstall R, RStudio Server and reinstall...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 14 2016
Added on Nov 8 2016
3 comments
1,383 views