RODM_open_dbms_connection(RODM)
RODM_open_dbms_connection()所属R语言包:RODM
Open a connection to an Oracle Database
打开一个连接到Oracle数据库
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function opens a connection to an Oracle Database.
此函数打开一个连接到Oracle数据库。
用法----------Usage----------
RODM_open_dbms_connection(
dsn,
uid = "",
pwd = "")
参数----------Arguments----------
参数:dsn
ODBC Data Source Name.
ODBC数据源名称。
参数:uid
Database user id.
数据库用户ID。
参数:pwd
Password for the database user.
为数据库用户的密码。
Details
详细信息----------Details----------
This functions opens an ODBC channel to an Oracle database by calling the RODBC function: odbcConnect(dsn=dsn, uid=uid, pwd=pwd, case="oracle").
此功能打开RODBC函数调用Oracle数据库的ODBC通道:odbcConnect(DSN = DSN,UID = UID,PWD =密码的情况下=“甲骨文”)。
It validates that the database is Oracle version 11, that Oracle Data Mining is installed, and that the connecting user has appropriate privileges for mining in the database.
验证数据库是Oracle版本11,安装Oracle数据挖掘,以及挖掘数据库中的连接的用户有适当的权限。
The necessary privileges for connecting and mining are as follows: CREATE SESSION, CREATE TABLE, CREATE VIEW, and CREATE MINING MODEL. The connecting user will also need quota in a tablespace.
连接和挖掘的必要权限如下:CREATE SESSION,CREATE TABLE,CREATE VIEW,CREATE MINING MODEL。连接的用户还需要在一个表空间配额。
The first time RODM_open_dbms_connection is invoked for a given database user, this function will also create a temporary table to hold settings that are used to build ODM models (table name RODM_SETTINGS_TABLE).
的第一时间RODM_open_dbms_connection的调用给定的数据库用户,该功能还可以创建一个临时表来保存设置,用于建立ODM模型(表名RODM_SETTINGS_TABLE),。
值----------Value----------
An Oracle database ODBC channel.
Oracle数据库的ODBC通道。
(作者)----------Author(s)----------
Pablo Tamayo <a href="mailto:pablo.tamayo@oracle.com">pablo.tamayo@oracle.com</a>
Ari Mozes <a href="mailto:ari.mozes@oracle.com">ari.mozes@oracle.com</a>
参考文献----------References----------
Oracle Data Mining Administrator's Guide 11g Release 1 (11.1) http://download.oracle.com/docs/cd/B28359_01/datamine.111/b28130/toc.htm
参见----------See Also----------
RODM_close_dbms_connection
RODM_close_dbms_connection
实例----------Examples----------
# Given a database user rodm, establish a connection to the orcl11g[给定一个数据库用户RODM,建立一个连接到orcl11g]
# database.[数据库。]
# The database user would need privileges as described above, and could[数据库用户将需要如上所述的特权,并且可能]
# have been created in a fashion similar to:[已经创造了一个类似的方式:]
# grant create session, create table, create view, create mining model, [授予创建会话,创建表,创建视图,创建挖掘模型,]
# unlimited tablespace to rodm identified by rodm;[UNLIMITED TABLESPACE RODM确定的RODM;]
## Not run: [#不运行:]
DB <- RODM_open_dbms_connection(dsn="orcl11g", uid="rodm", pwd="rodm")
# Close the connection to the database.[关闭到数据库的连接。]
RODM_close_dbms_connection(DB)
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|