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<jonrysh@pacbell.net> wrote:
From: Jonathan Ryshpan<jonrysh@pacbell.net>
Subject: Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file
To: users@global.libreoffice.org
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.
Poster
there managed to connect OpenOffice with sqlite file. I believe the
same should
work for LO.
Link:
http://user.services.openoffice.org/en/forum/viewtopic.php?f=40&t=9905
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:
/etc/odbc.ini
/etc/odbcinst.ini
~/.odbc.ini
~/.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?
jon
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
****** 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.
./configure
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.
[mysqlitedb]
Description=My SQLite test database
Driver=SQLite3
Database=/path/to/the/sqlite/database.sqlite3
# optional lock timeout in milliseconds
Timeout=2000
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
http://creativecommons.org/licenses/by-sa/3.0/
--
Cheers Simon
Simon Cropper - Open Content Creator / Website Administrator
Free and Open Source Software Workflow Guides
------------------------------------------------------------
Introduction http://www.fossworkflowguides.com
GIS Packages http://www.fossworkflowguides.com/gis
bash / Python http://www.fossworkflowguides.com/scripting
--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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
Context
- Re: [libreoffice-users] Connecting libreoffice calc to existing sqlite database file (continued)
[libreoffice-users] Re: Connecting libreoffice calc to existing sqlite database file · Andreas Säger
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.