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.

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:

(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):

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!