To upgrade a database, you must explicitly request an upgrade the first time you connect to it with the new version of Derby.
To request an upgrade when connecting to the database:
jdbc:derby:sample;upgrade=trueOnce the upgrade is complete, you cannot connect to the database with an older version of Derby.
java org.apache.derby.tools.sysinfoNote that this is the version of Derby, not the version of the database. Sysinfo uses information found in the Derby jar files, so verify that only one version of Derby's jar files are in your class path when you run this tool.