【发布时间】:2014-01-27 23:28:07
【问题描述】:
我在 Windows 7 下运行以下版本的 R。
R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
使用库(RODBC),
channel <- odbcConnect(dsn = "database")
ProcExec <- "execute LENGTHCOMP(2004)"
# the procedure returns nothing, but creates a series of Oracle tables needed later in the R function
sqlQuery(channel = channel, query = ProcExec, believeNRows = FALSE)
odbcClose(channel)
返回错误:
[1] "42000 0 [Oracle][ODBC]Syntax error or access violation."
[2] "[RODBC] ERROR: Could not SQLExecDirect 'execute LENGTHCOMP(2004)'" .
图书馆 ROracle(2013 年 8 月)表示
dbCallProc 方法 调用 SQL 存储过程 描述 尚未实施。
他们的其他 R 包是否提供在 Oracle 上调用存储的 PL/SQL 过程的功能?或者有没有办法让 sqlQuery 从 RODBC 包中做到这一点?
【问题讨论】:
-
我也有同样的问题。有没有人找到答案或解决方法?
标签: r oracle stored-procedures plsql