Ubuntu 22.04
LibreOffice
Version: 7.3.2.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 2; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-NZ (en_NZ.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.2-0ubuntu2
Calc: threaded
I have two split databases created using Split_HSQLDB_2.3.2_Wizard_v3d.odb
When I try to open those split databases I get the message:
The connection to the data source “electricity_db” could not be established.
error in script file line 1 Unexpected token UNIQUE, requires COLLATION in statement [SET DATABASE UNIQUE] ./connectivity/source/drivers/jdbc/Object.cxx:175
In the electicity.script file, line 1:
SET DATABASE UNIQUE NAME HSQLDB7F6901B26D
I can restart LibreOffice in safe mode, which allows one to open the above or another split database file without complaint.
Here suggests the problem is with my user profile:
https://wiki.documentfoundation.org/UserProfile#GNU.2FLinux
But I have tried the manual steps there to force LibreOffice to create a new user profile and the problem persists. Only using safe mode itself seems to allow me to open the split database files.
In Safe Mode, if I reset to factory settings–either Reset settings and user interface modifications, or Reset entire user profile–then Apply Changes and Restart, I can open the split database files without problem, but only so long as that instance of LibreOffice stays open, i.e. closing/quitting LibreOffice and re-opening the database files returns one to the error message behaviour.
There’s an earlier query with this problem/title here: error in script file line: 1 Unexpected token UNIQUE, requires COLLATION in statement [SET DATABASE UNIQUE]
That seems to have been resolved by cleaning all LibreOffice before reinstalling. I tried that but am still stuck with the same problem.
Thanks for any help.

simply because every Base connection with HSQL must have started as an embedded DB which of course is a wrong assumption.