PK
%Aoa, mimetypeapplication/epub+zipPK %A iTunesMetadata.plistV
This section describes new features relating to installation and administration of Oracle R Enterprise. It includes the following sections:
Oracle R Enterprise Release 1.3 includes these new features:
Installation and administration information has moved from Oracle R Enterprise User's Guide to Oracle R Enterprise Installation and Administration Guide (this manual).
Release 1.3 requires R 2.15.1; see R Requirement
Installation of Oracle R Distribution uses http://public-yum.oracle.com/
only.
You can now Control Memory Used by Embedded R
Oracle R Enterprise Release 1.1 includes these new features:
Support for IBM AIX: The Oracle R Distribution and Oracle R Enterprise are supported on AIX 5.3 and higher.
Support for Solaris: The Oracle R Distribution and Oracle R Enterprise are supported on Solaris 10 and higher for both 64-bit SPARC and 64-bit x386 (Intel) processors.
Improved mathematics libraries in R
You can now use the improved Oracle R Distribution with support for dynamically picking up either the Intel Math Kernel Library (MKL) or the AMD Core Math Library (ACML) with Oracle R Enterprise.
Sun Performance Library for Solaris (SUNPERF), the high performance math library for Solaris 10, is supported on Solaris SPARC and Solaris x86.
Server runs on Windows
The Oracle R Enterprise server now runs on 64-bit and 32-bit Windows operating systems.
Support for Oracle Wallet
R scripts no longer need to have database authentication credentials in clear text. Oracle R Enterprise is integrated with Oracle Wallet for that purpose.
Improved installation
The installation scripts have been improved with more prerequisite checks and detailed error messages. Error messages provide specific instructions on remedial actions.
This chapter describes how to install the Oracle R Enterprise server on Linux. You can also install the server on Oracle Exadata, as described in Install Server on Oracle Exadata.
Install the same release of Oracle R Enterprise for both client and server.
Install the server as follows:
Make sure that the Prerequisites for Linux are satisfied.
You can install the server on Linux only.
Make sure that Oracle Database Requirement is installed on the system where you plan to install the server. Make sure that any required patches are installed properly.
Install R, as described in R Requirement.
Install R before you install the server.
Before you start the server installation, check that you can run R. This usually means that the R executable is in your PATH environment variable.
Make sure that the Required Privileges are satisfied. If you do not run the install script from an appropriate account, the script will fail.
Set the Environment Variables ORACLE_HOME, ORACLE_SID, LD_LIBRARY_PATH, and PATH.
Read Server Installation Overview or go to Install Server on Linux to begin the install.
Follow the directions in Install Server on Linux or Install Server on Oracle Exadata to install the server.
Install the Oracle R Enterprise Client Supporting Packages.
Before you can run Oracle R Enterprise, you must create at least one user, as described in Oracle R Enterprise Users. Then you can Validate Oracle R Enterprise Installation.
The install scripts for the Oracle R Enterprise server require:
You must run the script from an account that has Required Privileges.
You must properly set certain Environment Variables.
This section also contains the Server Installation Overview that explains how the installation script works.
Important: Before you start installation, make sure that:
You have DBA privileges, that is, you can run as oracle
:
On Linux, you must be a member of the DBA group; the user oracle
satisfies this requirement. Note that root
is not usually a member of the DBA group.
If necessary, users can be added to the DBA group with
useradd -G dba <username>
In any case, make sure that you are logged in to an account in which you can run sqlplus / as sysdba
before you run the install script.
You have write privileges at the operating system level to the directory $ORACLE_HOME/lib
; the user oracle
satisfies this requirement
In summary, for all platforms, you can use the account that you used to install the database to install the server. Check that you can run R from this account.
Make sure that these environment variables exist and are defined properly:
Add $ORACLE_HOME/lib to LD_LIBRARY_PATH
Add $ORACLE_HOME/bin to PATH
Define the variable $ORACLE_SID; it contains the SID for the database where you install Oracle R Enterprise.
The installation scripts for the server works as follows:
Before the Oracle R Enterprise server install starts, it checks for the presence of an R installation.
Once the script verifies that R is known to be installed and its location known via PATH, the install checks for the presence of these libraries in $R_HOME/lib/
. In particular, the script checks for
$R_HOME/lib/libR.so
$R_HOME/lib/libRblas.so
$R_HOME/lib/libRlapack.so
Next the script checks the location of the database installation by checking for the presence of environment variable ORACLE_HOME and ORACLE_SID.
If ORACLE_HOME is set, the install expects that the $ORACLE_HOME/lib
directory is present.
Before you start the script check that ORACLE_HOME and ORACLE_SID are present and properly set.
Next the script checks the Oracle database instance information. The check includes looking for environment variable ORACLE_SID and then connecting to the instance by starting
sqlplus /as sysdba
Logging into the database as sysdba
is critical for the install script to proceed.
If sqlplus
fails to connect to the database instance, the install process aborts.
Before you start the installation script, check that you can connect to the database using this sqlplus
command.
If Oracle R Enterprise has been installed on the database, that is, if you installed release 1.0, 1.1, or 1.2, then the installer expects to find a user name RQSYS in dba_users
table and the Oracle R Enterprise version number details in SYS.RQ_CONFIG. The installer uses this information subsequently to install the correct SQL packages.
The script prompts you to optionally enter the names of permanent and temporary table spaces for the RQSYS schema; the default schemas are SYSAUX and TEMP.
At this point, the install script has determined it has found the prerequisites satisfactory and proceeds to do the actual installation.
The install script now attempts to copy libraries to $ORACLE_HOME/lib
.
If $ORACLE_HOME/lib
is not writable then the installer errors out.
The install script now installs the RQSYS schema. Installing the schema requires logging into the database as SYSDBA.
Finally, the ORE packages are installed under $ORACLE_HOME/R/library
.
These directions describe how to install Oracle R Enterprise on Oracle Linux or Red Hat Linux on the Linux x86-64 platform. To install the server on Oracle Exadata, see Install Server on Oracle Exadata.
Review Before You Install the Server before you run the installation script. Make sure that all environment variables are properly set and that all required directories are present.
Follow these steps to install the server:
Install a Database that satisfies Oracle Database Requirement. Make sure that any required patches are installed properly. If the Database is already installed, make sure that it satisfies the requirements.
Install R, as described in R Requirement.
Make sure that these environment variables exist and are defined properly:
Add $ORACLE_HOME/lib to LD_LIBRARY_PATH
Add $ORACLE_HOME/bin to PATH
Define the variable $ORACLE_SID; it contains the SID for the database where you install ORE.
You must have DBA privileges that is, you can run as oracle
. The install scripts run SQL*Plus / as sysdba
and write to ORACLE_HOME.
Download ore-server-linux-x86-64-1.3.zip
as described in Download Oracle R Enterprise Software. If you install the server on Oracle Database 11g Release 2 (11.2), you must download the archive.
Unzip ore-server-linux-x86-64-1.3.zip
into an empty directory on your local system. This creates a directory containing library files, SQL scripts, and the install shell script install.sh
.
Run install.sh
. to create objects in the SYS and RQSYS schemas.
This script copies ORE packages to $ORACLE_HOME/R/library
and R_LIBS_USER
.
The script executes rqinst.sql
with SYSAUX and TEMP as the default and temporary tablespaces.
The script creates all SQL objects required by Oracle R Enterprise in the RQSYS user schema. The RQSYS schema is created as a locked account with expired password and no connect privileges.
Install the Oracle R Enterprise Client Supporting Packages ore-supporting-linux-x86-64-1.3.zip
as follows:
Unzip the download. Go to the directory where you unzipped the archive and run these commands:
ORE CMD INSTALL DBI_0.2-5_R_x86_64-unknown-linux-gnu.tar.gz ORE CMD INSTALL ROracle_1.1-7_R_x86_64-unknown-linux-gnu.tar.gz ORE CMD INSTALL png_0.1-4_R_x86_64-unknown-linux-gnu.tar.gz
After installation completes, create at least one user, as described in Oracle R Enterprise Users. It may be necessary to make certain GRANTs to users who perform certain tasks; see Required GRANTs.
You may wish to use Oracle Wallet, especially if you plan to run scripts in light-out mode. For information, see Configure Oracle Wallet (Optional)
The Oracle Exadata Database Machine is a complete preoptimized and preconfigured package of software, servers, and storage that provides an optimal solution for all database workloads. It combines Oracle Exadata Storage Server Software, Oracle Database software, and Sun hardware components to deliver extreme performance in a highly available and highly secure environment. Along with Oracle's unique clustering and workload management capabilities, the Database Machine is also well-suited for consolidating multiple databases onto a single grid.
These directions describe how to install Oracle R Enterprise on Oracle Exadata.
An Oracle Database Machine consists of several compute nodes, along with storage and other facilities. Oracle R Enterprise server must be installed on every compute node), that is on every server where the database is installed.
Follow these steps to install Oracle R Enterprise server on Oracle Exadata:
Install the following software on each compute node:
Oracle R Distribution, as described in Install R on Linux
Oracle R Enterprise Server, as described in Install Server on Linux; make sure that you follow all steps, including installation of the Oracle R Enterprise Client Supporting packages
Each compute node has it's own ORACLE_HOME, ORACLE_SID, and PATH environment variable.
You must install the following software on each Oracle R Enterprise client, as described in Install Client:
Oracle R Distribution
Oracle R Enterprise Client packages
Oracle R Enterprise Client supporting packages
The client systems must be able to communicate with the server The clients can run on Microsoft Windows or on Linux.
Installation and Administration Guide
Release 1.3 for Linux and Windows
E36763-04
December 2012
Oracle R Enterprise Installation and Administration Guide, Release 1.3 for Linux and Windows
E36763-04
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.
Primary Author: Margaret Taft
Contributor: The Oracle Database 12c documentation is dedicated to Mark Townsend, who was an inspiration to all who worked on this release.
This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing.
If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government.
This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group.
This software or hardware and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services.
You can obtain the archives that contain Oracle R Enterprise software as follows:
Oracle R Enterprise software for both client and server is available for download from Oracle Technology Network. You must have a free Oracle Technology Network account in order to download software. See http://www.oracle.com/technetwork/community/join/why-join/index.html
for information.
To download software for Oracle R Enterprise, go to Oracle R Enterprise Downloads at http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/ore-downloads-1502823.html
.
Before you can download any files, you must accept the OTN License Agreement.
You must download the client or server software plus the client supporting packages; for example to install the client on Microsoft Windows, you must download Oracle R Enterprise Client Packages for Windows Platform and Oracle R Enterprise Client Supporting Packages for Windows Platform.
To download the latest software, click the links for your platform for your platform and the release of Oracle R Enterprise that you are installing. These are the downloads for Oracle R Enterprise 1.3 on Windows and Linux:
Microsoft Windows:
Oracle R Enterprise Client Packages for Windows Platform (includes client packages for both 32-bit and 64-bit architectures)
Oracle R Enterprise Client Supporting Packages for Windows Platform (includes client supporting packages for both 32-bit and 64-bit architectures)
Linux 64-bit:
Oracle R Enterprise Client Packages for Linux 64-bit Platform
Oracle R Enterprise Client Supporting Packages for Linux 64-bit Platform
Oracle R Enterprise Server Install for Oracle Database on Linux 64-bit
Click the link for the software that you require. Sign on using your Oracle Technology Network login.
An archive is downloaded for all platforms. Save the archive on your local system and unzip it.
R is an open source statistical programming language and environment. For information about R, see the R Project for Statistical Computing at http://www.r-project.org
.
Oracle R Enterprise is a component of the Oracle Advanced Analytics Option of Oracle Database Enterprise Edition. For detailed information about Oracle R Enterprise, including links to software downloads, go to Oracle R Enterprise at http://www.oracle.com/technetwork/database/options/advanced-analytics/r-enterprise/index.html
.
For information about Oracle R Enterprise architecture and how to use Oracle R Enterprise, see the Oracle R Enterprise User's Guide.
There are several Oracle R Enterprise Installation Steps.
Oracle R Enterprise consists of a server and one or more clients. The server and client can reside on the same system or on different systems.
You must perform these major tasks to install Oracle R Enterprise:
Verify that all of the Prerequisites are satisfied. In particular
Make sure that Operating System Requirement is satisfied.
Make sure that the correct version of Oracle database is installed on the server, as described in Oracle Database Requirement
Install R as described in R Requirement.
Install Oracle R Enterprise Server components on the server as described in Install Server.
Install Oracle R Enterprise Client components on each of the client systems, as described in Install Client.
Note: Oracle R Enterprise client and server must be the same version. For example, Oracle R Enterprise 1.3 Client is the only client that can connect to an Oracle R Enterprise 1.3 Server. |
After you install client and server, you create at least one user and start the client, as described in Administrative Tasks.
If the installation is not successful, you can Troubleshoot the Installation.
After you have installed a server and at least one client, create at least one user:
Create Oracle R Enterprise Users
Make Required GRANTs for special purposes
Configure Oracle Wallet (Optional) to make connections more secure.
After you create a user, perform these tasks:
As system administrator, you can Control Memory Used by Embedded R.
If you installed any previous version of Oracle R Enterprise, you can Upgrade Oracle R Enterprise.; upgrade happens as part of install.
If necessary, you can Uninstall Oracle R Enterprise.
The installation script creates a log file on the server. Examine the log file even if the installation reports success. Search the log file for ERROR.
If you cannot resolve the problems, request help from Oracle Support or from the Oracle R Enterprise discussion forum.
You must create at least one user for Oracle R Enterprise. Follow these steps to create a user for Oracle R Enterprise:
Add any Required GRANTs
To create an Oracle R Enterprise user, use
To run these scripts, start SQL*Plus / as sysdba
.
Either of these scripts asks you if you want to create an ORE (Oracle R Enterprise) user. The script checks that Oracle Database and Oracle R Enterprise are installed and then creates a user.
After you create the user RQUSER, you can edit the user as necessary; for example, you can and should change the password.
Several additional GRANTs may be required depending on how you plan to use Oracle R Enterprise:
RQADMIN role Oracle R Enterprise installation creates the administrative role RQADMIN.
RQADMIN allows Oracle R Enterprise users to create and drop R scripts that use the database embedded R engine.
All users can execute such scripts; no special grant is required.
Note: You should grant RQADMIN only to those users who need to have it, that is, to users who must create and drop R scripts that use the database embedded R engine. |
To grant RQADMIN to RQUSER, start SQL*Plus as sysdba
and type
GRANT RQADMIN to RQUSER
CREATE TABLE is needed by some functions that create temporary tables, such as ore.create()
with a table argument.
To grant CREATE TABLE to RQUSER, start SQL*Plus as sysdba
and type
GRANT CREATE TABLE TO RQUSER;
CREATE PROCEDURE is required by ore.groupApply
()
To grant CREATE PROCEDURE to RQUSER, start SQL*Plus as sysdba
and type
GRANT CREATE PROCEDURE TO RQUSER;
CREATE VIEW is required by ore.create()
with a view argument and by the OREdm
package.
To grant CREATE VIEW to RQUSER, start SQL*Plus as sysdba
and type
GRANT CREATE VIEW TO RQUSER;
CREATE MINING MODEL is required by the OREdm
package.
To grant CREATE MINING MODEL to RQUSER, start SQL*Plus as sysdba
and type
GRANT CREATE MINING MODEL TO RQUSER;
Two GRANTs that were required for Oracle R Enterprise 1.1 are no longer required; see Deprecated Grants for details.
The RQROLE role was granted to all users for Oracle R Enterprise 1.1. RQROLE is deprecated for Oracle R Enterprise 1.3.
This GRANT EXECUTE:
grant EXECUTE on rqsys.rqGroupEvalImpl to rquser;
is deprecated for Oracle R Enterprise 1.3 but was required for Oracle R Enterprise 1.1.
The Oracle Wallet provides secure storage of user passwords and client certificates. An Oracle Wallet provides a secure way for embedded R scripts to avoid storing passwords in the script.
Follow these steps to configure Oracle Wallet with Oracle R Enterprise:
Configure Oracle Wallet and store the username and password. For information, see the discussions of Oracle Wallet in Oracle Database Security Guide.
Add the connection string used to create the wallet entry (for example, "mydb112_test") to map to the DB instance connection string in tnsnames.ora
(Change the host name to be your database machine name and SID to be the SID of your database.):
mydb112_test = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = <host_name>) (PORT = 1521) ) (CONNECT_DATA = (sid=<SID>)) )
After you complete the steps, you can just use the connect string to connect to the database:
ore.connect(conn_string = "mydb112_test", all = TRUE)
For more information about connecting using Oracle Wallet, see the R help for ore.connect()
.
After you have installed a server and a client, follow these directions to start the client:
After the server is installed, you can launch the client.
To launch the Oracle R Enterprise client in a running session of R 2.15.1 (or R 2.13.2 for earlier releases), execute the following R code from the R Console. Before you execute the code, modify the connection information (user
, sid
, host
, password
, and port
) for the database where the R Sever is installed:
# Load ORE packages and dependencies # DBI, ROracle, OREbase, MASS, OREstats, # OREgraphics, OREeda, ORExml, ORE library(ORE) # Connect to Oracle RDBMS # Change the connection information below ore.connect(user = "<USERNAME>", sid = "<SID>", host = "<HOST>", password = "<PASSWORD>", port = PORTNUMBER, all = TRUE)
For more information, see Connect to an Oracle Database.
To test that you can connect to the specified Oracle Database, type
ore.is.connected()
ore.is.connected
returns TRUE if you are connected to the database, or FLASE if you are not connected.
After you set up Oracle Wallet, as described in Configure Oracle Wallet (Optional), you can connect as follows:
ore.connect(conn_string = "ore_wallet", all = TRUE)
ore_wallet
is a connect string that has been registered with the Wallet.
As with all R commands, this code can be used during the initialization of an R session.
For more information on the initialization sequence of R on startup, type help(Startup)
in the R Console.
Specify ore.connect
in an embedded R function, otherwise all embedded R scripts automatically go to the same schema.
After the server is installed, you can launch the client.
Before you launch Oracle R Enterprise client, add these paths to the LD_LIBRARY_PATH environment variable:
The path where Oracle Instant Client libraries are installed. Otherwise loading of ROracle package will fail.
The path for the shared libraries libR.so
, libRblas.so
, and libRlapack.so
from the installation of R 2.15.1 (or R 2.13.2 for earlier releases)
Start R 2.15.1 (or R 2.13.2 for earlier releases) from your favorite Linux shell. Next use ore.connect
to connect to the Oracle Database where the server resides.
Launch the Oracle R Enterprise client by executing, after modifying the connection information (user, sid, host, password, and port), the following R code from the R Console:
# Load ORE packages and dependencies # DBI, ROracle, OREbase, MASS, OREstats, # OREgraphics, OREeda, ORExml, ORE library(ORE) # Connect to Oracle RDBMS # Change the connection information below ore.connect(user = "<USERNAME>", sid = "<SID>", host = "<HOST>", password = "<PASSWORD>", port = PORTNUMBER all = TRUE)
Your Oracle Database Administrator can provide you with suitable values for USERNAME, SID, HOST, PASSWORD, and PORT. These values provide connection information for the database.
For more information, see Connect to an Oracle Database.
After you set up Oracle Wallet, as described in Configure Oracle Wallet (Optional), you can connect as follows:
ore.connect(conn_string = "ore_wallet", all = TRUE)
ore_wallet
is a connect string that has been registered with the Wallet.
As with all R commands, this code can be used during the initialization of an R session.
For information on the initialization sequence of R on startup, type help(Startup)
in the R Console.
Oracle R Enterprise includes the following R functions that enable transparent access to Oracle Database tables and views:
ore.connect(user = "", sid = "", host = "localhost", password = "", port = 1521, service_name = NULL, conn_string = NULL,all = FALSE, type = c("ORACLE", "HIVE"))
establishes a connection to an Oracle R Enterprise server running on an ORE database.
The call ore.connect()
must precede all other calls to ORE functionality (except ore.is.connected()
). There can only be one active ORE connection.
An ORE session can optionally end with a call to function ore.disconnect
(). An ORE session is implicitly terminated when the R session ends.
To connect to an Oracle Database, specify user
, sid
, host
, password
, and port
. conn_string is specified if you set up Oracle Wallet as described in Configure Oracle Wallet (Optional).
For examples of ore.connect()
, see Connect to an Oracle Database.
Calling ore.connect()
when an active ORE connection already exists results in disconnecting the active session prior to starting a new session.
If ore.is.connected()
returns TRUE, an active connection exists.
ore.attach(schema, pos = 2, warn.conflicts = TRUE)
attaches The named ORE schema's R environment to the R search path. When attached to the R search path, the ORE objects can be accessed by directly by name.
If you don't specify schema
, the default schema, the one used to connect to the ORE database, is used.
By default the ORE database is attached in position 2 in the R search path, immediately after the user's workspace and before all previously attached packages and environment. The pos
argument can be used to attach the ORE schema at a different location in the search path, but it cannot be attached at pos = 1
.
If you use the all
parameter of ore.connect
when you attach to a database, ore.attach
is executed automatically.
Use ore.detach(schema)
to detach from schema
.
ore.sync(schema, table, use.keys = TRUE)
synchronizes ore.frame
objects, representing database tables and views, in the ORE schema environment, on a per schema basis.
Oracle R Enterprise creates proxy objects in R that correspond to the tables or views in the database schema. These proxy objects contain metadata used by Oracle R Enterprise internally to provide transparency layer functionality.By default, ore.sync()
uses the schema given in ore.connect()
. The schema argument can be used to select a different schema to which the user has the appropriate access privileges.If table
is not specified in an ore.sync function call, all tables and views whose name do not contain $
or begin with SYS_
are selected. Select all tables in a database schema can be expensive and so the recommended practice is to use table
to limit the number of tables and views represented in the ORE schema environment.
ore.ls(schema, all.names = FALSE, pattern)
lists all objects in the specified schema
with names that match the regular expression pattern
. all.names = FALSE
lists names that do not start with . (period), such as internal functions or objects.
ore.ls()
returns the objects available in the current ORE schema environment.
Objects created by Oracle R Enterprise are identified with the ore
prefix. Pick any object returned by ore.ls()
and type either class(OBJECTNAME)
or class(OBJECTNAME$COLUMN_NAME)
.
For example,
R> class(NARROW) [1] "ore.frame" attr(,"package") [1] "OREbase"
The prefix ore
is applied to the class names. This indicates that the object is an Oracle R Enterprise created object that holds metadata (instead of contents) of the corresponding object in Oracle Database.
The purpose of validation is to ensure that you can connect to the database that has now been enabled with Oracle R Enterprise from R and successfully useOracle R Enterprise.
The exact same steps validate a server installation or a client installation.
After you complete the installation, follow these steps to validate it:
Start R on a client. Load the Oracle R Enterprise Packages:
R> library(ORE)
Connect to the Oracle Database on the server. The exact command depends the details for the database to which you connect:
R> ore.connect(user = "rquser", sid = "orcl", host = "localhost", password = "rquser", port = 1521, all = TRUE)
In this command provide the values for user
, sid
, host
, password
, and port
that are correct for your database. If you did not install the database, you may have to ask the DBA for these values.
Alternatively if the database is on the same machine, use ore.connect
in this way.
ore.connect(“scott”, password=”tiger”, conn_string=””, all=TRUE)
Run several Oracle R Enterprise demos. This command provides a list of available demos:
R> demo(package = "ORE")
These commands illustrate how to run specific demos:
# Test the transparency layer R> demo("aggregate", package = "ORE") # Test embedded R: R> demo("row_apply", package = "ORE")
As system administrator, you can control the memory resources between R and other processes running on system. For example, a properly-set minimum memory bound allows R to have enough memory to run in a reasonable amount of time while a properly-set maximum number prevents R from holding too much memory unnecessarily or starving other processes.
This feature limits the amount of R heap memory (vector and cons in R's terminology) that is automatically managed by R's gc
mechanism. The C-type memory that may be allocated via call Calloc, Realloc, calloc, and malloc is not controlled by this feature. Such C-type memory is mainly created to hold intermediate or temporary values for completing computation in an R function implemented in C. The C-type memory that may be allocated and released explicitly by function is not controlled by this feature. Under normal circumstances, the amount of such memory is usually of limited size and does not affect memory usage of R significantly.
Oracle R Enterprise 1.3 allows a DBA to control R memory usage by specifying minimum vector heap, maximum vector heap, minimum cons cells, and maximum cons cells using the sys.rqconfigset
SQL procedure.
Use these commands to set minimum vector heap, maximum vector heap, minimum cons cells, and maximum cons cells
sys.rqconfigset('MIN_VSIZE', '20M')
sets minimum R vector heap memory to 20MB; default is 32MB
sys.rqconfigset('MAX_VSIZE', '100M')
sets maximum R vector heap memory to 100MB,;default is 4GB
sys.rqconfigset('MIN_NSIZE', '500K')
sets minimum number of R cons cells to 500x1024,; default is 1M
sys.rqconfigset('MAX_NSIZE', '10M')
sets maximum number of R cons cells to 10x1024x1024; default is 20M
To set maximum vector heap memory and maximum cons cells to no limits,
exec sys.rqconfigset('MAX_VSIZE', NULL); exec sys.rqconfigset('MAX_NSIZE', NULL)
You can upgrade from any version of Oracle R Enterprise to the current version by reinstalling the product.
If you installed an earlier version of Oracle R Enterprise, you can upgrade to this release as follows:
To upgrade the Client, re-install the packages. See Install Client on Microsoft Windows or Install Client on Linux. You do not have to uninstall the client packages before you re-install.
To upgrade the Server, follow the steps in Install Server. When install.sh
detects a previous version of Oracle R Enterprise, it asks if upgrade is needed. Answering No
aborts the process; answering Yes
starts the upgrade.
Follow all of the upgrade steps, including the installation of ore-supporting-linux-x86-64-1.3.zip
.
You uninstall Uninstall Oracle R Enterprise by removing the packages and by running a script.
Follow these steps to uninstall Oracle R Enterprise client:
To remove the Oracle R Enterprise packages, start R and type these commands:
remove.packages("ORE") remove.packages("ORExml") remove.packages("OREeda") remove.packages("OREgraphics") remove.packages("OREstats") remove.packages("OREbase") remove.packages("ROracle") remove.packages("DBI") remove.packages("png") remove.packages("OREdm") remove.packages("OREpredict")
This book describes how to install and administer Oracle R Enterprise Release 1.3.
This document is intended for anyone responsible for installing or administering Oracle R Enterprise.Oracle R Enterprise. Installation of Oracle R Enterprise requires knowledge of R and the Oracle Database.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Access to Oracle Support
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
These manuals describe Oracle R Enterprise:
Oracle R Enterprise Installation and Administration Guide (this manual)
For information about Oracle Database, see the Oracle Database Documentation Library 11g Release 2 (11.2).
The following text conventions are used in this document:
Convention | Meaning |
---|---|
boldface | Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. |
italic | Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. |
monospace | Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. |