add the following lines of code to the Rprofile.site file located below the top-level R installation directory \etc\Rprofile.site:
library(ORE)
 
# Change the following connection settings:
user     <- "scott"
password <- "tiger"
sid      <- "mysid"
host     <- "myhost"
port     <- 1521
all      <- TRUE
 
cat("Connecting to ORE\n")
cat("    User:", user, "\n")
cat("    SID: ", sid, "\n")
cat("    Host:", host, "\n")
ore.connect(user, sid, host, password, port, all)
Documentation / Reference
help(.Rprofile)
help(Startup)