topics that matter; ideas worth sharing

share a tip, submit a link, add something new

Use OpenOffice to Access Databases

September 5, 2002, 12:00 AM —  ITworld — 

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.

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.

» posted by ITworld staff

ITworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff
Featured Sponsor

Get a broad understanding of important regulations and how you can make sure your site is in adherence.





Learn how VeriSign SGC-enabled SSL Certificates can help improve site security and customer confidence in the free white paper, "How to Offer the Strongest SSL Encryption." In this paper you will learn the differences between weak and strong encryption and what they mean for your site's performance.

Get VeriSign's free white paper: "The Latest Advancements in SSL Technology" and learn about the benefits of strong SSL encryption, Extended Validation (EV) SSL and security trust marks and what these SSL offerings can do for your site.

Now with Extended Validation (EV) SSL available from VeriSign, you can show your customers that they can trust your site. Learn about EV SSL benefits in this free VeriSign white paper.

More Resources