orch.reconnect

Reconnects to Oracle Database with the credentials previously returned by orch.disconnect.

Note:

The orch.reconnect function is deprecated in release 1.1 and will be desupported in release 2.0. Use orch.connect to reconnect using a connection object returned by orch.dbcon.

Usage

orch.reconnect(dbcon)

Arguments

dbcon

Credentials previously returned by orch.disconnect.

Usage Notes

Oracle R Connector for Hadoop preserves all user credentials and connection attributes, enabling you to reconnect to a previously disconnected session. Depending on the orch.connect secure setting for the original connection, you may be prompted for a password. After reconnecting, you can continue data transfer operations between Oracle Database and HDFS.

Reconnecting to a session is faster than opening a new one, because reconnecting does not require extensive connectivity checks.

Return Value

TRUE for a successfully reestablished and validated connection, or FALSE for a failed attempt

See Also

orch.connect

Example

R> orch.reconnect(oid)
Connecting ORCH to RDBMS via [sqoop]
    Host: localhost
    Port: 1521
    SID:  orcl
    User: RQUSER
Enter password for [RQUSER]: password
Connected
[1] TRUE