R Script Support

Oracle R Enterprise, a component of the Oracle Advanced Analytics Option, makes the open source R statistical programming language and environment ready for the enterprise and big data. Designed for problems involving large amounts of data, Oracle R Enterprise integrates R with Oracle Database. R users can develop, refine, and deploy R scripts that leverage the parallelism and scalability of the database to perform predictive analytics and data analysis.

The SQL Query node in Data Miner 4.0 provides a simplified interface for integrating R scripts that have been registered with the database. This allows R developers to provide useful scripts for analyzing data.

Oracle R Enterprise must be installed with the server in the same database that Data Miner connects to; see Requirements for Running Oracle R Enterprise Scripts for more information.

You can run embedded R Scripts that use theses interfaces:

The Oracle R Enterprise database roles added to the OMDRUSER role. This includes both the RQUSER and RQADMIN roles. If the RQUSER and RQAMIN roles are not available in the database configuration at the time the Data Miner repository is installed, then the roles must be added by the DBA manually to the ODMRUSER role once Oracle R Enterprise is installed.

You must register R scripts before you can use them. You can register scripts using SQL*Plus or SQL Worksheet, using the SYS connection.

Registered R Scripts are listed on the R Scripts tab of the SQL Query node. There are also R Snippets, code fragments that help you write scripts. Some snippets are just syntax, and others are examples. You can insert and edit snippets when you are using SQL Worksheet or creating or editing R code using SQL Query node.