Professional Documents
Culture Documents
H2 Database PPT123
H2 Database PPT123
Introduction
H2 is a relational database management system written in
Java. It can be embedded in Java applications or run in
client-server mode.
Written in Java
H2 DB
Multi version concurrency
Features
Server Mixed
Modes Modes
Embedded
Mode
Server Mode
When using the server mode, an application opens
a database remotely using the JDBC or ODBC
API.
2.Create connection
3.Create statement
4.Execute queries
5.Close connection
Connection URL ‘s in H2 Data Base Engine
1. Connecting to an Embedded (Local) Database
jdbc:h2:[file:][<path>]<databaseName>
jdbc:h2:~/test;MODE=MySQL;DATABASE_TO_LOWER=FALSE
jdbc:h2:~/test;MODE=Oracle;
4.Server mode
jdbc:h2:tcp://localhost/[<path>]<databaseName>
G. Maheshwar
D.DurgaPrasad