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!

dbSendQuery using ROracle hangs while retrieving data

user9048328Jul 27 2020 — edited Aug 4 2020

Hi All,

I am facing issue with ROracle on Linux 7.X while fetching data from Oracle 12c Database (different box) using 18c client. While fetching data from R - R version 3.5.0 (2018-04-23) -- "Joy in Playing" using ROracle 1.3.1 and DBI 1.1.0 R package, process gets stuck and never comes out.

Psuedo code:

setwd("/srv/shiny-server/SimulationEngine_SIT/STDJD")

source("password_encryption.R")

library(ROracle)

library(DBI)

con <- dbConnect(drv=dbDriver("Oracle"),username=get_user(),password=get_decrypted_pass(),dbname=connect_string(),prefetch = FALSE)

S <- paste("select code, yearval, freq_code, freq_num, dataval from data_sim")

res <- dbSendQuery(con,S)

data <- fetch(res,n=-1)

When the last line is executed, process hangs and R console is not returned. Not sure where the problem lies , but i have never faced this issue earlier. Please help where am i going wrong here.Issue.png

Comments
Post Details
Added on Jul 27 2020
3 comments
372 views