Description Generators Extends Methods See Also Examples
An Oracle connection class implementing the R database interface (DBI) API.
The method dbConnect
is the main generator.
Class "DBIConnection"
, directly.
Class "DBIObject"
, by class "DBIConnection"
, distance 2.
signature(conn = "OraConnection")
: ...
signature(conn = "OraConnection", statement = "character", prefetch = FALSE, bulk_read = 1000L, bulk_write = 1000L)
: ...
signature(conn = "OraConnection", statement = "character", prefetch = FALSE, bulk_read = 1000L, bulk_write = 1000L)
: ...
signature(conn = "OraConnection")
: ...
signature(conn = "OraConnection")
: ...
signature(conn = "OraConnection")
: ...
signature(conn = "OraConnection", name = "character")
: ...
signature(conn = "OraConnection", name = "character", value = "data.frame")
: ...
signature(conn = "OraConnection", name = "character")
: ...
signature(conn = "OraConnection", name = "character")
: ...
signature(conn = "OraConnection", name = "character")
: ...
signature(conn = "OraConnection")
: ...
signature(conn = "OraConnection")
: ...
signature(dbObj = "OraConnection")
: ...
signature(object = "OraConnection")
: ...
signature(object = "OraConnection")
DBI classes:
OraDriver-class
OraConnection-class
OraResult-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | ## Not run:
ora <- dbDriver("Oracle")
## connecting without a connect string
con <- dbConnect(ora, "scott", "tiger")
## connecting with a connection string with SID
host <- "myhost"
port <- 1521
sid <- "mysid"
connect.string <- paste(
"(DESCRIPTION=",
"(ADDRESS=(PROTOCOL=tcp)(HOST=", host, ")(PORT=", port, "))",
"(CONNECT_DATA=(SID=", sid, ")))", sep = "")
## use username/password authentication
con <- dbConnect(drv, username = "scott", password = "tiger",
dbname = connect.string)
## connecting with a connection string with service name
host <- "myhost"
port <- 1521
svc <- "mydb.example.com"
connect.string <- paste(
"(DESCRIPTION=",
"(ADDRESS=(PROTOCOL=tcp)(HOST=", host, ")(PORT=", port, "))",
"(CONNECT_DATA=(SERVICE_NAME=", svc, ")))", sep = "")
## use username/password authentication
con <- dbConnect(drv, username = "scott", password = "tiger",
dbname = connect.string)
## Please refer to "Oracle Database Net Services Administator's Guide", which
## has the topic "Connect Identifier and Connect Descriptor Syntax
## Characteristics"
dbListTables(con)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.