open.itworld.com
  Search  
Security Home Page Security Webcasts Security White Papers Security Newsletters Security News Open Topics Careers ITworld Voices ITwhirled The Security site of ITworld.com
Use OpenOffice to Access Databases
LINUX DESKTOP APPLICATIONS --- 09/05/2002

Eric Foster-Johnson

After writing a column searching for Linux alternatives to Microsoft's low-end database, Access, I received some great replies. Many readers pointed out the limitations of Microsoft Access, and while all of them are true, such comments miss the point. 

On this topic

Users clearly want low-end databases that are relatively easy to use and a relatively easy path to make data-entry forms and other simple database-based applications. The two main databases that come with most Linux distributions, PostgreSQL and MySQL, far exceed Access as safe repositories for your data. Both these databases offer many more database features than Access, except for the handy means to make data-entry forms and simple database-driven applications.

A number of readers pointed me to StarOffice and the latest OpenOffice.org software. (StarOffice is a commercial product from Sun while OpenOffice.org is an open-source version that acts as a base for StarOffice.) This proved to be the best suggestions so far.

OpenOffice.org (http://www.openoffice.org) provides a near drop-in replacement for Microsoft Office. The software runs on Linux, Windows, and a number of Linux versions. A MacOS X port is also in the works.

The OpenOffice.org database access sub-project
(http://dba.openoffice.org) includes modules in the core office suite to access databases using a variety of methods including ODBC (mostly Windows), JDBC (Java), ADO, along with dBase and CSV, or Comma-Separated Value, files. You can create forms on top of data from a database, along with performing limited database functions within the OpenOffice.org suite.

A few how-to documents appear at http://dba.openoffice.org/howto. The most useful one for Linux users is the document on how to connect to the MySQL database using a Java JDBC driver at http://dba.openoffice.org/howto/mysql_jdbc.html.

OpenOffice.org connects to databases by defining data sources within the suite. A data source tells OpenOffice.org how to connect to a particular database. The OpenOffice.org site describes how to set up a data source at http://documentation.openoffice.org/HOW_TO/data_source/data1_EN.html. This example shows how to connect to a data source, create a table in the database, and enter data.

You can use dBase or CSV files if you just want to edit data locally. Many users, though, will opt for using a real database rather than just files. You can access most databases from the suite via the Java JDBC database drivers. (JDBC stands for Java DataBase Connectivity.) Just about every database in existence supports JDBC access. A good listing of where to find JDBC drivers appears at http://ourworld.compuserve.com/homepages/Ken_North/jdbcvend.htm.

If you cannot get a JDBC driver, you can set up ODBC, Open DataBase Connectivity. Most ODBC usage is on Windows, but you can use the unixODBC project code, from http://www.unixodbc.org/, to use ODBC on Linux.

 

Eric Foster-Johnson has written 14 books on Linux, Unix, programming and open source tools. Eric can be reached at Eric.FosterJohnson@itworld.com or at http://www.pconline.com/~erc.



Advertisements
Sponsored links
KODAK i1400 Series Scanners stand up to the challenge
Top 5 Reasons to Combine App Performance and Security
Bring harmony to your mix of UNIX-Linux-Windows computing environments
Locate Hidden Software on business PCs with this free tool
 Home   Newsletters  LINUX DESKTOP APPLICATIONS
www.itworld.com    open.itworld.com     security.itworld.com     smallbusiness.itworld.com
storage.itworld.com     utilitycomputing.itworld.com     wireless.itworld.com

 
Contact Us   About Us   Privacy Policy    Terms of Service   Reprints  

CIO   Computerworld   CSO   GamePro   Games.net   IDG Connect   IDG World Expo   Infoworld   ITworld   JavaWorld   LinuxWorld  MacUser   Macworld   Network World   PC World   Playlist  

Copyright © Computerworld, Inc. All rights reserved

Reproduction in whole or in part in any form or medium without express written permission of Computerworld Inc. is prohibited. Computerworld and Computerworld.com and the respective logos are trademarks of International Data Group Inc.