RJDBC链接oracle数据库
1 安装RJDBC
2 安装 Oracle RJDBC驱动 (JDBC and UCP Downloads page (oracle.com))
3 下载并赋予执行权限 chmod 755 ojdbc8.jar
library(RJDBC)
jdbcDriver =JDBC("oracle.jdbc.OracleDriver",classPath="/usr/bin/ojdbc8.jar")
con =dbConnect(jdbcDriver, "jdbc:oracle:thin:@//192.168.30.48:1521/JZDB1", "username", "password")
评论
发表评论