For more information, see http://db.apache.org/derby/javadoc/publishedapi/org/apache/derby/drda/NetworkServerControl.html and http://db.apache.org/derby/docs/10.0/manuals/admin/hubprnt14.html#HDRCBDJHHFD.
The database can be stopped and started using the Java DB NetworkServerControl class.
For example, type:
java -Dderby.system.home=PortalServer-DataDir/derby org.apache.derby.drda.NetworkServerControl start to start the database.
java -Dderby.system.home=PortalServer-DataDir/derby org.apache.derby.drda.NetworkServerControl shutdown to stop the database.
To run this command:
The derby.jar, derbytools.jar, and derbynet.jar files must be in your classpath. By default, these JAR files are installed into /usr/share/lib/Derby directory.
The system property Dderby.system.home must be set to PortalServer-DataDir/derby.