Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.3K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 468 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
sourceCpp and embedded script

Hi,
I have an R script which runs perfectly on the server in an ORE environment. It uses the Rcpp package to create C++ objects and uses the sourceCpp function to call the C++ object script.
However, when I embed to exact same script for embedded R execution I get the following error:
ORA-20000: RQuery error
Error in system(cmd, ignore.stderr = TRUE, intern = TRUE) :
error in running command
ORA-06512: at "RQSYS.RQEVALIMPL", line 104
ORA-06512: at "RQSYS.RQEVALIMPL", line 101
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
I have the RQADMIN role privilege.
I am unable to ascertain exactly what the 'cmd' variable may be as my R skills are limited and it appears buried in the package.
Why does this run in my ORE environment with a unix account and not with my Oracle account?
Any help on this would be appreciated.
Kind Regards
Answers
-
The problem is caused by Rcpp package calls to R's system() function to build a shared library e.g. system("R CMD SHLIB ...") . Specifically, this fails when the "R CMD SHLIB" call runs inside of ORE's embedded R execution because it calls a second R session, recursively calling R. Recursive calls to R are not supported in ORE's embedded R execution due to a Database limitation.
Sherry
-
Hi Sherry,
Thank you so much for your reply. Following on from this, is there any chance this may be resolved? I imagine lots of users would want to use the Rcpp package. Do you have any information on ORD 3.4.4? I have followed the link to https://oss.oracle.com/ORD/ but cannot find the software. What are the upgrade plans?
Kind Regards
Scott
-
Hi Scott,
This happens when a table function invokes another table function or external procedure. This is a limitation of Oracle Database itself and not Oracle Machine Learning for R (formerly ORE). I'll contact the team responsible for this functionality with this request for a future Database release.
Oracle R Distribution 3.4.4 for Linux is out on Oracle's public yum, and Oracle R Distribution 3.6.1 for Linux, Windows, AIX and Solaris SPARC 64-bit will be released in the coming weeks.
Hope it helps.
Sherry
-
Hi Sherry,
This does help. Thank you again for taking the time to respond and it would be very exciting if the request for new functionality is realised.
I look forward to working with ORD 3.6.1 as I have a number of packages that I would love to install rather than pick apart.
Kind Regards
Scott