- H2 (DBMS)
Infobox Software
name = H2 Database Engine
caption = H2 web console running in Internet Explorer 7.0
collapsible = yes
developer =
latestmrelease version = 1.1.100
latest release date = release date|2008|10|04
latest preview version =
latest preview date =
operating system =Cross-platform
programming language = Java
genre =Relational Database Management System
license =Mozilla Public License orEclipse Public License
website = http://www.h2database.comH2 is a
relational database management system written in Java. It can be embedded in Java applications or run in the client-server mode. The disk footprint is about 1 MB.The software is available as
open source software under modified versions of theMozilla Public License or theEclipse Public License . The modifications change the jurisdiction of the licenses to Switzerland.Main Features
A subset of the
SQL (Structured Query Language) standard is supported. The main programming APIs areSQL andJDBC , however the database also supports using the PostgreSQLODBC driver by acting like a PostgreSQL server.It is possible to create both in-memory tables, as well as disk-based tables. Tables can be persistent or temporary. Index types are hash table and tree for in-memory tables, and b-tree for disk-based tables. All data manipulation operations are transactional. Table level locking and
multiversion concurrency control are implemented. The2-phase commit protocol is supported as well, but no standard API for distributed transactions is implemented. The security features of the database are: role based access rights, encryption of the password usingSHA -256 and data using the AES or the Tiny Encryption Algorithm,XTEA . The cryptographic features are available as functions inside the database as well. SSL / TLS connections are supported in the client-server mode, as well as when using the console application.Two
full text search implementations are included, a native implementation and one usingLucene .A simple form of high availability is implemented: when used in the client-server mode, the database engine supports hot failover (this is commonly known as clustering). However, the clustering mode must be enabled manually after a failure.
The database supports protection against SQL injection by [http://www.h2database.com/html/advanced.html#sql_injection enforcing the use of parameterized statements] . In H2, this feature is called 'disabling literals'.
Utilities
An embedded
web server and a browser based console application are included.History
The development of the H2 database engine started in May 2004, but it was first published in December 2005. The database engine is written by Thomas Mueller. He also developed the Java database engine Hypersonic SQL [http://hsql.sourceforge.net] . In 2001, the Hypersonic SQL was stopped, and the
HSQLDB Group was formed to continue work on the Hypersonic SQL code.The name H2 stands for Hypersonic 2, however H2 does not share any code with Hypersonic SQL or HSQLDB. H2 is built from scratch.
ee also
*
List of relational database management systems
*Comparison of relational database management systems
*Apache Derby
*HSQLDB External links
* [http://www.h2database.com H2 Database Engine]
* [http://h2sharp.googlecode.com/ H2Sharp Ado.Net Provider for H2]
Wikimedia Foundation. 2010.