Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index

On 22/05/12 22:29, Tom Davies wrote:
Hi :)
I think posting to both lists is a good idea.  Hopefully someone can sort this and it's definitely 
something that a few of us would be interested in hearing the answer to.  We don't often hear about 
that particular back-end but it sounds about perfect for quite a few scenarios.
Good luck and regards from
Tom :)

--- On Mon, 21/5/12, Jonathan Ryshpan<>  wrote:

From: Jonathan Ryshpan<>
Subject: Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file
Date: Monday, 21 May, 2012, 17:34

On Sun, 2012-05-20 at 01:48 +0200, Mirosław Zalewski wrote:
Sorry about pointing to another thread, but you may find this useful.
there managed to connect OpenOffice with sqlite file. I believe the
same should
work for LO.

As far as I can tell, you will need (aside from LO, of course)
unixodbc and
libsqliteodbc packages. At least that's how they are called in Debian;
I don't
know about Fedora, but perhaps they have similar names.
Thanks very much for the pointer.  I attempted to follow the
instructions, installing the SQLite ODBC Driver, but I have installation
problems. (If you configure wrong, an attempt to access a database will
lock up your system so badly that you need to reboot).

My particular system runs KDE, which requires iodbc for many
applications, so that is what I am using for the database interface.
Iodbc has two kinds of configuration files in two places, namely:
         ~/.odbcinst.ini  (maybe not used)
The iodbc web site has info about ~/.odbc.ini, and by implication
about /etc/odbc.ini, which contains (I believe) default info; but it has
nothing about /etc/odbcinst.ini.  Can someone enlighten me about the
relation about these files and what they are used for?


Hi Guys,

Just chimed into this conversation. Not sure if this may help.

I have managed to get sqlite to work with libreoffice on Ubuntu. Didn't do much with it as it was primarily a case of verifying it could be done. I am still looking for a easy method of populating the sqlite tables and analyzing the data, so this project has stalled somewhat.

I did take notes however so I could work on the method at a later date.

Here are my notes for what they are worth. Note I tested this using an earlier version of Ubuntu and libreoffice but it should still work.

From memory, where most people become unstuck is they don't read the feedback provided when 'making' the odbc driver. Errors appear if you are missing a dependency -- read all messages carefully, install any dependencies, rerun the make until it completes the install : IT HAS WORKED when the drivers are registered.

If this step does not work you need to go to the sqlite forums and ask why.

Anyway I hope the following notes help


Most of software in Ubuntu 10.04 can not directly access SQLite Databases and it is necessary to install unixODBC plus the SQLite Driver.

Installation of the unixODBC package <> can be easily done from the Ubuntu Software Centre. The website provides a link to the appropriate driver maintained by Carl Weirner.

Installation of the SQLite ODBC Driver <> is a little more involved.

The website provides a link to the appropriate linux download <>. Download this file and extract the directory to a folder.

Open a terminal within the sqliteodbc-0.88 directory and run the following commands.

    sudo make install

Check that the drivers have been registered in /etc/odbcinst.ini. The configuration settings required for this file are outlined in the ../sqliteodbc-0.88/README file. My installation did not require any changes as the odbcinst.ini file was correctly configured.

In order to have Ubuntu see you odbc database change the ~/.odbc.ini file so it includes the following data.

     Description=My SQLite test database
     # optional lock timeout in milliseconds

You should now be able to see the database in LibreOffice Base or other packages that can use ODBC drivers.

     (c) Simon Cropper 2012
     Creative Commons Attribution-ShareAlike 3.0 Unported

Cheers Simon

   Simon Cropper - Open Content Creator / Website Administrator

   Free and Open Source Software Workflow Guides
   GIS Packages 
   bash / Python

For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.