Pin Me

What is Apache Derby?

written by: •edited by: Michele McDonough•updated: 8/14/2010

Apache Derby is a JAVA relational database management system (RDBMS) for JAVA programs. Derby is fully functional, but unlike other common database engines, it is slower.

  • slide 1 of 5

    What Is Apache Derby?

    Apache Derby is an open-source relational database management system written in Java. Derby is distributed as Sun® Java DB, previously it was distributed as an IBM Cloudspace. It can be integrated with Java applications and used for online transactions processing (OLTP). It has a very small footprint – 2 MB for the embedded JDBC driver and base engine.

    The main technology of the Derby’s database engine is a fully featured relational embedded database engine. It provides SQL and JDBC programming APIs and uses the SQL and IBM DB2 syntax.

  • slide 2 of 5

    Comparison With Other Embedded SQL Java Databases

    Apache Derby is said not to have very good performance in terms of SQL compliance and speed compared to other common embedded SQL databases. It also has lesser rank among other few open-source databases such as H2 and hsqldb. In terms of usability, Derby database is easy to use and many projects are using it without any assistance from Derby users or developers.

  • slide 3 of 5

    Derby Network Server

    You can also configure an embedded database to work as a hybrid server or embedded RDBMS. You can do this to enable accepting of TCP/IP connections from clients other than those in the same JVM.

    The Derby Network server gives you more reach to the Derby database engine with the provision of standard client server functionality. The server lets clients to connect with TCP/IP using DRPA protocol. The server also provides JDBC, PHP, Perl, CLI, ODBC support for the Derby engine.

  • slide 4 of 5

    Database Utilities

    Apache Derby provides a number of useful utilities you can use for doing different works. Here are the utilities that come with Apache Derby and their use:

    Dblook

    This tool extracts schemas from Derby database.

    Ij

    You can use this tool to execute SQL scripts against the JDBC engine.

    Sysinfo

    This utility displays class path and version numbers.

  • slide 5 of 5

    User Manuals

    Derby user manuals are available to download in PDF and HTML format from here.

    For tips and help on using Derby on Java ME platforms, click here.

    >References:

    http://www.h2database.com/html/performance.html

    http://icoloma.blogspot.com/2007/01/hsqldb-vs-derby.html