View source: R/make_oracle_cxn.r
make_oracle_cxn | R Documentation |
This function facilitates creating a connection to Oracle, and allows connection via RODBC or ROracle, depending on the value of usepkg.
make_oracle_cxn(
usepkg = "rodbc",
fn.oracle.username = "_none_",
fn.oracle.password = "_none_",
fn.oracle.dsn = "_none_",
quietly = FALSE
)
usepkg |
default is |
fn.oracle.username |
default is |
fn.oracle.password |
default is |
fn.oracle.dsn |
default is |
quietly |
default is |
This function temporarily changes the system values for "TZ" and "ORA_SDTZ" to "GMT" to
ensure that dates and times extracted from the various databases remain correct. It does this
by running Sys.setenv(TZ = "GMT")
and Sys.setenv(ORA_SDTZ = "GMT")
. Once a
connection is established (or failes to be established), it restores the values that previously
existed.
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other dfo_extractions:
get_data_tables()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.