[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file
- Subject: Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file
- From: Simon Cropper <firstname.lastname@example.org>
- Date: Wed, 23 May 2012 10:04:16 +1000
- To: email@example.com
On 22/05/12 22:29, Tom Davies wrote:
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
--- On Mon, 21/5/12, Jonathan Ryshpan<firstname.lastname@example.org> wrote:
From: Jonathan Ryshpan<email@example.com>
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.Thanks very much for the pointer. I attempted to follow the
there managed to connect OpenOffice with sqlite file. I believe the
work for LO.
As far as I can tell, you will need (aside from LO, of course)
libsqliteodbc packages. At least that's how they are called in Debian;
know about Fedora, but perhaps they have similar names.
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?
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
****** MY NOTES, IN PREP FOR TUTORIAL *******
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 <http://www.unixodbc.org/> 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 <http://www.ch-werner.de/sqliteodbc/> is a little more involved.
The website provides a link to the appropriate linux download <http://www.ch-werner.de/sqliteodbc/sqliteodbc-0.88.tar.gz>. 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
Simon Cropper - Open Content Creator / Website Administrator
Free and Open Source Software Workflow Guides
GIS Packages http://www.fossworkflowguides.com/gis
bash / Python http://www.fossworkflowguides.com/scripting
For unsubscribe instructions e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
|Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file||Tom Davies <email@example.com>|
- Prev by Date: Re: [libreoffice-users] Re: No QuickStarter? (Linux)
- Next by Date: Re: [libreoffice-users] Startup positioning problem with LO 220.127.116.11
- Previous by thread: Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file
- Next by thread: [libreoffice-users] Re: Connecting libreoffice calc to existing sqlite database file