@Ratslinger - How is it possible that this incredibly detailed “how-to” has only one (1) upvote (mine!)??? This is brilliant. It deserves a medal, not a “badge”! Thank you!
@dajare Thank you for the comment & support. I certainly would not use terms like ‘brilliant’ or ‘deserves a medal’ as, in fact, I discovered this product years ago when needing something for Linux. Like so many other answers presented in ANY forum, most of the questions presented have have already been answered somewhere. It simply requires a little effort (or in a couple of cases a year or two) to fit things together.
Do these instructions work for Mac OS? I do not have the option of Tools - Options and get stuck at that point.
@bammbamm401 Tools>Options
menu selection on Mac is LibreOffice>Preferences
. However the above is specifically for Windows 10. Have also done with Linux but personally have not tried Mac OS (no access to one). From some basic searching, it seems it should work. Here is the website → UCanAccess. There is an active discussion section there which should be able to help if needed.
When I test connection in the set up user authentication I get an error of UCAExc:::4.0.4 null. I have checked the class path and the parameters and they are both the correct paths. I know this is an old question and I hope someone see this and knows what is up in my case.
@ratslinger : Thanks for the detailed steps to set up UCanAccess connector and the LO base Advanced settings. Very precise and accurate. Worked great in MS10 x64, a MSAccess2003 MDB and with LO 5.4.5.1 (x64). Connected to 12 tables with over 100,000 records. Next step is to copy tables to new odb and see how the speed is.
I tried the above instructions which seemed to be pretty straight forward so obvioulsy I am doing something wrong.
I have UCanAccess installed at the following location;
/home/glrider/data/bin/UCanAccess/UCanAccess-5.0.1.bin
Following the instructions I have put the following as the classpath;
/home/glrider/data/bin/UCanAccess/UCanAccess-5.0.1.bin/loader/ucanload.jar. An ls confirms the existance;
glrider@glrider-linux:~$ ls -al /home/glrider/data/bin/UCanAccess/UCanAccess-5.0.1.bin/loader/ucanload.jar
-rw-rw-r-- 1 glrider glrider 3629 Jan 7 2020 /home/glrider/data/bin/UCanAccess/UCanAccess-5.0.1.bin/loader/ucanload.jar
In the Parameters field I have the following;
DUCANACCESS_HOME= /home/glrider/data/bin/UCanAccess/UCanAccess-5.0.1.bin
I got through the steps to connect with JDBC. The test class button results in driver loaded successfully, so I am thinking it is my access mdb file is the issue. Once I click finish and save to an odb, I then get the following message;
The connection to the data source fims_be5 (the number gets bumped up each time I try it) could not be established
‘org.hsqldb.persist.HsqlProperties
org.hsqldb.DatabaseURL.parseURL(java.lang.String, boolean, boolean)’ ./connectivitysource/drivers/jdbcObject.cxx:189
I could swear I saw multiple slashed in the URL when I was looking, but obviously not. I have removed the extra slashes I had in the jdbc connection field and now just have the following;
ucanaccess:/home/glrider/data/LibreBase/fims_be.mdb
In the JDBC drive class field I have ;
net.ucanaccess.jdbc.UcanloadDriver
I now get a different connection error;
The connection to the external datasource could not be established
An unknow error occurred. The driver is probably defective. ./connectivity/sourcecommontools/dbexception.cxx:143
My setup:
- menu:Tools>Options>Advanced, button [Class Path…] points to ucanload.jar
- No parameters
This is my database pointing to Microsoft’s Northwind.accdb sample database:
Northwind.odb (3.4 KB)
see Edit>Database>Properties…
Same thing. I wanted to point out the 143 error should actually have been 413.
You are running LibreOffice in a container?
Don’t think so as I don’t much about containers. I am just running it on my System 76 running Pop OS.
Yes I can open that and any other odb files I have.