Re: [R] RJDBC

2017-05-02 Thread Hasan Diwan
Anthony, Did you try options(java.parameters = "-Xmx8g -Djava.oracle.jdbc.timezoneAsRegion=false") instead of specifying the java property separately? -- H On 2 May 2017 at 15:18, Nelson Anthony wrote: > Hi all, > > > > I am trying to connect to Database using RJDBC but due to some DB & Server

[R] RJDBC

2017-05-02 Thread Nelson Anthony
Hi all, I am trying to connect to Database using RJDBC but due to some DB & Server timezone mismatch I am facing below error message. Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1], : java.sql.SQLException: ORA-00604: error occurred at recursive SQL le

[R] RJDBC - Java connection to Oracle database crashing on execution

2016-08-19 Thread Justin Holder
Hi, I have a script that starts with some code to open a connection to an Oracle database, however the code is crashing R/RStudio as soon as it runs. The code does run successfully on another machine. The script opens by loading the required RJDBC package: library("RJDBC", lib.loc="C:/Program

[R] RJDBC and Unicode characters on Windows

2015-05-19 Thread Joshua Ainsley
Hello, I am using the RJDBC library to connect to a SQL database and pull out text that includes Hebrew characters. If I do this on a Mac, the data frames I construct display the characters properly. If I do it on a Windows PC, then the characters are converted to strings like this: I have tri

Re: [R] RJDBC in Ubuntu

2012-08-01 Thread Pascal Oettli
Hello, You probably should reconfigure R using: > R CMD javareconf before installing the package you want. And when you install a package, don't forget the quote. HTH Pascal Le 02/08/2012 14:45, am a écrit : Hi, I'm working with R on Cassandra and need to install RJDBC on my Ubuntu virtual

[R] RJDBC in Ubuntu

2012-08-01 Thread am
Hi, I'm working with R on Cassandra and need to install RJDBC on my Ubuntu virtual machine. The traditional commands (install.packages(RJDBC, dep=TRUE) and library(RJDBC)) don't work: they throw an error that they can't find the package. I tried installing it using the Rkward GUI, but can't write

Re: [R] RJDBC and multiple classpaths

2011-06-26 Thread Orvalho Augusto
My ignorance! I managed to connect doing: library(RJDBC) cp <- c( "/opt/DbVisualizer-7.1.1/jdbc/mdb/log4j.jar", "/opt/DbVisualizer-7.1.1/jdbc/mdb/commons_lang.jar", "/opt/DbVisualizer-7.1.1/jdbc/mdb/commons_logging.jar" ) .jinit(classpath=cp) drv <- JDBC("jstels.jdbc.mdb.MDBDriver", "/opt/DbVisu

[R] RJDBC and multiple classpaths

2011-06-26 Thread Orvalho Augusto
Corect me if this is not the right place to post this. I have a mdbdriver.jar (to access an MSAccess file) under Linux. I bought the license from http://www.csv-jdbc.com/ guys. The driver work fine when tested with DBVisualizer or another JDBC thing. The problem is that driver needs 3 other more

Re: [R] Rjdbc dbGetquery execution error

2011-02-17 Thread Gabor Grothendieck
On Wed, Feb 16, 2011 at 12:36 PM, Hasan Diwan wrote: > Rjdbc consistently gives me an execution error with postgresql 9.0s JDBC4 > driver. It's probably something trivial so am including my code below: > > library("RJDBC") > param <- 249 > param2 <- 188129 > postgres <- JDBC("org.postgresql.Driver

[R] Rjdbc dbGetquery execution error

2011-02-16 Thread Hasan Diwan
Rjdbc consistently gives me an execution error with postgresql 9.0s JDBC4 driver. It's probably something trivial so am including my code below: library("RJDBC") param <- 249 param2 <- 188129 postgres <- JDBC("org.postgresql.Driver", ".m2/repository/postgresql/postgresql/9.0-801.jdbc4/postgresql-9

Re: [R] rjdbc identifier.quote

2011-02-09 Thread Armand Pirvu (gmail)
Hi Gabor Thank you for your reply I tried it > dbWriteTable(conn, "table6",mylargedata,identifier.quote ="\"") Error in .sql.qescape(names(value), TRUE, conn@identifier.quote) : The JDBC connection doesn't support quoted identifiers, but table/column name contains characters that must be qu

Re: [R] rjdbc identifier.quote

2011-02-09 Thread Gabor Grothendieck
On Wed, Feb 9, 2011 at 11:05 PM, Armand Pirvu (gmail) wrote: > Hi Gabor > > Thank you for your  reply > > I tried it > >> dbWriteTable(conn, "table6",mylargedata,identifier.quote ="\"") > Error in .sql.qescape(names(value), TRUE, conn@identifier.quote) : >  The JDBC connection doesn't support quot

Re: [R] rjdbc identifier.quote

2011-02-09 Thread Gabor Grothendieck
On Wed, Feb 9, 2011 at 9:06 PM, Armand Pirvu (gmail) wrote: > Dear all > > > Backend is Ingres DBMS > I use RJDBC with Ingres JDBC driver > > I have this csv file > > "","Strategy","par1","m.1997.09.01" > "1","ALF",2,0.1244 > > > which I try to load it RJDBC > > > require (RJDBC) > drv <- > JDBC(

[R] rjdbc identifier.quote

2011-02-09 Thread Armand Pirvu (gmail)
Dear all Backend is Ingres DBMS I use RJDBC with Ingres JDBC driver I have this csv file "","Strategy","par1","m.1997.09.01" "1","ALF",2,0.1244 which I try to load it RJDBC require (RJDBC) drv <- JDBC("com.ingres.jdbc.IngresDriver","/home/ingres/ingresv1/ingres/lib/iijdbc.jar") conn <- dbC

Re: [R] RJDBC doesn't load Oracle driver?

2010-11-26 Thread Andre Zege
Hmm, for the sake of anyone who steps on the same mine. Basically, this class error always say that you need to install latest java. It's not enough to get new jre -- you need to get full latest jdk as well. After that you need to do R reconfiguration, which is done by R CMD javareconf Then you ne

Re: [R] RJDBC doesn't load Oracle driver?

2010-11-26 Thread Andre Zege
I asked my local java export and his reply was that the driver was compiled with the later version of java that i need to install. I did install it in parallel to existing java and changed JAVA_HOME variable to point to new java directory. I also pre-pended PATH with path to java. Still, when i tr

[R] RJDBC doesn't load Oracle driver?

2010-11-24 Thread Andre Zege
I am having trouble loading Oracle JDBC driver into RJDBC. Basically, i installed RJDBC and used it to connect to MySql. However, when i try to load JDBC Oracle driver, it gives me an error message > drv<-JDBC("oracle.jdbc.driver.OracleDriver", "/pathToDriver/ojdbc6.jar") Error in .jfindClass(as

[R] RJDBC doesn't load Oracle driver?

2010-11-24 Thread Andre Zege
After installing RJDBC on RedHat Linux and using it successfully with mySQL JDBC driver i am trying to use it with Oracle database. I use the JDBC driver that works fine elsewhere (use it in DBVizualizer). However, when i try to load the driver, drv<-JDBC("oracle.jdbc.driver.OracleDriver", "/hom

Re: [R] RJDBC vs RMySQL vs ???

2010-06-24 Thread Ralf B
Unfortunately, I have a lot of errors with RMySQL -- but that is another thread... Ralf On Thu, Jun 24, 2010 at 10:31 AM, James W. MacDonald wrote: > Hi Ralf, > > Ralf B wrote: >> >> Sorry for the lack of details. Since I run the same SQL first directly >> on MySQL (using the MySQL Query Browser

Re: [R] RJDBC vs RMySQL vs ???

2010-06-24 Thread James W. MacDonald
Hi Ralf, Ralf B wrote: Sorry for the lack of details. Since I run the same SQL first directly on MySQL (using the MySQL Query Browser) and then again using R through the RJDBC interface, I assume that I won't simply have a badly constructed SQL query. However, just to clear possible objection, h

Re: [R] RJDBC vs RMySQL vs ???

2010-06-23 Thread Ralf B
Sorry for the lack of details. Since I run the same SQL first directly on MySQL (using the MySQL Query Browser) and then again using R through the RJDBC interface, I assume that I won't simply have a badly constructed SQL query. However, just to clear possible objection, here the SQL: # Extracts

Re: [R] RJDBC vs RMySQL vs ???

2010-06-23 Thread James W. MacDonald
Hi Ralf, Ralf B wrote: I am running a simple SQL SELECT statement that involvs 50k + data points using R and the RJDBC interface. I am facing very slow response times in both the RGUI and the R console. When running this SQL statement directly in a SQL client I have processing times that are a l

[R] RJDBC vs RMySQL vs ???

2010-06-23 Thread Ralf B
I am running a simple SQL SELECT statement that involvs 50k + data points using R and the RJDBC interface. I am facing very slow response times in both the RGUI and the R console. When running this SQL statement directly in a SQL client I have processing times that are a lot lot faster (which means

[R] RJDBC - sloooooow - HELP!

2010-06-17 Thread Ralf B
Hi all, I am suffering from a very slow RJDBC (7 rows of from a simple select take like 10 minutes). Does anybody know if RMySQL is faster? Or RODBC in that respect? What are alternatives and what can be done to get a realistic performance out of MySQL when connected to R's JRI ? Best, Ralf

[R] RJDBC with MS Access

2010-02-05 Thread Paul-
Has anybody used RJDBC to read tables from an MS Access mdb file? I know how to do it with RODBC, and I have used RJDBC with SQL Server. I am, however interested now in this particular combination. Is it possible? -- View this message in context: http://n4.nabble.com/RJDBC-with-MS-Access-tp1470

[R] RJDBC error with db2 driver

2009-04-01 Thread Sicotte, Hugues
Anybody knows what could be the problem? I am trying to use the class4 (I also tried the class2) JDBC driver for DB2 and I get the following error. This driver is for db2 9.5, so it does not require a matching license .jar file, and I tried redownloading the driver. I am running R 2.6 on Windows X

[R] RJDBC and OracleDriver: unable to connect

2008-07-09 Thread Rodrigo Santamaria
Hi there, I'm trying to connect in an Oracle database. I am able to do it with Java, but when trying this code in R: library(DBI) library(RJDBC) drv = JDBC("oracle.jdbc.driver.OracleDriver", "C:\\Documents and Settings\\rodri\\workspace\\AtlasQueryingTest\\lib\\ojdbc14.jar",

Re: [R] RJDBC cant find driver class in JDBC jar file

2008-06-02 Thread David Scott
I can't comment on problems with RJDBC but I can say that if you want to access MySQL from R, I have had very little difficulty doing it with RODBC. The only difficulty I have experienced is in getting the MySQL 5.0 server started, which after hours of trying I avoided by using MySQL 5.1. S

[R] RJDBC cant find driver class in JDBC jar file

2008-06-02 Thread Dan Montgomery
I would like to set up a Windows XP environment with R and MySQL. This set-up was recommended by a friend who uses this set up, but I have been unable to get RJDBC to work. I have installed all of the software today (June 2 2008), first deleting and then replacing old versions of software. The er

Re: [R] RJDBC to OpenOffice Calc as RODBC to MS Excel

2007-12-14 Thread Max Kuhn
On Dec 14, 2007 8:28 AM, Marc Schwartz <[EMAIL PROTECTED]> wrote: > > Bearing in mind that OO.org's Write and Calc documents are just 'zipped' > XML files, it would be possible to parse the data stored within such > documents. I suspect Max Kuhn has spent much time on this for odfWeave. > I haven'

Re: [R] RJDBC to OpenOffice Calc as RODBC to MS Excel

2007-12-14 Thread Marc Schwartz
On Fri, 2007-12-14 at 07:31 +, Prof Brian Ripley wrote: > On Fri, 14 Dec 2007, Metz, Thomas (IRRI) wrote: > > > Under Windows, I have used RODBC to connect to Excel spreadsheets as per > > the example below: > > > > library(RODBC); > > connect = odbcConnectExcel("testdata.xls"); > > query = "

Re: [R] RJDBC to OpenOffice Calc as RODBC to MS Excel

2007-12-13 Thread Prof Brian Ripley
On Fri, 14 Dec 2007, Metz, Thomas (IRRI) wrote: > Under Windows, I have used RODBC to connect to Excel spreadsheets as per > the example below: > > library(RODBC); > connect = odbcConnectExcel("testdata.xls"); > query = "SELECT [data$.ethn], [data$.sex], [data$.age], >[data$.height

[R] RJDBC to OpenOffice Calc as RODBC to MS Excel

2007-12-13 Thread Metz, Thomas (IRRI)
Under Windows, I have used RODBC to connect to Excel spreadsheets as per the example below: library(RODBC); connect = odbcConnectExcel("testdata.xls"); query = "SELECT [data$.ethn], [data$.sex], [data$.age], [data$.height], [data$.weight], [label$.label]

Re: [R] RJDBC and rjava

2007-09-25 Thread Joe W. Byers
Help is sincerely requested. After further investigation, I found that if I run .jmethods and have the listing below. I know that this driver works because I have a java program using that loads data scrapped from the web every night. The call to JDBC in my previous email is trying to create t

[R] RJDBC and rjava

2007-09-21 Thread Joe W. Byers
I am having trouble getting RJDBC and rJava working. rjava does not seem to be able to traverse my classpath that I define inside R. My example is library(RJDBC) .jinit('C:\\Libraries\\mysql-connector-java-5.1.3-rc\\mysql-connector-java-5.1.3-rc-bin.jar') drv <- JDBC("com.mysql.jdbc.Driver", 'C:\

[R] RJDBC connection help needed

2007-09-20 Thread Jim Porzak
Hi everyone, I'm obviously missing something simple here... Trying to connect to an external db with RJDBC. (I can connect OK with ROLAP and with other java apps, eg dbVisualizer) JDBC call seems to work ok: > driverClass <- "net.sourceforge.jtds.jdbc.Driver" > classPath <- "C:\\Dwns\\jtds\\jtd