roracle

ROracle - dbWriteTable, date columns

对着背影说爱祢 提交于 2019-12-07 12:45:01
问题 How can I write data frame with date columns to Oracle database using dbWriteTable ? I am trying: df <-read.table(header = TRUE, sep = ',', stringsAsFactors = FALSE, text=" id,product,origination_date,repayment_date 1,A,2012-01-01,2012-02-01 2,A,2012-01-01,2012-04-01 3,A,2012-01-01,NA 4,A,2012-02-01,2012-03-01 ") df$origination_date <- as.Date(df$origination_date, format = '%Y-%d-%m') df$repayment_date <- as.Date(df$repayment_date, format = '%Y-%d-%m') names(df) <- toupper(names(df))

Executing a stored oracle procedure in R using ROracle

戏子无情 提交于 2019-12-07 02:28:19
问题 I'm having trouble executing/calling an Oracle procedure in R via ROracle. I've tried many different ways of calling the procedure and I keep getting the same errors. I've had no problem doing SELECT queries but calling a procedure is proving difficult. I've used both oracleProc and dbSendQuery functions, but to no avail. Neither of them work. Roracle documentation is pathetic for examples of calling procedures. Let's say the Oracle procedure is called MYPROC in MYSCHEMA. The procedure is

Executing a stored oracle procedure in R using ROracle

五迷三道 提交于 2019-12-05 04:57:06
I'm having trouble executing/calling an Oracle procedure in R via ROracle. I've tried many different ways of calling the procedure and I keep getting the same errors. I've had no problem doing SELECT queries but calling a procedure is proving difficult. I've used both oracleProc and dbSendQuery functions, but to no avail. Neither of them work. Roracle documentation is pathetic for examples of calling procedures. Let's say the Oracle procedure is called MYPROC in MYSCHEMA. The procedure is very simple with NO parameters (it involves reading a few tables and writing to a table) When I execute

ORA-01804 error while trying to load “Oracle” dbDriver

て烟熏妆下的殇ゞ 提交于 2019-12-02 17:52:40
问题 I'm using ROracle and do the following commands in R: Sys.getenv() drv <- dbDriver("Oracle") And here is the error I obtain after this last line: Error in .oci.Driver(.oci.drv(), interruptible = interruptible, unicode_as_utf8 = unicode_as_utf8, : Error while trying to retrieve text for error ORA-01804 I'm on RStudio Server working on a RHEL 5 server. How could I avoid this error? 回答1: You have to check those 2 points: ORACLE_HOME environment variable must be defined $ORACLE_HOME/lib path must

ORA-01804 error while trying to load “Oracle” dbDriver

不羁岁月 提交于 2019-12-02 07:37:41
I'm using ROracle and do the following commands in R: Sys.getenv() drv <- dbDriver("Oracle") And here is the error I obtain after this last line: Error in .oci.Driver(.oci.drv(), interruptible = interruptible, unicode_as_utf8 = unicode_as_utf8, : Error while trying to retrieve text for error ORA-01804 I'm on RStudio Server working on a RHEL 5 server. How could I avoid this error? You have to check those 2 points: ORACLE_HOME environment variable must be defined $ORACLE_HOME/lib path must be in LD_LIBRARY_PATH environment variable value For example, if your ORACLE_HOME is /usr/lib/oracle/12.1

ROracle installation :: Unable to load shared object error

為{幸葍}努か 提交于 2019-12-01 05:07:20
问题 I need to connect R to an Oracle database Followed the instructions on https://cran.r-project.org/web/packages/ROracle/INSTALL, exactly, step by step Getting the following error: library('ROracle') Error in inDL(x, as.logical(local), as.logical(now), ...) :unable to load shared object 'C:/Users/Daniel/R/winlibrary/3.2/ROracle/libs/x64/ROracle.dll': LoadLibrary failure: %1 is not a valid Win32 application. library('ROracle') Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to

ROracle not working in R studio

谁说我不能喝 提交于 2019-11-29 07:53:21
I'm trying to install ROracle package on a unix box. The package gets installed properly. But library(ROracle) does not work fine with the error library(ROracle) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/u01/group1/home/oracle/R/x86_64-redhat-linux-gnu-library/3.1/ROracle/libs/ROracle.so': libclntsh.so.11.1: cannot open shared object file: No such file or directory Error: package or namespace load failed for ‘ROracle’ The package installs fine from the command line , but just does not work in R studio. I went through lot of threads in forum and lot of

ROracle not working in R studio

折月煮酒 提交于 2019-11-28 01:20:47
问题 I'm trying to install ROracle package on a unix box. The package gets installed properly. But library(ROracle) does not work fine with the error library(ROracle) Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared object '/u01/group1/home/oracle/R/x86_64-redhat-linux-gnu-library/3.1/ROracle/libs/ROracle.so': libclntsh.so.11.1: cannot open shared object file: No such file or directory Error: package or namespace load failed for ‘ROracle’ The package installs fine from the