3.2.1.2 About Using the ore.disconnect Function

To explicitly end the connection between an R session and the Oracle Database instance, invoke the ore.disconnect function.

OML4R implicitly invokes ore.disconnect if you do either of the following:

  • Quit the R session.

  • Invoke ore.connect while an OML4R connection is already active.

When you disconnect the active connection, OML4R discards all OML4R objects that you have not explicitly saved in an OML4R datastore.