Appendix B. JDBC database connection URLs for databases with development support


You can use a JDBC database connection URL to connect to a relational database. Each database has its own format of the database URL that contains information about the database itself and other configuration properties.

The following examples show you JDBC database connection URLs for databases with development support. For more information about development support, see the Development Support Scope of Coverage page.

B.1. Derby database URL example

Derby is an embedded database that can run as a server, based on a file, or live in memory.

Configuration options

jdbc:derby:[//serverName[:portNumber]/][memory:]databaseName[;property=value[;property=value]]
Copy to Clipboard Toggle word wrap

Example

jdbc:derby://localhost:1527/myDB, jdbc:derby:memory:myDB;create=true
Copy to Clipboard Toggle word wrap

B.2. H2 database URL example

H2 is an embedded database that can run as a server, based on a file, or live completely in memory.

Configuration options

jdbc:h2:{ {.|mem:}[name] | [file:]fileName | {tcp|ssl}:[//]server[:port][,server2[:port]]/name }[;key=value…​]
Copy to Clipboard Toggle word wrap

Example

jdbc:h2:tcp://localhost/~/test, jdbc:h2:mem:myDB
Copy to Clipboard Toggle word wrap

Revised on 2021-04-19 12:03:09 UTC

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top