Results 1 to 5 of 5

Thread: ODBC Connection R and OpenOffice DB

  1. #1
    Join Date
    May 2010
    Location
    Bath, England
    Beans
    94
    Distro
    Ubuntu 10.10 Maverick Meerkat

    ODBC Connection R and OpenOffice DB

    Hi, When on Windows I used to create an ODBC for connection to R using RODBC, but since comming to Linux I haven't found out how to do this, although I have use RSQLite several times which is easier to connect, but not so much to edit the databases. Could anyone tell me how to set up an ODBC so I can connect other databases to R, not just SQLite?

    Thanks,
    Ben.

  2. #2
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    842
    Distro
    Ubuntu

    Re: ODBC Connection R and OpenOffice DB

    By and large, ODBC is not commonly used in the world of Linux. ODBC is a Microsoft technology and it tends to work best on Microsoft systems. Setting up ODBC connections on linux is a pain. When I connect R to SQLite, I use RSQLite. To edit the database directly, the command-line tool sqlite3 is nice. Programs like sqliteman and sqlitebrowser may be more what you are looking for. It's a bit of a pain to set up, but I believe SQuirrelSQL is the best graphical SQL tool on any platform. It's a Java program and it's hosted on SourceForge. Download the generic version and put it in ~/bin. If you decide to use this and need some help setting it up, feel free to ask. The other two suggestions will be much easier to set up.

    If you want to connect to other databases, look for the proper R library to connect directly, rather than go through ODBC. There are specific libraries for MySQL, Postgres, etc. Good stuff. I like SquirrelSQL because it can connect to all of these databases through JDBC and it provides a nice common interface to a variety of systems.
    Please Insert Funny Statement Here.

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: ODBC Connection R and OpenOffice DB

    Some info on ODBC.

    see A neophyte's guide in
    http://www.unixodbc.org/
    Doing this as root will create and edit the /usr/local/etc/odbcinst.ini (for the driver info) and /usr/local/etc/odbc.ini (for the system DSN) files.

    http://www.easysoft.com/developer/in...dbc/linux.html
    http://www.easysoft.com/developer/in...stall_unixodbc


    I tried doing one where I wanted to use ODBC to a MSaccess dB and it was pretty complex. Never worked, and I just converted it separately.

    Downloaded from synaptic:
    unixodbc-bin
    unixodbc
    libmyodbc

    then I followed the instructions here to configure a odbc connection:

    sudo apt-get install mdbtools
    sudo ODBCConfig
    ODBCConfig

    For a different database but shows how to do ODBCConfig
    http://schoolsplay.wikidot.com/wiki:...ndatabaselinux
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Nov 2010
    Beans
    5

    Re: ODBC Connection R and OpenOffice DB

    Take care of this point becomes great help , finish will take you to a Save dialog box to connect, use these settings to a file. This file you can use later to reconnect, instead of defining all the time.

  5. #5
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    842
    Distro
    Ubuntu

    Re: ODBC Connection R and OpenOffice DB

    @oldfred - You can't use ODBC to connect to an Access database on Linux. Linux doesn't have the necessary systems to connect to an Access database. Access uses an embedded JET database, which only works on the Microsoft platform. There are a couple of JDBC drivers for Access but that's it.
    Please Insert Funny Statement Here.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •