DbSchema for Derby Database

DbSchema is a powerful database management and design tool for Derby. It offers features such as visual schema design, team collaboration with GIT, schema deployment and HTML schema documentation.

How to Connect to Derby Database

  1. Access the Connection Dialog

    Choose "Connect to the database" or "New Model Connected to the Database" will let you select your database and open the Connection Dialog.

    DbSchema automatically downloads the JDBC driver to connect to your database.

  2. Configure the Connection
  3. In the Connection Dialog window, select the JDBC URL you want to connect with. If your database is running in the cloud, choose Edit Manually and insert the JDBC URL from the cloud console.

    Enter the host name, the authentication details, select your database as described in the Connection Dialog page.

  4. Troubleshoot Firewall Issues
  5. If you encounter connection issues, it may be due to firewall settings. Read how to enable Firewall Connections.
Remember to enable Windows Firewalls Firewalls & anti-viruses may block database connections.

Connection Modes

Derby database may run in two modes:

  • embedded mode - the software will run local on your machine. In this case there is no need to specify a database user and password. As database you have to specify the path to the directory where the database is installed. If you have no database created or you want to create a new one, just add ;create=true in the end. Sample: C:/temp/derbytest.dbf;create=true
  • server mode on a remote computer. In this case you have to specify a database user and password. The default port is 5000.

Enable ASE-256 Encryption

For this you need two files from the Oracle web site. There are a set for each major version of Java. Look on Oracle website for "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files"

You should copy the US_export_policy.jar and local_policy.jar files into the Java jre\lib\security folder. Look for currently used Java in DbSchema Help / About dialog.

You can find the files on this page for JDK/JRE 8. It's a ways down the page and you have to click the Download link to get the files. http://www.oracle.com/technetwork/java/javase/downloads/index.html