Software
R for windows - http://cran.cnr.berkeley.edu/IDE - http://rstudio.org/
Use case
R and BIEER plugins to Oracle (Oracle R Enterprise packages) Oracle - sys.rqScriptCreate, rqRowEval (parallelism applicable to rq.groupEval and rq.rowEval) BI publisher consumes XML output from sys.rqScriptCreate for graphs BIP and OBIEE can also execute R scripts and sys.rqScriptCreate
R and Hadoop
Hadoop - “Technically, Hadoop consists of two key services: reliable data storage using the Hadoop Distributed File System (HDFS) and high-performance parallel data processing using a technique called MapReduce.” with R and Hadoop, you can pretty much do everything in R interface
R built-in statistical functions in Oracle
- these are the functions that I used for building the r2project - a regression analysis tool for Oracle workload performance
- these built-in functions are not smart scan offloadable
SQL> r 1 select name , OFFLOADABLE from v$sqlfn_metadata 2* where lower(name) like '%reg%' NAME OFF ------------------------------ --- REGR_SLOPE NO REGR_INTERCEPT NO REGR_COUNT NO REGR_R2 NO REGR_AVGX NO REGR_AVGY NO REGR_SXX NO REGR_SYY NO REGR_SXY NO REGEXP_SUBSTR YES REGEXP_INSTR YES REGEXP_REPLACE YES REGEXP_COUNT YES 13 rows selected.
R Enterprise packages
- the sys.rqScriptCreate could be part of the Oracle R Enterprise packages that make use of SELECT SQLs and PARALLEL options (on hints/objects) & that's how it utilizes the Exadata offloading
SQL> select name , OFFLOADABLE from v$sqlfn_metadata 2 where lower(name) like '%rq%'; no rows selected
References
http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/index.htmlhttp://blogs.oracle.com/R
Oracle By Example: Oracle R Enterprise Tutorial Series http://goo.gl/IKd6Q
Oracle R Enterprise Training 1 - Getting Started - http://goo.gl/krOrH
Oracle R Enterprise Training 2 - Introduction to R - http://goo.gl/EGEbn
Oracle R Enterprise Training 3 - Transparency Layer - http://goo.gl/vjvu7
Oracle R Enterprise Training 4 - Embedded R Scripts - http://goo.gl/aZXui
Oracle R Enterprise Training 5 - Operationalizing R Scripts - http://goo.gl/JNRFf
Oracle R Enterprise Training 6 - Advanced Topics - http://goo.gl/ziNs1
How to Import Data from External Files in R http://answers.oreilly.com/topic/1629-how-to-import-data-from-external-files-in-r/
Oracle R install http://husnusensoy.wordpress.com/2012/10/25/oracle-r-enterprise-configuration-on-oracle-linux/
Using the R Language with an Oracle Database. http://dbastreet.com/blog/?p=913
Shiny web app http://www.r-bloggers.com/introducing-shiny-easy-web-applications-in-r/
Plotting AWR database metrics using R http://dbastreet.com/blog/?p=946
Coursera 4 week course http://www.r-bloggers.com/videos-from-courseras-four-week-course-in-r/
Andy Klock's R reference https://www.evernote.com/shard/s242/sh/26a0913e-cead-4574-a253-aaf6c733bdbe/563543114559066dcb8141708c5c89a2