Description Usage Arguments Note Author(s) Examples
View source: R/connect2oracle.r
connect to a oracle db
1 | connect2oracle(hostip=NA, db=NA, p=NA, driverlocation='/lib/ojdbc6.jar')
|
hostip |
IP address as string |
db |
Database (Workspace) name |
p |
password |
driverlocation |
defaults to linux location. not tested on windoze. |
make sure you have JDK, if not install the SUN version http://blog.i-evaluation.com/2012/12/03/installing-java-sdk-and-jre-bin-files-on-my-ec2-instance/ then get the JDBC driver from http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html put into /lib did install.packages('rJava') and then "R CMD javareconf" as root
ivanhanigan
1 2 3 4 5 | # example using the SWISH Extreme Weather Eventds DataBase (EWEDB).
# NB only powerusers will know the password.
ch <- connect2oracle(hostip = '115.146.93.225', db = 'DDIINDEXDB')
stdydscr <- dbGetQuery(ch, "select * from stdydscr where IDNO = 'EWEDB'")
t(stdydscr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.