OpenOffice and JDBC for data access
From ECHSA Congenital Database
Revision as of 11:07, 24 September 2005 by MaciejBlizinski (talk | contribs)
It is possible to access the database directly from OpenOffice, using JDBC connection. To do it, take the following steps.
- Backup your data. See: data backup.
- Download and install OpenOffice 1.9 (beta) or newer. You can get it from [1]. Please note that this instruction will not work with OpenOffice 1.x. You need version at least 1.9.
- Download Derby from http://incubator.apache.org/derby/derby_downloads.html
- From downloaded derby archive extract file named
derby.jar
and place it somewhere on the hard disk. Remember where you put it. - Run OpenOffice. Open tools->Options. Go to OpenOffice.org->Java. Click on "Class path" button. Click on "Add archive". Find and select the
derby.jar
file and press "Open". Press OK in Class Path window. Press OK in options window. - Open File->New->Database
- Select "Connect to an existing database" and choose "JDBC" database. Press Next.
- In the "Datasource URL" type "derby:" and then (without space) the DataCollectionSoftware folder for data. It's normally named "EactsCongenitalDatabase" and placed in your home directory. It should look like this:
jdbc:derby:c:\myfolder\EactsCongenitalDatabase
- In the "JDBC Driver Class" type exactly as shown below:
org.apache.derby.jdbc.EmbeddedDriver
- Press "Next"
- You don't need to type in the user name. Press "Next"
- Press "Finish"
- Type in the file name, for example "eacts_direct". Press "Save"
- Click on "Tables" on the left side. You should see the list of tables in the database.
Warning! You can easily damage the database by changing its contents directly! ||
Above configuration was tested only on GNU/Linux.
Please note: Only one program can access the database folder at a time. This means that you can't open OpenOffice Base and EACTS Congenital Database at the same time.