Last data update: 2014.03.03

R: Close a connection to an Oracle Database
RODM_close_dbms_connectionR Documentation

Close a connection to an Oracle Database

Description

This function closes a connection to an Oracle Database.

Usage

RODM_close_dbms_connection(
    database)

Arguments

database

Database ODBC channel identifier returned from a call to RODM_open_dbms_connection

Details

This functions closes an Oracle Database ODBC channel by calling the RODBC function: odbcClose.

Value

None.

Author(s)

Pablo Tamayo pablo.tamayo@oracle.com

Ari Mozes ari.mozes@oracle.com

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_open_dbms_connection

Examples

# Given a database user rodm, establish a connection to the 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;

## 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)

Results