Using Firebird with Open Office and Windows
<< Java UDF functional specification | Database technology articles | Migration from MS SQL to Firebird >>
Using Firebird with Open Office and Windows
By Art Fore. Copyright www.IBPhoenix.com. Original publication date unknown.
Below is a basic howto on using the Firebird Databae with OOo. I will also be trying this in Linux in the near future.
I like Firebird over Postgresql or MySQL for the following reasons.
- MySQL does not have stored views or queries and will not have for at least a year or so.
- Firebird (InterBase) is the most mature of the three databases.
- Firebird was the easiest install both Windows and Linux, but the most difficult to interface to OOo.
- A Firebird database is portable, that is, you can copy the database to another computer and operate on it (Intel architectures). Otherwise use the transportable backup and restore.
- You also have client/server capabilities as with Postgresql and MySQL that far exceeds the client-file database of Access .mdb. Even with Access 2000 where you have a stripped down SQL databaase of 2Gb max size, Firebird still has greater capabilities.
- There are a great many open source and/or freeware tools (as well as commercial) available for Firebird.
Since there have been so many complaints and requests for better database capabilites with OOo, I would like to see https://www.openoffice.org/ and https://www.firebirdsql.org/ work together and integrate the two together. The installation and setup needs to be streamlined with a GUI etc. for people who are not computer literate, but at the same time, there is no need to "re-invent the wheel" with another database since one is already available (OpenSource GPL that is).
I hope that some of you will try it and give some feedback to both OOo and Firebird. (I tried a couple of the ODBC drivers which worked in Access but not in OOo. They would connect, but edit table or new query would crash OOo and all of the table names have small boxes after them at the end of the line.)
Installation prerequisites
Installation was on Win2k with OOo 643c.
If Java was not installed when OOo was installed, it must be installed and you will need to re-install OOo.
Down load the following files:
Run the Firebird-Win32.exe
and install the database. It will also start the services. Default install directory is /Program Files/Firebird
.
Open the FirebirdSQL-1.0.0RC3.zip
in winzip and extract all of the files to /Program Files/Firebird/Java
(you will have to create this new directory).
Open OOo writer, go to Tools / Options / Security. In the Java section, Class Path, click on the browse button and
browse to /Program File/Firebird/Java
. Select each of the jar
files and open. Also the File/Firebird/Java/lib jar
files.
Then click OK.
Go to Tools / Data Sources and select New Data Source. Enter the following info into the General tab:
- Name: whatever you want to call the database. I called mine
Firebird
. - Database Type: JDBC
- Data Source URL:
jdbc:firebirdsql:localhost/3050:c:\\Program Files\\Firebird\\examples\\employee.gdb
(Modify the path to where your database is; \\
are important.)
Go to the JDBC tab and enter the following information (This assumes you are using the default password and employee database):
- 'JDBC driver class:
org.firebirdsql.jdbc.FBDriver
- URL: this should already be filled in with the previously entered info on the General tab.
- User name:
SYSDBA
- Password required: Should be checked.
Select the Tables tab. A dialog box will ask for the password. enter masterkey
and click OK.
You should now see a list of all of the tables. Click the Edit Table icon, you can see the fields, etc.
Select the Queries tab, and you can create a query similar to Access.
If you do not get a connection, you can download IB_SQL.exe
. It is in zip format, so I unzipped the IB_SQL.exe to
C:\Program Files\Firebird@@ and executed it.
On the Login tab, Database, browse to the database C:\Program Files\Firebird\examples\EMPLOYEE.gdb
and select. Username and password should already be filled in, if not, they are sysdba
and masterkey
.
The select the Connect Database icon (second from the left). Then select the Browse database icon (third from the left) You should see the tables. If you do not see the tables, then the database did not properly install. If you see the tables here but not in OOo, then there is a problem with Java. You may have to re-install OOo which is what I had to do. I just did an uninstall, but did not delete any files, then did an install and made sure the Java was found. After that, it worked.
Good luck!
back to top of page
<< Java UDF functional specification | Database technology articles | Migration from MS SQL to Firebird >>
License note
The contents of this Documentation are subject to the Public Documentation License Version 1.0 (the "License"); you may only use this Documentation if you comply with the terms of this License. Copies of the License are available here or at https://www.firebirdsql.org/pdfmanual/pdl.pdf (PDF) and https://www.firebirdsql.org/manual/pdl.html (HTML).
The Original Documentation is titled Firebird databases as the back-end to enterprise software systems.
The Initial Writer of the Original Documentation is: Helen Borrie.
Copyright (C) 2006. All Rights Reserved.